Data Structures | Macros | Functions | Variables
msgstream.hh File Reference
#include <vector>
#include <cassert>
#include <ostream>
#include <boost/call_traits.hpp>
#include <mia/core/defines.hh>
#include <mia/core/dictmap.hh>

Go to the source code of this file.

Data Structures

class  CTrace
 
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...
 
#define FUNCTION_NOT_TESTED   ::mia::cvwarn() << __PRETTY_FUNCTION__ << ":not tested\n"
 a macro to indicate that there are no tests for a function More...
 
#define TRACE(DOMAIN)   ::mia::CTrace _xxx_trace(DOMAIN)
 a macro to trace scopes in a debug built More...
 
#define TRACE_FUNCTION   ::mia::CTrace _xxx_trace(__PRETTY_FUNCTION__)
 a macro to trace functions ina a debug build More...
 
#define VSTREAM_DOMAIN   "**"
 

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 >
std::ostream & operator<< (std::ostream &os, const std::vector< T > &v)
 
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...
 

Macro Definition Documentation

#define FUNCTION_NOT_TESTED   ::mia::cvwarn() << __PRETTY_FUNCTION__ << ":not tested\n"

a macro to indicate that there are no tests for a function

Definition at line 247 of file msgstream.hh.

#define TRACE (   DOMAIN)    ::mia::CTrace _xxx_trace(DOMAIN)

a macro to trace scopes in a debug built

Definition at line 241 of file msgstream.hh.

#define TRACE_FUNCTION   ::mia::CTrace _xxx_trace(__PRETTY_FUNCTION__)

a macro to trace functions ina a debug build

Definition at line 244 of file msgstream.hh.

#define VSTREAM_DOMAIN   "**"

Definition at line 36 of file msgstream.hh.

Referenced by cvdebug(), cverr(), cvfail(), cvfatal(), cvinfo(), cvmsg(), and cvwarn().

Function Documentation

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

Definition at line 41 of file msgstream.hh.