This base class provides a common printf-like method to send debug information to std::cout, with the purpose of allowing its redirection to other streams if desired.
By default, messages sent to "printf_debug" will be shown in the console (cout) and also in the stream passed to debugOutputSetStream, but the console output can be switched off with debugOutputEnableConsole(false).
In addition, this class will send all the messages from "printf_debug" to the Visual Studio "Output Window" in debug mode (obviously, this is a feature only enabled under Windows).
See CDebugOutputCapable::printf_debug.
Definition at line 33 of file CDebugOutputCapable.h.
#include <mrpt/utils/CDebugOutputCapable.h>
Public Member Functions | |
CDebugOutputCapable (const std::string &logName=std::string("log")) | |
Default initialization. More... | |
virtual | ~CDebugOutputCapable () |
void | printf_debug (const char *frmt,...) const MRPT_printf_format_check(2 |
Sends a formated text to "debugOut" if not NULL, or to cout otherwise. More... | |
|
inline |
Default initialization.
Definition at line 37 of file CDebugOutputCapable.h.
|
inlinevirtual |
Definition at line 38 of file CDebugOutputCapable.h.
References MRPT_printf_format_check.
void mrpt::utils::CDebugOutputCapable::printf_debug | ( | const char * | frmt, |
... | |||
) | const |
Sends a formated text to "debugOut" if not NULL, or to cout otherwise.
Page generated by Doxygen 1.8.13 for MRPT 1.5.3 at Sun Nov 26 00:44:48 UTC 2017 |