RawLogFile Class Reference

Log file class. More...

#include <LogFile.h>

List of all members.

Public Member Functions

 RawLogFile (const char *fileName)
 Log file constructor.
virtual ~RawLogFile ()
 Log file destructor.
bool logPrintf (const char *entryFmt,...)
 Write message to log.
bool logvPrintf (const char *entryFmt, va_list arg)
 Write message to log.

Detailed Description

Log file class.

Raw Log file class provides facilities to store messages to a text file without formatting.


Constructor & Destructor Documentation

RawLogFile::RawLogFile ( const char *  fileName  ) 

Log file constructor.

Initializes the log file object.

Parameters:
fileName Specifies the log file name
RawLogFile::~RawLogFile (  )  [virtual]

Log file destructor.

Destroys the log file object.


Member Function Documentation

bool RawLogFile::logPrintf ( const char *  entryFmt,
  ... 
)

Write message to log.

Writes a text message to the log file. The resulting message will be saved as a separate line in the text file

Linebreaks are Windows style, in order for log files to be easily readable on all systems.

Parameters:
entryFmt Contains message text. May contain printf-style formatting fields.
... Lists arguments for text format fields, printf-style.
Returns:
Returns true if writing the log entry was successful, false otherwise.
bool RawLogFile::logvPrintf ( const char *  entryFmt,
va_list  arg 
)

Write message to log.

Writes a text message to the log file.

Linebreaks are Windows style, in order for log files to be easily readable on all systems.

Parameters:
entryFmt Contains message text. May contain vsprintf-style formatting fields.
arg Lists arguments for text format fields, vsprintf-style.
Returns:
Returns true if writing the log entry was successful, false otherwise.

The documentation for this class was generated from the following files:
Generated on Wed Oct 20 11:13:44 2010 for libspatha by  doxygen 1.6.3