Logger client base class.
More...
#include <geogram/basic/logger.h>
|
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.
|
|
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...
|
|
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.
◆ div()
virtual void GEO::LoggerClient::div |
( |
const std::string & |
title | ) |
|
|
pure virtual |
◆ err()
virtual void GEO::LoggerClient::err |
( |
const std::string & |
str | ) |
|
|
pure virtual |
◆ out()
virtual void GEO::LoggerClient::out |
( |
const std::string & |
str | ) |
|
|
pure virtual |
◆ status()
virtual void GEO::LoggerClient::status |
( |
const std::string & |
str | ) |
|
|
pure virtual |
◆ warn()
virtual void GEO::LoggerClient::warn |
( |
const std::string & |
str | ) |
|
|
pure virtual |
The documentation for this class was generated from the following file: