20 bool open(
const std::string &fileName);
26 void print(
const char *format, ...);
35 std::string m_fileName;
bool open(const std::string &fileName)
Opens the specified file for writing.
Definition: logfile.cpp:18
Base class which allows an error message to be set.
Definition: errorbase.h:49
Helper class to write to a log file.
Definition: logfile.h:13
void close()
Finalizes and closes the log file.
Definition: logfile.cpp:47
std::string getFileName() const
Returns the filename from the 'open' call.
Definition: logfile.h:23
void print(const char *format,...)
Writes the specified parameters (similar to printf) to the logfile, automatically appending a newline...
Definition: logfile.cpp:56
void printNoNewLine(const char *format,...)
Writes the specified parameters (similar to printf) to the logfile.
Definition: logfile.cpp:70