CLog Class Reference

Implements a log file where messages can be written to. More...

#include <CLog.h>

List of all members.

Public Member Functions

 CLog ()
virtual ~CLog ()
bool Open (const char *pFilename)
 Open the log.
bool Close ()
 Close the log.
void LogLastError ()
 Log the last occured error!
long Write (const char *pMessage,...)
long WriteLine (const char *pMessage,...)
 Write a line to the log.
bool IsOpen ()
 Return whether the log is open or not.

Static Public Member Functions

static CLogGetLog ()
 Get an instance of CLog (singleton).

Private Attributes

ofstream m_theLog
bool m_bOpen


Detailed Description

Implements a log file where messages can be written to.

Constructor & Destructor Documentation

CLog::CLog (  ) 

CLog::~CLog (  )  [virtual]

Here is the call graph for this function:


Member Function Documentation

CLog & CLog::GetLog (  )  [static]

Get an instance of CLog (singleton).

bool CLog::Open ( const char *  pFilename  ) 

Open the log.

Here is the call graph for this function:

bool CLog::Close ( void   ) 

Close the log.

Here is the caller graph for this function:

void CLog::LogLastError (  ) 

Log the last occured error!

Log the last error, which can be found by calling the WINAPI function GetLastError().

Here is the call graph for this function:

long CLog::Write ( const char *  pMessage,
  ... 
)

long CLog::WriteLine ( const char *  pMessage,
  ... 
)

Write a line to the log.

Here is the caller graph for this function:

bool CLog::IsOpen ( void   )  [inline]

Return whether the log is open or not.


Member Data Documentation

ofstream CLog::m_theLog [private]

bool CLog::m_bOpen [private]


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

Generated on Sat Oct 18 12:26:46 2008 for Bombermaaan by  doxygen 1.5.5
Visit the Bombermaaan project page
SourceForge.net Logo