Back to bsyte

Logging Class Reference

Logging-Klasse als Singleton. More...

#include <Logging.h>

Collaboration diagram for Logging:

List of all members.

Public Member Functions

virtual ~Logging ()
 Destruktor.
void reset (void)
 Loescht den Inhalt der Logdatei und schreibt eine Startmeldung.
void getPath (std::string &path)
 Ermittelt (Betriebssystemunabhaengig) den lokalen Pfad, inkl. abschliessenden Slash/Backslash.
void info (char *msg)
 Info-Ausgabe.
void debug (char *msg)
 Debug-Ausgabe.
void error (char *msg)
 Error-Ausgabe.

Static Public Member Functions

static LogginggetInstance ()
 Liefert die Singleton-Instanz.

Public Attributes

char m_msg [1024]

Protected Member Functions

 Logging ()
 Konstruktor.

Private Member Functions

void write (std::string &msg)
 write
void getDate (void)
 Ermittelt Datum und Uhrzeit.

Private Attributes

std::string m_logpath
std::string m_logfile
std::string m_date

Static Private Attributes

static Logging_instance = 0

Detailed Description

Logging-Klasse als Singleton.


Constructor & Destructor Documentation

Logging::Logging ( ) [protected]

Konstruktor.

Here is the call graph for this function:

Here is the caller graph for this function:

Logging::~Logging ( ) [virtual]

Destruktor.


Member Function Documentation

void Logging::debug ( char *  msg)

Debug-Ausgabe.

Parameters:
msgLogtext

Here is the call graph for this function:

Here is the caller graph for this function:

void Logging::error ( char *  msg)

Error-Ausgabe.

Parameters:
msgLogtext

Here is the call graph for this function:

Here is the caller graph for this function:

void Logging::getDate ( void  ) [private]

Ermittelt Datum und Uhrzeit.

Here is the caller graph for this function:

Logging * Logging::getInstance ( ) [static]

Liefert die Singleton-Instanz.

Returns:
Pointer auf die Instanz

Here is the call graph for this function:

Here is the caller graph for this function:

void Logging::getPath ( std::string &  path)

Ermittelt (Betriebssystemunabhaengig) den lokalen Pfad, inkl. abschliessenden Slash/Backslash.

Here is the caller graph for this function:

void Logging::info ( char *  msg)

Info-Ausgabe.

Parameters:
msgLogtext

Here is the call graph for this function:

void Logging::reset ( void  )

Loescht den Inhalt der Logdatei und schreibt eine Startmeldung.

Here is the call graph for this function:

void Logging::write ( std::string &  msg) [private]

write

Parameters:
msgLogtext

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Logging * Logging::_instance = 0 [static, private]
std::string Logging::m_date [private]
std::string Logging::m_logfile [private]
std::string Logging::m_logpath [private]
char Logging::m_msg[1024]

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