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

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...
 
 OutputHandler (void)
 
virtual ~OutputHandler (void)
 

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.

Definition at line 125 of file console.h.

Constructor & Destructor Documentation

console_bridge::OutputHandler::OutputHandler ( void  )
inline

Definition at line 129 of file console.h.

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

Definition at line 133 of file console.h.

Member Function Documentation

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

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


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


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