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 31 of file CDebugOutputCapable.h.
#include <mrpt/utils/CDebugOutputCapable.h>
Public Member Functions | |
CDebugOutputCapable () | |
Default initialization. More... | |
virtual | ~CDebugOutputCapable () |
Static Public Member Functions | |
static void | printf_debug (const char *frmt,...) |
Sends a formated text to "debugOut" if not NULL, or to cout otherwise. More... | |
|
inline |
Default initialization.
Definition at line 35 of file CDebugOutputCapable.h.
|
inlinevirtual |
Definition at line 36 of file CDebugOutputCapable.h.
|
static |
Sends a formated text to "debugOut" if not NULL, or to cout otherwise.
Referenced by mrpt::math::CLevenbergMarquardtTempl< VECTORTYPE, USERPARAM >::execute().
Page generated by Doxygen 1.9.2 for MRPT 1.4.0 SVN: at Mon Sep 20 00:36:32 UTC 2021 |