#include <HxImgSystem.h>
Public Methods | |
~HxImgSystem () | |
HxLogMessage * | allocated (size_t) |
HxLogMessage * | deallocated (size_t) |
size_t | memoryUsage () const |
void | pushMessage (HxLogMessage *) |
Add a pointer to the given message. More... | |
void | setLogging (bool) |
bool | isLogging () const |
void | verboseLogging (bool) |
void | clearLog () |
STD_OSTREAM & | printLog (STD_OSTREAM &) const |
Static Public Methods | |
HxImgSystem & | instance () |
|
Add a pointer to the given message. Note that the message is probably NOT complete yet, more information may be added later on, e.g. the end time.
00080 { 00081 if (!_logOn) 00082 { 00083 if (_lastMsg) 00084 delete _lastMsg; 00085 _lastMsg = msg; 00086 return; 00087 } 00088 _logMsgList.push_back(msg); 00089 if (_logVerbose && _lastMsg) 00090 { 00091 _lastMsg->put(HxEnvironment::instance()->outputStream()); 00092 HxEnvironment::instance()->outputStream() << STD_ENDL; 00093 HxEnvironment::instance()->flush(); 00094 } 00095 _lastMsg = msg; 00096 } |