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

Moteur3D::FileLogger Class Reference

This logger simply outputs everything into a file. More...

#include <FileLogger.h>

Inheritance diagram for Moteur3D::FileLogger:

Moteur3D::BaseLogger List of all members.

Public Member Functions

 FileLogger (const string &Filename=string("./out.log"))
 Constructor.
 ~FileLogger ()
 Destructor. Not much to say about it except that it closes the file.
virtual int Log (const string &Message)
 Logs a wide string into the desired file.
virtual int LogLine (const string &Message)
 Logs a wide string into the desired file. Adds a carriage return at the end of the line.

Private Attributes

ofstream m_File
 File pointer.

Detailed Description

This logger simply outputs everything into a file.


Constructor & Destructor Documentation

Moteur3D::FileLogger::FileLogger const string &  Filename = string("./out.log")  ) 
 

Constructor.

Parameters:
Filename If you specify a filename the logger will output everything in it (if the file can be opened). Else the default value is "./out.log"

Moteur3D::FileLogger::~FileLogger  ) 
 

Destructor. Not much to say about it except that it closes the file.


Member Function Documentation

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

Logs a wide string into the desired file.

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

Implements Moteur3D::BaseLogger.

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

Logs a wide string into the desired file. Adds a carriage return at the end of the line.

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

Implements Moteur3D::BaseLogger.


Member Data Documentation

ofstream Moteur3D::FileLogger::m_File [private]
 

File pointer.


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