#include <Reporter.h>
Inheritance diagram for Reporter:
All objects of this class share the same verbosity level. Typical usage is to inherit this class and use the report() function to report events. Only reports which are of suffucient importance are really reported.
The default verbosity is 1, and the default ostream is cout.
Known problems: this class is not thread-safe.
Definition at line 83 of file Reporter.h.
Public Member Functions | |
virtual | ~Reporter (void) throw ( Exception ) |
Destructor. | |
Static Public Member Functions | |
static void | setReportVerbosity (unsigned int verbosity) throw () |
Set the verbosity level. | |
static unsigned int | getReportVerbosity (void) throw () |
Get the verbosity level. | |
static void | setReportOutputStream (std::ostream &os) throw () |
Set the output stream to report to. | |
static std::ostream & | getReportOutputStream (void) throw () |
Get the output stream to report to. | |
template<class T> | |
static void | reportEvent (unsigned int verbosity, const T t) throw () |
Report an event with a given verbosity. | |
template<class T, class U> | |
static void | reportEvent (unsigned int verbosity, const T t, const U u) throw () |
Report an event with a given verbosity. | |
template<class T, class U, class V> | |
static void | reportEvent (unsigned int verbosity, const T t, const U u, const V v) throw () |
Report an event with a given verbosity. | |
template<class T, class U, class V, class W> | |
static void | reportEvent (unsigned int verbosity, const T t, const U u, const V v, const W w) throw () |
Report an event with a given verbosity. |
|
Destructor.
Definition at line 132 of file Reporter.h. |
|
Get the output stream to report to.
Definition at line 178 of file Reporter.h. |
|
Get the verbosity level.
Definition at line 155 of file Reporter.h. |
|
Report an event with a given verbosity.
Definition at line 278 of file Reporter.h. |
|
Report an event with a given verbosity.
Definition at line 245 of file Reporter.h. |
|
Report an event with a given verbosity.
Definition at line 217 of file Reporter.h. |
|
Report an event with a given verbosity.
Definition at line 194 of file Reporter.h. Referenced by FileSink::create(), AudioSource::createDspSource(), MultiThreadedConnector::open(), CastSink::open(), DarkIce::run(), and MultiThreadedConnector::sinkThread(). |
|
Set the output stream to report to. This setting effects all Reporter objects.
Definition at line 167 of file Reporter.h. Referenced by main(). |
|
Set the verbosity level. This sets the verbosity for all Reporter objects.
Definition at line 144 of file Reporter.h. Referenced by main(). |