GLC_Log : Base class for GLC_lib log. More...
#include <glc_log.h>
Public Member Functions | |
Get Functions | |
| QString | fullFileName () const |
| Return this log full file name. | |
Protected Member Functions | |
Set Functions | |
| void | add (const QString &line) |
| Add the given string to this log. | |
| void | addBlankLine () |
| Add blank line to this log. | |
| void | addSeparator () |
| Add a separator in the log. | |
| void | addCurrentTime () |
| Add current time in log. | |
Protected Attributes | |
| QTemporaryFile * | m_pFile |
| This log file. | |
| QTextStream | m_TextStream |
| This log textStream. | |
Constructor | |
|
| |
| GLC_Log (const QString &baseLogFileName) | |
| Construct a log of the given base fileName. | |
| virtual | ~GLC_Log () |
| Destructor. | |
GLC_Log : Base class for GLC_lib log.
Definition at line 37 of file glc_log.h.
| GLC_Log::GLC_Log | ( | const QString & | baseLogFileName | ) | [protected] |
Construct a log of the given base fileName.
Definition at line 29 of file glc_log.cpp.
References m_pFile, and m_TextStream.
| GLC_Log::~GLC_Log | ( | ) | [virtual] |
| void GLC_Log::add | ( | const QString & | line | ) | [protected] |
Add the given string to this log.
Definition at line 51 of file glc_log.cpp.
References m_pFile, and m_TextStream.
Referenced by GLC_ErrorLog::addError(), and GLC_TraceLog::addTrace().
| void GLC_Log::addBlankLine | ( | ) | [inline, protected] |
| void GLC_Log::addCurrentTime | ( | ) | [protected] |
Add current time in log.
Definition at line 68 of file glc_log.cpp.
References m_pFile, and m_TextStream.
Referenced by GLC_ErrorLog::addError(), and GLC_TraceLog::addTrace().
| void GLC_Log::addSeparator | ( | ) | [protected] |
Add a separator in the log.
Definition at line 59 of file glc_log.cpp.
References m_pFile, and m_TextStream.
Referenced by GLC_ErrorLog::addError(), and GLC_TraceLog::addTrace().
| QString GLC_Log::fullFileName | ( | ) | const |
QTemporaryFile* GLC_Log::m_pFile [protected] |
This log file.
Definition at line 88 of file glc_log.h.
Referenced by add(), addCurrentTime(), addSeparator(), fullFileName(), GLC_Log(), and ~GLC_Log().
QTextStream GLC_Log::m_TextStream [protected] |
This log textStream.
Definition at line 91 of file glc_log.h.
Referenced by add(), addCurrentTime(), addSeparator(), GLC_Log(), GLC_TraceLog::writeHeader(), GLC_ErrorLog::writeHeader(), and ~GLC_Log().