#include <mrpt/utils/CDebugOutputCapable.h>
Public Member Functions | |
CDebugOutputCapable (CStream *strm=NULL) | |
Default initialization. | |
virtual | ~CDebugOutputCapable () |
void | debugOutputSetStream (CStream *str) |
The passed stream MUST be a valid pointer during all the life of the derived class. | |
void | debugOutputEnableConsole (bool enable) |
Display messages into the console (std::cout) apart from the stream (default=true). | |
void | printf_debug (const char *frmt,...) |
Sends a formated text to "debugOut" if not NULL, or to cout otherwise. | |
Private Attributes | |
CStream * | m_stream |
bool | m_show_console |
By default, messages sent to "printf_debug" will be shown in the console (cout) and the stream passed to debugOutputSetStream, but console output can be switched off with debugOutputEnableConsole(false).
See CDebugOutputCapable::printf_debug.
Definition at line 47 of file CDebugOutputCapable.h.
mrpt::utils::CDebugOutputCapable::CDebugOutputCapable | ( | CStream * | strm = NULL |
) | [inline] |
virtual mrpt::utils::CDebugOutputCapable::~CDebugOutputCapable | ( | ) | [inline, virtual] |
Definition at line 57 of file CDebugOutputCapable.h.
void mrpt::utils::CDebugOutputCapable::debugOutputEnableConsole | ( | bool | enable | ) | [inline] |
Display messages into the console (std::cout) apart from the stream (default=true).
Definition at line 63 of file CDebugOutputCapable.h.
void mrpt::utils::CDebugOutputCapable::debugOutputSetStream | ( | CStream * | str | ) | [inline] |
The passed stream MUST be a valid pointer during all the life of the derived class.
Set to NULL to disable.
Definition at line 60 of file CDebugOutputCapable.h.
void mrpt::utils::CDebugOutputCapable::printf_debug | ( | const char * | frmt, | |
... | ||||
) |
Sends a formated text to "debugOut" if not NULL, or to cout otherwise.
bool mrpt::utils::CDebugOutputCapable::m_show_console [private] |
Definition at line 51 of file CDebugOutputCapable.h.
Reimplemented in mrpt::hwdrivers::C2DRangeFinderAbstract.
Definition at line 50 of file CDebugOutputCapable.h.
Page generated by Doxygen 1.5.8 for MRPT 0.6.5 SVN: at Thu Feb 26 02:19:01 EST 2009 |