![]() |
Blamite Game Engine - blam!
00346.12.11.21.0529.blamite
The core library for the Blamite Game Engine.
|
Class representing a report file. More...
#include <logger.h>
Public Member Functions | |
BlamReportFile (BlamLogFileFormat file_format, std::string base_dir, BlamReport *_report) | |
Creates a new BlamReportFile. More... | |
BlamReportFile (BlamLogFileFormat file_format, std::string base_dir, BlamReport *_report, bool is_timestamped_file) | |
Creates a new BlamReportFile. More... | |
bool | PrepareFile () |
Prepares the log file for writing. More... | |
bool | AppendMessage (BlamLogMessage message) |
Appends a message to the log file. More... | |
Class representing a report file.
When generating reports and log files, each file on disk has one of these classes associated with it.
BlamReportFile::BlamReportFile | ( | BlamLogFileFormat | file_format, |
std::string | base_dir, | ||
BlamReport * | _report | ||
) |
Creates a new BlamReportFile.
file_format | - The file format of this log file. |
base_dir | - The base directory of this log file. |
_report | - Pointer to the report that this log file belongs to. |
BlamReportFile::BlamReportFile | ( | BlamLogFileFormat | file_format, |
std::string | base_dir, | ||
BlamReport * | _report, | ||
bool | is_timestamped_file | ||
) |
Creates a new BlamReportFile.
file_format | - The file format of this log file. |
base_dir | - The base directory of this log file. |
_report | - Pointer to the report that this log file belongs to. |
is_timestamped_file | - Whether or not this report file should be created as a timestamped/multi-log file. |
bool BlamReportFile::AppendMessage | ( | BlamLogMessage | message | ) |
Appends a message to the log file.
message | - The message to add to the file. |
true
if the message was written successfully, otherwise returns false
. bool BlamReportFile::PrepareFile | ( | ) |
Prepares the log file for writing.
true
if the file was prepared successfully, otherwise returns false
.