gempyre  1.7.1
GempyreUtils::LogWriter Class Referenceabstract

Parent class for LogWriters. More...

#include <gempyre_utils.h>

Public Member Functions

 LogWriter ()
 Constructor.
 
virtual ~LogWriter ()
 Destructor.
 
 LogWriter (const GempyreUtils::LogWriter &)=delete
 
LogWriteroperator= (const GempyreUtils::LogWriter &)=delete
 
virtual std::string header (LogLevel logLevel)
 header of class, called before every line, default just returns a timestamp and loglevel string. More...
 
virtual bool do_write (const char *buffer, size_t count)=0
 Implement write to the medium. More...
 
virtual bool has_ansi () const
 override to return true if this write supports ANSI colors, default just return false
 

Detailed Description

Parent class for LogWriters.

Member Function Documentation

◆ do_write()

virtual bool GempyreUtils::LogWriter::do_write ( const char *  buffer,
size_t  count 
)
pure virtual

Implement write to the medium.

Parameters
bufferBuffer's address
countit's size
Returns

◆ header()

virtual std::string GempyreUtils::LogWriter::header ( LogLevel  logLevel)
virtual

header of class, called before every line, default just returns a timestamp and loglevel string.

Parameters
logLevel
Returns


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