console_bridge_dev  master
It is a ROS-independent, pure CMake (i.e. non-catkin and non-rosbuild package) that provides logging calls that mirror those found in rosconsole, but for applications that are not necessarily using ROS.
Public Member Functions | List of all members
console_bridge::OutputHandler Class Referenceabstract

Generic class to handle output from a piece of code. More...

#include <console.h>

Inheritance diagram for console_bridge::OutputHandler:
Inheritance graph
[legend]

Public Member Functions

 OutputHandler (void)
 
virtual ~OutputHandler (void)
 
virtual void log (const std::string &text, LogLevel level, const char *filename, int line)=0
 log a message to the output handler with the given text and logging level from a specific file and line number More...
 

Detailed Description

Generic class to handle output from a piece of code.

In order to handle output from the library in different ways, an implementation of this class needs to be provided. This instance can be set with the useOutputHandler function.

Constructor & Destructor Documentation

◆ OutputHandler()

console_bridge::OutputHandler::OutputHandler ( void  )
inline

◆ ~OutputHandler()

virtual console_bridge::OutputHandler::~OutputHandler ( void  )
inlinevirtual

Member Function Documentation

◆ log()

virtual void console_bridge::OutputHandler::log ( const std::string &  text,
LogLevel  level,
const char *  filename,
int  line 
)
pure virtual

log a message to the output handler with the given text and logging level from a specific file and line number

Parameters
textto log
levelconsole_bridge log level
filenameof the output log
line

Implemented in console_bridge::OutputHandlerFile, and console_bridge::OutputHandlerSTD.


The documentation for this class was generated from the following file: