DiaDes  0.1
DIAgnosis of Discrete-Event System
Public Types | Public Member Functions | Static Public Attributes | Protected Attributes | List of all members
Diades::Utils::Verbose Class Reference

#include <Verbose.hh>

Public Types

typedef VerboseLevel Level
 

Public Member Functions

 Verbose ()
 
 Verbose (Level level, const char *msg)
 
 ~Verbose ()
 
template<typename T >
Verboseoperator% (T value)
 

Static Public Attributes

static Level currentLevel
 

Protected Attributes

boost::format _fmt
 
Level _level
 

Detailed Description

This class is a toolkit for verbose modes with different critical levels Inspired from Kirill V. Lyadvinsky

See also
http://stackoverflow.com/questions/1255576/what-is-good-practice-for-generating-verbose-output

Definition at line 93 of file Verbose.hh.

Member Typedef Documentation

◆ Level

Definition at line 96 of file Verbose.hh.

Constructor & Destructor Documentation

◆ Verbose() [1/2]

Diades::Utils::Verbose::Verbose ( )
inline

Definition at line 100 of file Verbose.hh.

◆ Verbose() [2/2]

Diades::Utils::Verbose::Verbose ( Level  level,
const char *  msg 
)
inline

Definition at line 102 of file Verbose.hh.

◆ ~Verbose()

Diades::Utils::Verbose::~Verbose ( )

Member Function Documentation

◆ operator%()

template<typename T >
Verbose& Diades::Utils::Verbose::operator% ( value)
inline

Definition at line 107 of file Verbose.hh.

Member Data Documentation

◆ _fmt

boost::format Diades::Utils::Verbose::_fmt
protected

Definition at line 116 of file Verbose.hh.

◆ _level

Level Diades::Utils::Verbose::_level
protected

Definition at line 117 of file Verbose.hh.

◆ currentLevel

Level Diades::Utils::Verbose::currentLevel
static

Definition at line 98 of file Verbose.hh.

Referenced by setVerboseLevel().


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