Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

exotkTrace_Root Class Reference

Basis class for all the trace handlers. More...

#include <exotkTrace_Root.hxx>

Inheritance diagram for exotkTrace_Root:

Inheritance graph
[legend]
Collaboration diagram for exotkTrace_Root:

Collaboration graph
[legend]
List of all members.

Public Methods

void * operator new (size_t, void *anAddress)
 OCC new. More...

void * operator new (size_t size)
 OCC new. More...

void operator delete (void *anAddress)
 OCC delete. More...

virtual Standard_EXPORT ~exotkTrace_Root ()
 Destructor. More...

virtual Standard_EXPORT exotkTrace_Level Level ()
 Return the level. More...

virtual Standard_EXPORT exotkTrace_Level SetLevel (const enum exotkTrace_Level aLevel)
 Set the level. More...

virtual Standard_EXPORT Standard_Boolean IsValid ()=0
 Check validity. More...

virtual Standard_EXPORT void Trace (const enum exotkTrace_Level aLevel, const Standard_CString aString)
 Send the string to be printed. More...

virtual void Error (const Standard_CString anError)
 send error message. More...

virtual void Warning (const Standard_CString aWarning)
 Send warning message. More...

virtual void Info (const Standard_CString anInfo)
 Send info message. More...

virtual void Verbose (const Standard_CString aVerbose)
 Send verbose message. More...

virtual void Quiet (const Standard_CString aQuiet)
 Send quiet message. More...

virtual void Debug (const Standard_CString aDebug)
 Send debug message. More...


Protected Methods

virtual Standard_EXPORT void Print (const enum exotkTrace_Level aLevel, const Standard_CString aString)=0
 Print the message. More...

virtual Standard_EXPORT void TraceQueue ()
 print all the messages in the queue and clear it. More...

Standard_EXPORT exotkTrace_Root ()
 Constructor. More...


Protected Attributes

exotkTrace_Level myLevel
exotkTrace_QueueOfLogMessage myQueue

Friends

class exotkTrace_MultipleRoot

Detailed Description

Basis class for all the trace handlers.

Author:
Stephane Routelous

Definition at line 56 of file exotkTrace_Root.hxx.


Constructor & Destructor Documentation

exotkTrace_Root::~exotkTrace_Root   [virtual]
 

Destructor.

Definition at line 76 of file exotkTrace_Root.cxx.

exotkTrace_Root::exotkTrace_Root   [protected]
 

Constructor.

Definition at line 63 of file exotkTrace_Root.cxx.

References exotkTrace_Verbose, and myLevel.


Member Function Documentation

exotkTrace_Root::Debug const Standard_CString    aDebug [inline, virtual]
 

Send debug message.

