Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Moteur3D::BaseLogger Class Reference

Base class for handling logging. Every logger should derive from this class. More...

#include <BaseLogger.h>

Inheritance diagram for Moteur3D::BaseLogger:

Moteur3D::FileLogger List of all members.

Public Member Functions

virtual ~BaseLogger ()
 Destructor.
virtual int Log (const string &Message)=0
 This function should log a wide string. Override it in derived classes.
virtual int LogLine (const string &Message)=0
 This function should log a wide string. Override it in derived classes.

Protected Member Functions

virtual string CurrentDate ()
 Formats and returns the current date, international syntax (yyyy-mm-dd).
virtual string CurrentTime ()
 Formats and returns the current Time, 24h format (hh:mm:ss). Uses on computer's local time.

Detailed Description

Base class for handling logging. Every logger should derive from this class.


Constructor & Destructor Documentation

virtual Moteur3D::BaseLogger::~BaseLogger  )  [virtual]
 

Destructor.


Member Function Documentation

virtual string Moteur3D::BaseLogger::CurrentDate  )  [protected, virtual]
 

Formats and returns the current date, international syntax (yyyy-mm-dd).

virtual string Moteur3D::BaseLogger::CurrentTime  )  [protected, virtual]
 

Formats and returns the current Time, 24h format (hh:mm:ss). Uses on computer's local time.

virtual int Moteur3D::BaseLogger::Log const string &  Message  )  [pure virtual]
 

This function should log a wide string. Override it in derived classes.

Parameters:
Message Message to log, in STL's string format.
Returns:
0 if success, >0 if an error occured.

Implemented in Moteur3D::FileLogger.

virtual int Moteur3D::BaseLogger::LogLine const string &  Message  )  [pure virtual]
 

This function should log a wide string. Override it in derived classes.

Parameters:
Message Message to log, in STL's string format.
Returns:
0 if success, >0 if an error occured.

Implemented in Moteur3D::FileLogger.


The documentation for this class was generated from the following file:
Generated on Sat Oct 15 15:05:51 2005 for Moteur3D by  doxygen 1.4.4