Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

IDEA::Trace Class Reference
[Utilities]

Output management class. More...

#include <Trace.hh>

Inheritance diagram for IDEA::Trace:

IDEA::Singleton< Trace > List of all members.

Public Types

enum  OutputLevel { LOW = 0, MEDIUM, HIGH, DEBUG }
 Level of output. More...


Public Methods

 ~Trace ()
 Destructor.

void setStream (std::ostream *stream)
 Sets the ouput stream to stream of the invoking class.

std::ostream & getStream ()
 Returns the output stream of the invoking class.

RecursiveThreadMutexgetMutex ()
 Returns the mutex of the invoking class.

bool isOutputLevelLow () const
 Returns true if the outputlevel is LOW otherwise returns false.

bool isOutputLevelMedium () const
 Returns true if the outputlevel is MEDIUM otherwise returns false.

bool isOutputLevelHigh () const
 Returns true if the outputlevel is HIGH otherwise returns false.

bool isOutputLevelDebug () const
 Returns true if the outputlevel is DEBUG otherwise returns false.

void setOutputLevel (OutputLevel level)
 Sets the outputlevel of the invoking class to level.


Static Public Methods

Trace * instance ()

Static Protected Methods

Trace *& getInstance ()
 The instance.

void release ()

Private Methods

 Trace ()
 Constructor, default streams output to std::cout and sets level to LOW.


Private Attributes

std::ostream * m_Stream
OutputLevel m_OutputLevel
RecursiveThreadMutex m_Mutex

Friends

class Singleton< Trace >

Detailed Description

Output management class.


Member Enumeration Documentation

enum IDEA::Trace::OutputLevel
 

Level of output.

Enumeration values:
LOW 
MEDIUM 
HIGH 
DEBUG 


Constructor & Destructor Documentation

IDEA::Trace::~Trace   [inline]
 

Destructor.

IDEA::Trace::Trace   [inline, private]
 

Constructor, default streams output to std::cout and sets level to LOW.


Member Function Documentation

Trace*& IDEA::Singleton< Trace >::getInstance   [inline, static, protected, inherited]
 

The instance.

This pattern is used to prevent "static initialization order fiasco" (Google this for better understanding)

RecursiveThreadMutex& IDEA::Trace::getMutex   [inline]
 

Returns the mutex of the invoking class.

std::ostream& IDEA::Trace::getStream   [inline]
 

Returns the output stream of the invoking class.

Trace* IDEA::Singleton< Trace >::instance   [inline, static, inherited]
 

bool IDEA::Trace::isOutputLevelDebug   const [inline]
 

Returns true if the outputlevel is DEBUG otherwise returns false.

bool IDEA::Trace::isOutputLevelHigh   const [inline]
 

Returns true if the outputlevel is HIGH otherwise returns false.

bool IDEA::Trace::isOutputLevelLow   const [inline]
 

Returns true if the outputlevel is LOW otherwise returns false.

bool IDEA::Trace::isOutputLevelMedium   const [inline]
 

Returns true if the outputlevel is MEDIUM otherwise returns false.

void IDEA::Singleton< Trace >::release   [inline, static, protected, inherited]
 

void IDEA::Trace::setOutputLevel OutputLevel    level [inline]
 

Sets the outputlevel of the invoking class to level.

void IDEA::Trace::setStream std::ostream *    stream [inline]
 

Sets the ouput stream to stream of the invoking class.


Friends And Related Function Documentation

friend class Singleton< Trace > [friend]
 


Member Data Documentation

RecursiveThreadMutex IDEA::Trace::m_Mutex [private]
 

OutputLevel IDEA::Trace::m_OutputLevel [private]
 

std::ostream* IDEA::Trace::m_Stream [private]
 


Contact information
© IDEA
Generated on Fri Feb 3 17:09:49 2006 for IDEA.