gridripper::util::THMSSLogFile Class Reference

Log file line formatter and reader. More...

#include <THMSSLogFile.h>

List of all members.

Public Member Functions

 THMSSLogFile (string f, bool append) throw (IOException&)
 Constructs a log file writer.
string getLastLine () const
 Gets the last line written.
void write (string s) throw (IOException&)
 Writes a line into the logfile.
void write (string ts, string s) throw (IOException&)
 Writes a line into the logfile.
void close () throw (IOException&)
 Closes the logfile.


Detailed Description

Log file line formatter and reader.

Version:
0.5, 01/14/2009
Since:
0.3, 04/26/2005
Author:
Peter Csizmadia

Constructor & Destructor Documentation

gridripper::util::THMSSLogFile::THMSSLogFile ( string  f,
bool  append 
) throw (IOException&)

Constructs a log file writer.

Parameters:
f the filename
append append mode


Member Function Documentation

string gridripper::util::THMSSLogFile::getLastLine (  )  const [inline]

Gets the last line written.

Returns:
the last line

void gridripper::util::THMSSLogFile::write ( string  s  )  throw (IOException&)

Writes a line into the logfile.

Parameters:
s the line

void gridripper::util::THMSSLogFile::write ( string  ts,
string  s 
) throw (IOException&)

Writes a line into the logfile.

Parameters:
ts string representation of the time
s additional information to append


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

Generated on Wed Jun 17 18:47:00 2009 for GridRipper by  doxygen 1.5.6