Geogram  Version 1.9.1
A programming library of geometric algorithms
GEO::LoggerClient Class Referenceabstract

Logger client base class. More...

#include <geogram/basic/logger.h>

Inheritance diagram for GEO::LoggerClient:
GEO::Counted GEO::Console GEO::ConsoleLogger GEO::FileLogger

Public Member Functions

virtual void div (const std::string &title)=0
 Creates a new division. More...
 
virtual void out (const std::string &str)=0
 Handles an information message. More...
 
virtual void warn (const std::string &str)=0
 Handles a warning message. More...
 
virtual void err (const std::string &str)=0
 Handles an error message. More...
 
virtual void status (const std::string &str)=0
 Handles a status message. More...
 
 ~LoggerClient () override
 LoggerClient destructor.
 
- Public Member Functions inherited from GEO::Counted
void ref () const
 Increments the reference count. More...
 
void unref () const
 Decrements the reference count. More...
 
bool is_shared () const
 Check if the object is shared. More...
 
int nb_refs () const
 Gets the number of references that point to this object. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from GEO::Counted
static void ref (const Counted *counted)
 Increments the reference count. More...
 
static void unref (const Counted *counted)
 Decrements the reference count. More...
 
- Protected Member Functions inherited from GEO::Counted
 Counted ()
 Creates a reference counted object. More...
 
virtual ~Counted ()
 Destroys a reference counted object. More...
 

Detailed Description

Logger client base class.

Messages sent to the Logger are sent back to registered LoggerClients. Logger clients must implement the following functions to handle the messages:

  • div() - to create a new division
  • out() - to handle information messages
  • warn() - to handle warning messages
  • err() - to handle error messages
  • status() - to handle status messages It is the responsibility of the derived LoggerClients to handle the various kind of messages sent by the Logger appropriately.

Definition at line 156 of file logger.h.

Member Function Documentation

◆ div()

virtual void GEO::LoggerClient::div ( const std::string &  title)
pure virtual

Creates a new division.

This creates a new division entitled with title

Parameters
[in]titlethe text of the title

Implemented in GEO::Console, GEO::FileLogger, and GEO::ConsoleLogger.

◆ err()

virtual void GEO::LoggerClient::err ( const std::string &  str)
pure virtual

Handles an error message.

Parameters
[in]strthe text of the message

Implemented in GEO::Console, GEO::FileLogger, and GEO::ConsoleLogger.

◆ out()

virtual void GEO::LoggerClient::out ( const std::string &  str)
pure virtual

Handles an information message.

Parameters
[in]strthe text of the message

Implemented in GEO::Console, GEO::FileLogger, and GEO::ConsoleLogger.

◆ status()

virtual void GEO::LoggerClient::status ( const std::string &  str)
pure virtual

Handles a status message.

Parameters
[in]strthe text of the message

Implemented in GEO::Console, GEO::FileLogger, and GEO::ConsoleLogger.

◆ warn()

virtual void GEO::LoggerClient::warn ( const std::string &  str)
pure virtual

Handles a warning message.

Parameters
[in]strthe text of the message

Implemented in GEO::Console, GEO::FileLogger, and GEO::ConsoleLogger.


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