- Main Page
- Namespaces
- Classes
- Files

- Alphabetical List
- Class List
- Class Hierarchy
- Class Members

# Tracer Class Reference

Inheritance diagram for Tracer:

List of all members.

## Detailed Description

Definition at line 22 of file wait.h.

## Public Member Functions
| Tracer (unsigned int level)
virtual | ~Tracer ()
## Protected Member Functions
virtual void | Trace (unsigned int n, std::string const &s)=0
| Override this in your most-derived tracer to do the actual tracing.
virtual bool | UsingDefaults () const
void | TraceIf (unsigned int n, std::string const &s)
unsigned int | Tracing (unsigned int nr, unsigned int minLevel) const
## Protected Attributes
unsigned int | m_level

## Member Function Documentation

virtual bool Tracer::UsingDefaults | ( |  | ) | const`[inline, protected, virtual]`

By default, tracers will decide which trace messages to trace according to a trace level mechanism. If your most-derived tracer uses a different mechanism, override this to return false. If this method returns false, the default TraceXxxx(void) methods will all return 0 and must be overridden explicitly by your tracer for trace messages you want.

Definition at line 36 of file wait.h.

unsigned int Tracer::Tracing | ( | unsigned int | nr,
|  | unsigned int | minLevel |
| ) |  |  | const`[inline, protected]`

Returns nr if, according to the default log settings mechanism (using log levels), the message should be traced. Returns 0 if the default trace level mechanism is not in use, or if it is in use but the event should not be traced. Provided as a utility method for easier and shorter coding of default TraceXxxx(void) implementations.

Definition at line 48 of file wait.h.

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

- wait.h