23 bool isOpen()
const {
return m_pFile != 0; }
29 void print(
const char *format, ...);
42 std::string m_fileName;
44 static std::vector<LogFile *> s_allLogFiles;
bool_t open(const std::string &fileName)
Opens the specified file for writing.
Definition: logfile.cpp:32
Type to return true/false with error description.
Definition: booltype.h:25
Helper class to write to a log file.
Definition: logfile.h:14
void close()
Finalizes and closes the log file.
Definition: logfile.cpp:54
static void writeToAllLogFiles(const std::string &str)
Method to write something to all currently open log files, useful when program aborts and a message s...
Definition: logfile.cpp:91
std::string getFileName() const
Returns the filename from the 'open' call.
Definition: logfile.h:26
void print(const char *format,...)
Writes the specified parameters (similar to printf) to the logfile, automatically appending a newline...
Definition: logfile.cpp:63
void printNoNewLine(const char *format,...)
Writes the specified parameters (similar to printf) to the logfile.
Definition: logfile.cpp:77