#include <THMSSLogFile.h>
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. |
gridripper::util::THMSSLogFile::THMSSLogFile | ( | string | f, | |
bool | append | |||
) | throw (IOException&) |
Constructs a log file writer.
f | the filename | |
append | append mode |
string gridripper::util::THMSSLogFile::getLastLine | ( | ) | const [inline] |
Gets the last line written.
void gridripper::util::THMSSLogFile::write | ( | string | s | ) | throw (IOException&) |
Writes a line into the logfile.
s | the line |
void gridripper::util::THMSSLogFile::write | ( | string | ts, | |
string | s | |||
) | throw (IOException&) |
Writes a line into the logfile.
ts | string representation of the time | |
s | additional information to append |