Classes | Namespaces | Macros | Enumerations | Functions
console.h File Reference
#include <string>
#include "exportdecl.h"
Include dependency graph for console.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  console_bridge::OutputHandler
 Generic class to handle output from a piece of code. More...
 
class  console_bridge::OutputHandlerFile
 Implementation of OutputHandler that saves messages in a file. More...
 
class  console_bridge::OutputHandlerSTD
 Default implementation of OutputHandler. This sends the information to the console. More...
 

Namespaces

 console_bridge
 Message namespace. This contains classes needed to output error messages (or logging) from within the library. Message logging can be performed with logging macros.
 

Macros

#define CONSOLE_BRIDGE_DEPRECATED
 
#define CONSOLE_BRIDGE_logDebug(fmt, ...)   console_bridge::log(__FILE__, __LINE__, console_bridge::CONSOLE_BRIDGE_LOG_DEBUG, fmt, ##__VA_ARGS__)
 
#define CONSOLE_BRIDGE_logError(fmt, ...)   console_bridge::log(__FILE__, __LINE__, console_bridge::CONSOLE_BRIDGE_LOG_ERROR, fmt, ##__VA_ARGS__)
 
#define CONSOLE_BRIDGE_logInform(fmt, ...)   console_bridge::log(__FILE__, __LINE__, console_bridge::CONSOLE_BRIDGE_LOG_INFO, fmt, ##__VA_ARGS__)
 
#define CONSOLE_BRIDGE_logWarn(fmt, ...)   console_bridge::log(__FILE__, __LINE__, console_bridge::CONSOLE_BRIDGE_LOG_WARN, fmt, ##__VA_ARGS__)
 

Enumerations

enum  console_bridge::LogLevel {
  console_bridge::CONSOLE_BRIDGE_LOG_DEBUG = 0, console_bridge::CONSOLE_BRIDGE_LOG_INFO, console_bridge::CONSOLE_BRIDGE_LOG_WARN, console_bridge::CONSOLE_BRIDGE_LOG_ERROR,
  console_bridge::CONSOLE_BRIDGE_LOG_NONE
}
 The set of priorities for message logging. More...
 

Functions

static void CONSOLE_BRIDGE_DEPRECATED console_bridge_deprecated ()
 
LogLevel console_bridge::getLogLevel (void)
 Retrieve the current level of logging data. Messages with lower logging levels will not be recorded. More...
 
OutputHandler * console_bridge::getOutputHandler (void)
 Get the instance of the OutputHandler currently used. This is NULL in case there is no output handler. More...
 
void console_bridge::log (const char *file, int line, LogLevel level, const char *m,...)
 Root level logging function. This should not be invoked directly, but rather used via a logging macro. Formats the message string given the arguments and forwards the string to the output handler. More...
 
CONSOLE_BRIDGE_DEPRECATED void console_bridge::log_deprecated (const char *file, int line, LogLevel level, const char *m,...)
 Root level logging function. This should not be invoked directly, but rather used via a logging macro. Formats the message string given the arguments and forwards the string to the output handler. More...
 
void console_bridge::noOutputHandler (void)
 This function instructs ompl that no messages should be outputted. Equivalent to useOutputHandler(NULL) More...
 
void console_bridge::restorePreviousOutputHandler (void)
 Restore the output handler that was previously in use (if any) More...
 
void console_bridge::setLogLevel (LogLevel level)
 Set the minimum level of logging data to output. Messages with lower logging levels will not be recorded. More...
 
void console_bridge::useOutputHandler (OutputHandler *oh)
 Specify the instance of the OutputHandler to use. By default, this is OutputHandlerSTD. More...
 

Macro Definition Documentation

#define CONSOLE_BRIDGE_DEPRECATED

Definition at line 51 of file console.h.

#define CONSOLE_BRIDGE_logDebug (   fmt,
  ... 
)    console_bridge::log(__FILE__, __LINE__, console_bridge::CONSOLE_BRIDGE_LOG_DEBUG, fmt, ##__VA_ARGS__)

Definition at line 87 of file console.h.

#define CONSOLE_BRIDGE_logError (   fmt,
  ... 
)    console_bridge::log(__FILE__, __LINE__, console_bridge::CONSOLE_BRIDGE_LOG_ERROR, fmt, ##__VA_ARGS__)

Definition at line 78 of file console.h.

#define CONSOLE_BRIDGE_logInform (   fmt,
  ... 
)    console_bridge::log(__FILE__, __LINE__, console_bridge::CONSOLE_BRIDGE_LOG_INFO, fmt, ##__VA_ARGS__)

Definition at line 84 of file console.h.

#define CONSOLE_BRIDGE_logWarn (   fmt,
  ... 
)    console_bridge::log(__FILE__, __LINE__, console_bridge::CONSOLE_BRIDGE_LOG_WARN, fmt, ##__VA_ARGS__)

Definition at line 81 of file console.h.

Function Documentation

static void CONSOLE_BRIDGE_DEPRECATED console_bridge_deprecated ( )
inlinestatic

Definition at line 54 of file console.h.



librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:24