Main MRPT website > C++ reference
MRPT logo

mrpt::utils::CDebugOutputCapable Class Reference

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

#include <mrpt/utils/CDebugOutputCapable.h>

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

List of all members.

Public Member Functions

 CDebugOutputCapable ()
 Default initialization.
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.

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


Constructor & Destructor Documentation

mrpt::utils::CDebugOutputCapable::CDebugOutputCapable (  )  [inline]

Default initialization.

Definition at line 54 of file CDebugOutputCapable.h.

virtual mrpt::utils::CDebugOutputCapable::~CDebugOutputCapable (  )  [inline, virtual]

Definition at line 55 of file CDebugOutputCapable.h.


Member Function Documentation

static void mrpt::utils::CDebugOutputCapable::printf_debug ( const char *  frmt,
  ... 
) [static]
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines



Page generated by Doxygen 1.6.1 for MRPT 0.9.0 SVN: at Mon Jun 7 06:47:58 UTC 2010