Main class of the real-time logger. More...
#include <dynamic-graph/real-time-logger-def.h>
Public Member Functions | |
| RealTimeLogger (const std::size_t &bufferSize) | |
| void | addOutputStream (const LoggerStreamPtr_t &os) |
| void | clearOutputStreams () |
| bool | empty () const |
| RTLoggerStream | emptyStream () |
| Return an empty stream object. | |
| RTLoggerStream | front () |
| void | frontReady () |
| bool | full () const |
| std::size_t | getBufferSize () |
| std::size_t | size () const |
| bool | spinOnce () |
Static Public Member Functions | |
| static void | destroy () |
| static RealTimeLogger & | instance () |
Main class of the real-time logger.
It is intended to be used like this:
Definition at line 96 of file real-time-logger-def.h.
| RealTimeLogger | ( | const std::size_t & | bufferSize | ) |
| RTLoggerStream front | ( | ) |
Return an object onto which a real-time thread can write. The message is considered finished when the object is destroyed.
| bool spinOnce | ( | ) |
Write next message to output. It does nothing if the buffer is empty.