INTRODUCTION
Overview
Download and Install
Documentation
Publications

REPOSITORY
Libraries

DEVELOPER
Dev Guide
Dashboard

PEOPLE
Contributors
Users

SourceForge.net Logo
Project
Download
Mailing lists

 

         

gbxutilacfr::TrivialTracer Class Reference

A simple implementation of the tracer API which prints to cout. More...

#include <trivialtracer.h>

Inherits gbxutilacfr::Tracer.

List of all members.

Public Member Functions

 TrivialTracer (int debug=0, int info=9, int warn=9, int error=9)
virtual void print (const std::string &message)
 LOCAL INTERFACE.
virtual void info (const std::string &message, int level=1, bool localOnly=false)
virtual void warning (const std::string &message, int level=1, bool localOnly=false)
virtual void error (const std::string &message, int level=1, bool localOnly=false)
virtual void debug (const std::string &message, int level=1, bool localOnly=false)
virtual int verbosity (TraceType traceType, DestinationType destType=ToAny) const
virtual void info (const std::string &subsystem, const std::string &message, int level=1, bool localOnly=false)
 This version gives the Tracer some hints about a specific subsytem which generated the message.
virtual void warning (const std::string &subsystem, const std::string &message, int level=1, bool localOnly=false)
 This version gives the Tracer some hints about a specific subsytem which generated the message.
virtual void error (const std::string &subsystem, const std::string &message, int level=1, bool localOnly=false)
 This version gives the Tracer some hints about a specific subsytem which generated the message.
virtual void debug (const std::string &subsystem, const std::string &message, int level=1, bool localOnly=false)
 This version gives the Tracer some hints about a specific subsytem which generated the message.


Detailed Description

A simple implementation of the tracer API which prints to cout.

See also:
Tracer

Constructor & Destructor Documentation

gbxutilacfr::TrivialTracer::TrivialTracer ( int  debug = 0,
int  info = 9,
int  warn = 9,
int  error = 9 
)

Integers specify the tracing level: we'll print out all level at or below this.

References gbxutilacfr::DebugTrace, gbxutilacfr::ErrorTrace, gbxutilacfr::InfoTrace, and gbxutilacfr::WarningTrace.


Member Function Documentation

virtual void gbxutilacfr::TrivialTracer::debug ( const std::string &  message,
int  level = 1,
bool  localOnly = false 
) [inline, virtual]

Routing is determined by DebugToXxx parameter. If localOnly is set to TRUE, messages are not sent over the network (useful when traces is caused by network errors).

Reimplemented from gbxutilacfr::Tracer.

References debug().

Referenced by debug().

virtual void gbxutilacfr::TrivialTracer::error ( const std::string &  message,
int  level = 1,
bool  localOnly = false 
) [inline, virtual]

Routing is determined by ErrorToXxx parameter. If localOnly is set to TRUE, messages are not sent over the network (useful when traces is caused by network errors).

Reimplemented from gbxutilacfr::Tracer.

References error().

Referenced by error().

virtual void gbxutilacfr::TrivialTracer::info ( const std::string &  message,
int  level = 1,
bool  localOnly = false 
) [inline, virtual]

Routing is determined by InfoToXxx parameter. If localOnly is set to TRUE, messages are not sent over the network (useful when traces is caused by network errors).

Reimplemented from gbxutilacfr::Tracer.

References info().

Referenced by info().

void gbxutilacfr::TrivialTracer::print ( const std::string &  message  )  [virtual]

LOCAL INTERFACE.

Prints out verbatim to stdout. It is never routed over the network.

See also:
info

Implements gbxutilacfr::Tracer.

int gbxutilacfr::TrivialTracer::verbosity ( TraceType  traceType,
DestinationType  destType = ToAny 
) const [virtual]

Returns the verbosity level for traceType to destType. This test is performed internally by all tracing functions, e.g. error(). You may want to call this function yourself before calling error() if there is a significant overhead in forming the tracing string. See class documentation for an example of such usage.

Implements gbxutilacfr::Tracer.

References gbxutilacfr::NumberOfTraceTypes.

virtual void gbxutilacfr::TrivialTracer::warning ( const std::string &  message,
int  level = 1,
bool  localOnly = false 
) [inline, virtual]

Routing is determined by WarningToXxx parameter. If localOnly is set to TRUE, messages are not sent over the network (useful when traces is caused by network errors).

Reimplemented from gbxutilacfr::Tracer.

References warning().

Referenced by warning().


The documentation for this class was generated from the following files:
 

Generated for GearBox by  doxygen 1.4.5