Parameters:
const  Standard_CString aDebug) { Trace(exotkTrace_Debug

Definition at line 171 of file exotkTrace_Root.hxx.

References exotkTrace_Debug, and Trace().

exotkTrace_Root::Error const Standard_CString    anError [inline, virtual]
 

send error message.

Parameters:
const  Standard_CString anError

Definition at line 136 of file exotkTrace_Root.hxx.

References exotkTrace_Error, and Trace().

exotkTrace_Root::Info const Standard_CString    anInfo [inline, virtual]
 

Send info message.

Parameters:
const  Standard_CString anInfo

Definition at line 150 of file exotkTrace_Root.hxx.

References exotkTrace_Info, and Trace().

exotkTrace_Root::IsValid   [pure virtual]
 

Check validity.

Returns:
Standard_Boolean

Reimplemented in exotkTrace_File, exotkTrace_MultipleRoot, and exotkTrace_OStream.

Referenced by Trace(), and TraceQueue().

exotkTrace_Root::Level   [virtual]
 

Return the level.

Returns:
exotkTrace_Level

Definition at line 105 of file exotkTrace_Root.cxx.

References myLevel.

void exotkTrace_Root::operator delete void *    anAddress [inline]
 

OCC delete.

Returns:
inline void
Parameters:
void  *anAddress

Reimplemented in exotkTrace_File, exotkTrace_MultipleRoot, and exotkTrace_OStream.

Definition at line 90 of file exotkTrace_Root.hxx.

void * exotkTrace_Root::operator new size_t    size [inline]
 

OCC new.

Returns:
inline void*
Parameters:
size_t  size

Reimplemented in exotkTrace_File, exotkTrace_MultipleRoot, and exotkTrace_OStream.

Definition at line 79 of file exotkTrace_Root.hxx.

void * exotkTrace_Root::operator new size_t   ,
void *    anAddress
[inline]
 

OCC new.

Returns:
inline void*
Parameters:
size_t 
void  * anAddress

Reimplemented in exotkTrace_File, exotkTrace_MultipleRoot, and exotkTrace_OStream.

Definition at line 68 of file exotkTrace_Root.hxx.

exotkTrace_Root::Print const enum exotkTrace_Level    aLevel,
const Standard_CString    aString
[protected, pure virtual]
 

Print the message.

Parameters:
const  enum exotkTrace_Level aLevel
const  Standard_CString aString

Reimplemented in exotkTrace_File, exotkTrace_MultipleRoot, and exotkTrace_OStream.

Referenced by Trace(), and TraceQueue().

exotkTrace_Root::Quiet const Standard_CString    aQuiet [inline, virtual]
 

Send quiet message.

Parameters:
const  Standard_CString aQuiet

Definition at line 164 of file exotkTrace_Root.hxx.

References exotkTrace_Quiet, and Trace().

exotkTrace_Root::SetLevel const enum exotkTrace_Level    aLevel [virtual]
 

Set the level.

Returns:
exotkTrace_Level : the old one
Parameters:
aLevel  const enum exotkTrace_Level

Reimplemented in exotkTrace_MultipleRoot.

Definition at line 90 of file exotkTrace_Root.cxx.

References myLevel.

Referenced by exotkTrace_MultipleRoot::SetLevel().

exotkTrace_Root::Trace const enum exotkTrace_Level    aLevel,
const Standard_CString    aString
[virtual]
 

Send the string to be printed.

Parameters:
aLevel  const enum exotkTrace_Level
aString  const Standard_CString

Reimplemented in exotkTrace_MultipleRoot.

Definition at line 119 of file exotkTrace_Root.cxx.

References IsValid(), myLevel, myQueue, Print(), exotkTrace_QueueOfLogMessage::Push(), exotkTrace_LogMessage::SetValues(), and TraceQueue().

Referenced by Debug(), Error(), Info(), Quiet(), Verbose(), and Warning().

exotkTrace_Root::TraceQueue   [protected, virtual]
 

print all the messages in the queue and clear it.

Definition at line 145 of file exotkTrace_Root.cxx.

References exotkTrace_Unknown, exotkTrace_QueueOfLogMessage::Front(), exotkTrace_QueueOfLogMessage::IsEmpty(), IsValid(), myLevel, myQueue, exotkTrace_QueueOfLogMessage::Pop(), Print(), and exotkTrace_LogMessage::Values().

Referenced by Trace().

exotkTrace_Root::Verbose const Standard_CString    aVerbose [inline, virtual]
 

Send verbose message.

Parameters:
const  Standard_CString aVerbose

Definition at line 157 of file exotkTrace_Root.hxx.

References exotkTrace_Verbose, and Trace().

exotkTrace_Root::Warning const Standard_CString    aWarning [inline, virtual]
 

Send warning message.

Parameters:
const  Standard_CString aWarning

Definition at line 143 of file exotkTrace_Root.hxx.

References exotkTrace_Warning, and Trace().


Friends And Related Function Documentation

friend class exotkTrace_MultipleRoot [friend]
 

Definition at line 58 of file exotkTrace_Root.hxx.


Member Data Documentation

exotkTrace_Level exotkTrace_Root::myLevel [protected]
 

the trace filter level

Definition at line 195 of file exotkTrace_Root.hxx.

Referenced by exotkTrace_Root(), Level(), SetLevel(), Trace(), and TraceQueue().

exotkTrace_QueueOfLogMessage exotkTrace_Root::myQueue [protected]
 

the queue of messages

Definition at line 197 of file exotkTrace_Root.hxx.

Referenced by Trace(), and TraceQueue().


The documentation for this class was generated from the following files:
Generated on Wed Jan 23 12:18:39 2002 for exotk by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001