YARP
Yet Another Robot Platform
yarp::manager::ErrorLogger Class Reference

Singleton class ErrorLogger. More...

#include <yarp/manager/utility.h>

Public Member Functions

void addWarning (const char *szWarning)
 
void addWarning (const std::string &str)
 
void addWarning (OSTRINGSTREAM &stream)
 
void addError (const char *szError)
 
void addError (const std::string &str)
 
void addError (OSTRINGSTREAM &stream)
 
const char * getLastError ()
 
const char * getLastWarning ()
 
const char * getFormatedErrorString ()
 
const char * getFormatedWarningString ()
 
void clear ()
 
int errorCount ()
 
int warningCount ()
 

Static Public Member Functions

static ErrorLoggerInstance ()
 Singleton class ErrorLogger. More...
 

Detailed Description

Singleton class ErrorLogger.

Definition at line 59 of file utility.h.

Member Function Documentation

◆ addError() [1/3]

void ErrorLogger::addError ( const char *  szError)

Definition at line 121 of file utility.cpp.

◆ addError() [2/3]

void ErrorLogger::addError ( const std::string &  str)

Definition at line 126 of file utility.cpp.

◆ addError() [3/3]

void ErrorLogger::addError ( OSTRINGSTREAM stream)

Definition at line 130 of file utility.cpp.

◆ addWarning() [1/3]

void ErrorLogger::addWarning ( const char *  szWarning)

Definition at line 108 of file utility.cpp.

◆ addWarning() [2/3]

void ErrorLogger::addWarning ( const std::string &  str)

Definition at line 113 of file utility.cpp.

◆ addWarning() [3/3]

void ErrorLogger::addWarning ( OSTRINGSTREAM stream)

Definition at line 117 of file utility.cpp.

◆ clear()

void ErrorLogger::clear ( )

Definition at line 169 of file utility.cpp.

◆ errorCount()

int ErrorLogger::errorCount ( )

Definition at line 173 of file utility.cpp.

◆ getFormatedErrorString()

const char * ErrorLogger::getFormatedErrorString ( )

Definition at line 143 of file utility.cpp.

◆ getFormatedWarningString()

const char * ErrorLogger::getFormatedWarningString ( )

Definition at line 160 of file utility.cpp.

◆ getLastError()

const char * ErrorLogger::getLastError ( )

Definition at line 134 of file utility.cpp.

◆ getLastWarning()

const char * ErrorLogger::getLastWarning ( )

Definition at line 151 of file utility.cpp.

◆ Instance()

ErrorLogger * ErrorLogger::Instance ( )
static

Singleton class ErrorLogger.

Definition at line 102 of file utility.cpp.

◆ warningCount()

int ErrorLogger::warningCount ( )

Definition at line 177 of file utility.cpp.


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