debug::DebugTarget Struct Reference

#include <debug.h>

List of all members.

Public Member Functions

 DebugTarget ()
 DebugTarget (unsigned int level, std::ostream &s)

Public Attributes

unsigned int debugLevel
std::ostream & stream

Detailed Description

Target for debugging. This simple structure contains filter debug level and stream for data.


Constructor & Destructor Documentation

debug::DebugTarget::DebugTarget (  )  [inline]

Defaul constructor. Initializes debugLevel to DEFAULT_DEBUG_LEVEL and stream to the standard error.

debug::DebugTarget::DebugTarget ( unsigned int  level,
std::ostream &  s 
) [inline]

Constructor for full initialization.

Parameters:
level Debug level to be used.
s Stream to be used.

Member Data Documentation

Filter for message logging.

Only messages with priority higher (lower number) than this filter are printed when printDbg (TODO link) macro is used.
DEBUG_<PRIORITY> macro should be used for value. Value can be changed also in runtime by changeDebugLevel function (or directly changing variable value

  • first way is prefered one).

Stream for data.


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