GLC_lib  2.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Protected Attributes | List of all members
GLC_Log Class Reference

GLC_Log : Base class for GLC_lib log. More...

#include <glc_log.h>

+ Inheritance diagram for GLC_Log:

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.
 

Detailed Description

GLC_Log : Base class for GLC_lib log.

Definition at line 37 of file glc_log.h.

Constructor & Destructor Documentation

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

Destructor.

Definition at line 39 of file glc_log.cpp.

References m_pFile, and m_TextStream.

Member Function Documentation

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 ( )
inlineprotected

Add blank line to this log.

Definition at line 70 of file glc_log.h.

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

Return this log full file name.

Definition at line 45 of file glc_log.cpp.

References m_pFile.

Member Data Documentation

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_ErrorLog::writeHeader(), GLC_TraceLog::writeHeader(), and ~GLC_Log().


The documentation for this class was generated from the following files:

©2005-2013 Laurent Ribon