Vis 2 Demo
1.0
Technical illustration type real-time rendering of geometry
|
This class provides logging service. More...
Public Member Functions | |
LogFile (char *file_name, bool ovewrite) | |
Constructor. More... | |
~LogFile () | |
Destructor. More... | |
bool | valid () const |
void | print (const char *text) |
Writing function. More... | |
Protected Attributes | |
std::FILE * | f |
pointer to the opened text file More... | |
Private Member Functions | |
LogFile (const LogFile &) | |
This class provides logging service.
A text file is opened in the directory of the EXE and all OPENGL calls are listed along with the date and time.
The file is closed in the destructor.
LogFile::LogFile | ( | char * | file_name, |
bool | ovewrite | ||
) |
Constructor.
[in] | file_name | is the name of the log file |
[in] | ovewrite | - if set true the content of the log file will be replaced on each run. If the file "file_name" could be found or created, and opened, a pointer to it is saved in the protected member f. |
Definition at line 4 of file LogFile.cpp.
LogFile::~LogFile | ( | ) |
Destructor.
Closes the log file to which the protected member f points.
Definition at line 17 of file LogFile.cpp.
|
private |
void LogFile::print | ( | const char * | text | ) |
Writing function.
[in] | text | is the message to be written. If the log file does not exist or failed to open, nothing is written. |
Definition at line 23 of file LogFile.cpp.
|
inline |
|
protected |