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

vstreamcvdebug ()
 Short for debug output in non-debug build output send to this will be ignored. More...
 
vstreamcverr ()
 send errors to this stream adapter More...
 
vstreamcvfail ()
 direct output to this stream adapter to print out failtures in tests beyond BOOST_FAIL More...
 
vstreamcvfatal ()
 direct output to this stream adapter to print out fatalities in the code More...
 
vstreamcvinfo ()
 informal output that may be of interest to understand problems with a program and are of higher priority then debugging output. More...
 
vstreamcvmsg ()
 send messages to this stream adapter More...
 
vstreamcvwarn ()
 send warnings to this stream adapter More...
 
template<typename T >
std::ostream & operator<< (std::ostream &os, const std::vector< T > &v)
 
template<typename T >
vstreamoperator<< (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.