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

Logger client that redirects messages to standard output. More...

#include <geogram/basic/logger.h>

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

Public Member Functions

 ConsoleLogger ()
 Creates a ConsoleLogger.
 
void div (const std::string &title) override
 Creates a new division. More...
 
void out (const std::string &str) override
 Handles an information message. More...
 
void warn (const std::string &str) override
 Handles a warning message. More...
 
void err (const std::string &str) override
 Handles an error message. More...
 
void status (const std::string &str) override
 Handles a status message. More...
 
- Public Member Functions inherited from GEO::LoggerClient
 ~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...
 

Protected Member Functions

 ~ConsoleLogger () override
 ConsoleLogger destructor.
 
- Protected Member Functions inherited from GEO::Counted
 Counted ()
 Creates a reference counted object. More...
 
virtual ~Counted ()
 Destroys a reference counted 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...
 

Detailed Description

Logger client that redirects messages to standard output.

Definition at line 203 of file logger.h.

Member Function Documentation

◆ div()

void GEO::ConsoleLogger::div ( const std::string &  title)
overridevirtual

Creates a new division.

This creates a new division entitled with title

Parameters
[in]titlethe text of the title

Implements GEO::LoggerClient.

◆ err()

void GEO::ConsoleLogger::err ( const std::string &  str)
overridevirtual

Handles an error message.

Parameters
[in]strthe text of the message

Implements GEO::LoggerClient.

◆ out()

void GEO::ConsoleLogger::out ( const std::string &  str)
overridevirtual

Handles an information message.

Parameters
[in]strthe text of the message

Implements GEO::LoggerClient.

◆ status()

void GEO::ConsoleLogger::status ( const std::string &  str)
overridevirtual

Handles a status message.

Parameters
[in]strthe text of the message This function does actually nothing

Implements GEO::LoggerClient.

◆ warn()

void GEO::ConsoleLogger::warn ( const std::string &  str)
overridevirtual

Handles a warning message.

Parameters
[in]strthe text of the message

Implements GEO::LoggerClient.


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