Logger client base class.
More...
#include <geogram/basic/logger.h>
|
| virtual void | div (const std::string &title)=0 |
| | Creates a new division.
|
| |
| virtual void | out (const std::string &str)=0 |
| | Handles an information message.
|
| |
| virtual void | warn (const std::string &str)=0 |
| | Handles a warning message.
|
| |
| virtual void | err (const std::string &str)=0 |
| | Handles an error message.
|
| |
| virtual void | status (const std::string &str)=0 |
| | Handles a status message.
|
| |
|
| ~LoggerClient () override |
| | LoggerClient destructor.
|
| |
| void | ref () const |
| | Increments the reference count.
|
| |
| void | unref () const |
| | Decrements the reference count.
|
| |
| bool | is_shared () const |
| | Check if the object is shared.
|
| |
| int | nb_refs () const |
| | Gets the number of references that point to this object.
|
| |
|
| static void | ref (const Counted *counted) |
| | Increments the reference count.
|
| |
| static void | unref (const Counted *counted) |
| | Decrements the reference count.
|
| |
| | Counted () |
| | Creates a reference counted object.
|
| |
| virtual | ~Counted () |
| | Destroys a reference counted object.
|
| |
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: