Data Structures | Macros | Functions | Variables
Logging and debugguing

Classes and functions that are used for textual output. More...

Data Structures

class  CFixedWidthOutput
 This class provides formatted writing to a text console. More...
 
class  CThreadMsgStream
 This class is used to handle syncronizized output of logging output in a multi-threaded environment. More...
 
class  streamredir
 base class to redirect output streams More...
 
class  vstream
 A output stream to enable certain levels of verbosity. More...
 

Macros

#define cverb   ::mia::vstream::instance()
 define a shortcut to the raw output stream More...
 

Functions

vstream & cvdebug ()
 Short for debug output in non-debug build output send to this will be ignored. More...
 
vstream & cverr ()
 send errors to this stream adapter More...
 
vstream & cvfail ()
 direct output to this stream adapter to print out failtures in tests beyond BOOST_FAIL More...
 
vstream & cvfatal ()
 direct output to this stream adapter to print out fatalities in the code More...
 
vstream & cvinfo ()
 informal output that may be of interest to understand problems with a program and are of higher priority then debugging output. More...
 
vstream & cvmsg ()
 send messages to this stream adapter More...
 
vstream & cvwarn ()
 send warnings to this stream adapter More...
 
template<typename T >
vstream & operator<< (vstream &os, const std::vector< T > &v)
 implements the direct streaming of std::vectors. More...
 
void set_verbose (bool verbose)
 

Variables

EXPORT_CORE const TDictMap
< vstream::Level > 
g_verbose_dict
 Dictonary for the verbosity of the logging as used by –verbose comand line option. More...
 

Detailed Description

Classes and functions that are used for textual output.

Macro Definition Documentation

#define cverb   ::mia::vstream::instance()

define a shortcut to the raw output stream

Definition at line 335 of file msgstream.hh.

Referenced by kmeans_step().

Function Documentation

vstream& cvdebug ( )
inline
vstream& cverr ( )
inline

send errors to this stream adapter

Definition at line 305 of file msgstream.hh.

References vstream::instance(), vstream::ml_error, and VSTREAM_DOMAIN.

Referenced by TFactory< P >::create().

vstream& cvfail ( )
inline

direct output to this stream adapter to print out failtures in tests beyond BOOST_FAIL

Definition at line 295 of file msgstream.hh.

References vstream::instance(), vstream::ml_fail, and VSTREAM_DOMAIN.

Referenced by TFiltertestFixture< Image >::run().

vstream& cvfatal ( )
inline

direct output to this stream adapter to print out fatalities in the code

Definition at line 285 of file msgstream.hh.

References vstream::instance(), vstream::ml_fatal, and VSTREAM_DOMAIN.

vstream& cvinfo ( )
inline

informal output that may be of interest to understand problems with a program and are of higher priority then debugging output.

Definition at line 256 of file msgstream.hh.

References vstream::instance(), vstream::ml_info, and VSTREAM_DOMAIN.

Referenced by kmeans_step().

vstream& cvmsg ( )
inline

send messages to this stream adapter

Definition at line 325 of file msgstream.hh.

References vstream::instance(), vstream::ml_message, and VSTREAM_DOMAIN.

Referenced by TWatershed< dim >::operator()().

vstream& cvwarn ( )
inline

send warnings to this stream adapter

Definition at line 315 of file msgstream.hh.

References vstream::instance(), vstream::ml_warning, and VSTREAM_DOMAIN.

template<typename T >
vstream& operator<< ( vstream &  os,
const std::vector< T > &  v 
)

implements the direct streaming of std::vectors.

Definition at line 342 of file msgstream.hh.

void set_verbose ( bool  verbose)
Parameters
verboseverbose state

Set the cverb ostream in a verbose/non verbose mode depending on the verbose parameter. Currently set_verbose() can be called only one time. If this function is never called the default state of cverb is non-verbose mode

Variable Documentation

EXPORT_CORE const TDictMap<vstream::Level> g_verbose_dict

Dictonary for the verbosity of the logging as used by –verbose comand line option.