Main MRPT website > C++ reference
MRPT logo
List of all members | Public Member Functions | Static Public Member Functions
mrpt::utils::CDebugOutputCapable Class Reference

Detailed Description

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 58 of file CDebugOutputCapable.h.

#include <mrpt/utils/CDebugOutputCapable.h>

Inheritance diagram for mrpt::utils::CDebugOutputCapable:
Inheritance graph
[legend]

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...
 

Constructor & Destructor Documentation

◆ CDebugOutputCapable()

mrpt::utils::CDebugOutputCapable::CDebugOutputCapable ( )
inline

Default initialization.

Definition at line 62 of file CDebugOutputCapable.h.

◆ ~CDebugOutputCapable()

virtual mrpt::utils::CDebugOutputCapable::~CDebugOutputCapable ( )
inlinevirtual

Definition at line 63 of file CDebugOutputCapable.h.

Member Function Documentation

◆ printf_debug()

static void mrpt::utils::CDebugOutputCapable::printf_debug ( const char *  frmt,
  ... 
)
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.8.14 for MRPT 1.0.2 SVN: at lun oct 28 00:52:41 CET 2019 Hosted on:
SourceForge.net Logo