#include <LogFile.h>
Inheritance diagram for TLogFile:
Public Member Functions | |
TLogFile (void) | |
Initializing constructor. | |
~TLogFile (void) | |
Destructor. | |
BOOL | Open (const TString &filename) |
This method open specified file as log file. | |
void | Close (void) |
This method close specified file. | |
BOOL | IsOpened (void) const |
void | Write (const char *str) const |
Write specified string into log file. | |
void | WriteNewLine (void) const |
Writes new line to output. | |
void | WriteTime (void) const |
Writes into file actual time in format "HH:MM:SS". | |
void | WriteDate (void) const |
Writes into file actual date in format "YYYY-MM-DD". | |
void | WriteDateTime (void) const |
Writes actual date and time into file. | |
void | WriteSTRING (const char *str) const |
Write string into file. | |
void | WriteSTRING (const TString &str) const |
Write string into file. | |
void | WriteINT (const int &value) const |
Write integer into file as text. | |
void | WriteUINT (const UINT &value) const |
Write unsigned integer into file as text. | |
void | WriteDWORD (const DWORD &value) const |
Write DWORD into file as text. | |
void | WriteFLOAT (const float &value) const |
Write FLOAT into file as text. | |
void | WriteDOUBLE (const double &value) const |
Write DOUBLE into file as text. | |
void | WriteBYTE (const BYTE &value) const |
Write BYTE into file as text. | |
void | WriteCHAR (const CHAR &value) const |
Write CHAR into file as text. | |
void | WriteWORD (const WORD &value) const |
Write WORD into file as text. | |
void | WriteSHORT (const SHORT &value) const |
Write SHORT into file as text. | |
void | WritePointer (const void *ptr) const |
Write pointer (address) to file as text. | |
void | WritePointerHex (const void *ptr) const |
Write pointer (address) to file as text in hexadecimal mode. |
Obviously this file is one per program and it logs important messages into it.
Final (output) file is in ASCII text mode. Writing to it is in translated mode (
means 0x13 0x10 on WIN etc.)
Definition at line 30 of file LogFile.h.
|
Initializing constructor.
|
|
Destructor. Automatically close file. Definition at line 46 of file LogFile.h. References Close(). Here is the call graph for this function: ![]() |
|
This method close specified file. If no file inside object is opened nothing is happen. Definition at line 42 of file LogFile.cpp. Referenced by ~TLogFile(). |
|
|
|
This method open specified file as log file. If item exists then it is overwrite. Otherwise new file is created. If some file inside object is already open no action is performed and TRUE is returned. On error FALSE is returned.
Definition at line 28 of file LogFile.cpp. References TString::GetString(), and TRUE. Here is the call graph for this function: ![]() |
|
Write specified string into log file.
Definition at line 55 of file LogFile.cpp. Referenced by TGlobalsSystem::Destroy(), and WinMain(). |
|
Write BYTE into file as text.
Definition at line 169 of file LogFile.cpp. |
|
Write CHAR into file as text.
Definition at line 178 of file LogFile.cpp. |
|
Writes into file actual date in format "YYYY-MM-DD".
Definition at line 80 of file LogFile.cpp. |
|
Writes actual date and time into file. Format is "YYYY-MM-DD HH:MM:SS". Definition at line 92 of file LogFile.cpp. |
|
Write DOUBLE into file as text.
Definition at line 160 of file LogFile.cpp. |
|
Write DWORD into file as text.
Definition at line 142 of file LogFile.cpp. |
|
Write FLOAT into file as text.
Definition at line 151 of file LogFile.cpp. |
|
Write integer into file as text.
Definition at line 124 of file LogFile.cpp. Referenced by TGlobalsSystem::Destroy(). |
|
Writes new line to output.
Definition at line 62 of file LogFile.cpp. Referenced by TGlobalsSystem::Destroy(). |
|
Write pointer (address) to file as text.
Definition at line 205 of file LogFile.cpp. |
|
Write pointer (address) to file as text in hexadecimal mode.
Definition at line 214 of file LogFile.cpp. |
|
Write SHORT into file as text.
Definition at line 196 of file LogFile.cpp. |
|
Write string into file.
Definition at line 115 of file LogFile.cpp. References TString::c_str(). Here is the call graph for this function: ![]() |
|
Write string into file.
Definition at line 106 of file LogFile.cpp. |
|
Writes into file actual time in format "HH:MM:SS".
Definition at line 69 of file LogFile.cpp. |
|
Write unsigned integer into file as text.
Definition at line 133 of file LogFile.cpp. |
|
Write WORD into file as text.
Definition at line 187 of file LogFile.cpp. |