Geogram  Version 1.9.1
A programming library of geometric algorithms
GEO::LoggerStream Class Reference

Stream used by the Logger. More...

#include <geogram/basic/logger.h>

Inheritance diagram for GEO::LoggerStream:

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
 

Detailed Description

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).

Definition at line 110 of file logger.h.

Constructor & Destructor Documentation

◆ LoggerStream()

GEO::LoggerStream::LoggerStream ( Logger logger)

Creates a Logger stream.

Creates a LoggerStream associated to the Logger logger

Parameters
[in]loggerthe Logger that owns this stream

Member Function Documentation

◆ notify()

void GEO::LoggerStream::notify ( const std::string &  str)
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

Parameters
[in]strthe sequence of characters to send
See also
LoggerStreamBuf::sync()

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