GLC_ErrorLog : handl GLC_lib error log. More...
#include <glc_errorlog.h>
Public Member Functions | |
Private services Functions | |
void | writeHeader () |
Write error Log header. | |
Static Public Member Functions | |
Get Functions | |
static GLC_ErrorLog * | instance () |
Return the unique instance of error log file. | |
static bool | isEmpty () |
Return true if the log is empty. | |
Set Functions | |
static void | addError (const QStringList &errorDescription) |
Add error into the log. | |
static void | close () |
Close the log file. | |
Static Private Attributes | |
static GLC_ErrorLog * | m_pErrorLog = NULL |
The unique error log instance. | |
static QMutex | m_Mutex |
The mutex of this unique log. | |
Constructor | |
| |
GLC_ErrorLog (const QString &fullLogFileName) | |
Private constructor. | |
virtual | ~GLC_ErrorLog () |
Destructor. |
GLC_ErrorLog : handl GLC_lib error log.
Definition at line 36 of file glc_errorlog.h.
GLC_ErrorLog::GLC_ErrorLog | ( | const QString & | fullLogFileName | ) | [private] |
GLC_ErrorLog::~GLC_ErrorLog | ( | ) | [virtual] |
Destructor.
Definition at line 39 of file glc_errorlog.cpp.
void GLC_ErrorLog::addError | ( | const QStringList & | errorDescription | ) | [static] |
Add error into the log.
Definition at line 69 of file glc_errorlog.cpp.
References GLC_Log::add(), GLC_Log::addCurrentTime(), GLC_Log::addSeparator(), instance(), and m_Mutex.
Referenced by GLC_ColladaToWorld::addPolylistToCurrentMesh(), GLC_3dxmlToWorld::checkForXmlError(), GLC_ColladaToWorld::createMesh(), GLC_ColladaToWorld::createOccurenceFromNode(), GLC_3dxmlToWorld::createReferenceRep(), GLC_3dxmlToWorld::createUnfoldedTree(), GLC_ObjToWorld::CreateWorldFromObj(), GLC_ObjToWorld::extract3dVect(), GLC_ObjToWorld::extractFaceIndex(), GLC_ObjMtlLoader::extractTextureFileName(), GLC_Exception::GLC_Exception(), GLC_ColladaToWorld::linkTexturesToMaterials(), GLC_3DRep::load(), GLC_3dxmlToWorld::loadExternalRef3D(), GLC_3dxmlToWorld::loadFace(), GLC_3dsToWorld::loadMaterial(), GLC_3dxmlToWorld::loadPolyline(), GLC_3dxmlToWorld::loadProductStructure(), GLC_ColladaToWorld::loadShininess(), GLC_3dxmlToWorld::loadTexture(), GLC_3dxmlToWorld::loadVertexBuffer(), GLC_3dxmlToWorld::setStreamReaderToFile(), GLC_3DRep::unload(), and GLC_StructOccurence::~GLC_StructOccurence().
void GLC_ErrorLog::close | ( | ) | [static] |
Close the log file.
Definition at line 80 of file glc_errorlog.cpp.
References m_Mutex, and m_pErrorLog.
GLC_ErrorLog * GLC_ErrorLog::instance | ( | ) | [static] |
Return the unique instance of error log file.
Definition at line 44 of file glc_errorlog.cpp.
References GLC_ErrorLog(), m_pErrorLog, and writeHeader().
Referenced by addError().
bool GLC_ErrorLog::isEmpty | ( | void | ) | [static] |
Return true if the log is empty.
Definition at line 64 of file glc_errorlog.cpp.
References m_pErrorLog.
void GLC_ErrorLog::writeHeader | ( | ) |
Write error Log header.
Definition at line 87 of file glc_errorlog.cpp.
References GLC_Log::m_TextStream.
Referenced by instance().
QMutex GLC_ErrorLog::m_Mutex [static, private] |
The mutex of this unique log.
Definition at line 93 of file glc_errorlog.h.
Referenced by addError(), and close().
GLC_ErrorLog * GLC_ErrorLog::m_pErrorLog = NULL [static, private] |
The unique error log instance.
Definition at line 90 of file glc_errorlog.h.
Referenced by close(), instance(), and isEmpty().