Related | |
group | Custom Debug Objects |
Functions | |
void | libcwd::debug_ct::set_ostream (std::ostream *os) |
Set output device (single threaded applications). | |
std::ostream * | libcwd::debug_ct::get_ostream (void) const |
Get the ostream device as set with set_ostream(). | |
template<class T> void | libcwd::debug_ct::set_ostream (std::ostream *os, T *mutex) |
Set output device and provide external lock. |
Basically, a debug object (debug_ct ) is a pointer to an ostream with a few extra attributes added to give it an internal state for on (pass output on) and off (don't pass output on) as well as some formatting information of how to write the data that is passed on to its ostream.
The methods of debug_ct given here allow you to set or get this ostream (pointer).
|
Set output device and provide external lock.
Assign a new Example:
|
|
Set output device (single threaded applications).
Assign a new |