Geogram
Version 1.9.1-rc
A programming library of geometric algorithms
|
Stream used by the Logger. More...
#include <geogram/basic/logger.h>
Public Member Functions | |
LoggerStream (Logger *logger) | |
Creates a Logger stream. More... | |
~LoggerStream () override | |
Logger stream destructor. | |
Protected Member Functions | |
void | notify (const std::string &str) |
Sends a string to the Logger. More... | |
Friends | |
class | LoggerStreamBuf |
Stream used by the Logger.
This class is used used internally to implement logger mechanism. Since it inherits a STL class, it is declared as NO_GEOGRAM_API so that it is not exported when Windows DLLs are generated (doing otherwise would generate multiply defined symbols).
GEO::LoggerStream::LoggerStream | ( | Logger * | logger | ) |
Creates a Logger stream.
Creates a LoggerStream associated to the Logger logger
[in] | logger | the Logger that owns this stream |
|
protected |
Sends a string to the Logger.
This function is called by LoggerStreamBuf::sync() when a sequence of characters str
is available in the stream. This sequence is sent back to the logger to deliver to the LoggerClients
[in] | str | the sequence of characters to send |