Horus Doc || C++ Reference || Class Overview   Pixels   Images   Detector   Geometry   Registry || Doxygen's quick Index  

HxImgSystem Class Reference

Singleton class providing a logging system for image related operations such as pixel allocation and image functor calls. More...

#include <HxImgSystem.h>

List of all members.

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


Detailed Description

Singleton class providing a logging system for image related operations such as pixel allocation and image functor calls.


Member Function Documentation

void HxImgSystem::pushMessage HxLogMessage *    msg
 

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 }


The documentation for this class was generated from the following files:
Generated on Tue Feb 3 14:19:01 2004 for C++Reference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001