Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itk::LoggerThreadWrapper< SimpleLoggerType > Class Template Reference
[OS System Objects]

Class LoggerThreadWrapper is meant for providing logging service as a separate thread. More...

#include <itkLoggerThreadWrapper.h>

Collaboration diagram for itk::LoggerThreadWrapper< SimpleLoggerType >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef LoggerThreadWrapper Self
typedef SimpleLoggerType Superclass
typedef SmartPointer< SelfPointer
typedef SmartPointer< const
Self
ConstPointer
typedef SimpleLoggerType::OutputType OutputType
typedef SimpleLoggerType::PriorityLevelType PriorityLevelType
enum  OperationType {
  SET_PRIORITY_LEVEL, SET_LEVEL_FOR_FLUSHING, ADD_LOG_OUTPUT, WRITE,
  FLUSH
}

Public Member Functions

virtual const char * GetNameOfClass () const
virtual void SetPriorityLevel (PriorityLevelType level)
virtual PriorityLevelType GetPriorityLevel () const
virtual void SetLevelForFlushing (PriorityLevelType level)
virtual PriorityLevelType GetLevelForFlushing () const
virtual void AddLogOutput (OutputType *output)
virtual void Write (PriorityLevelType level, std::string const &content)
virtual void Flush ()

Static Public Member Functions

Pointer New ()

Protected Member Functions

 LoggerThreadWrapper ()
virtual ~LoggerThreadWrapper ()
virtual void PrintSelf (std::ostream &os, Indent indent) const

Static Protected Member Functions

ITK_THREAD_RETURN_TYPE ThreadFunction (void *)

Detailed Description

template<class SimpleLoggerType>
class itk::LoggerThreadWrapper< SimpleLoggerType >

Class LoggerThreadWrapper is meant for providing logging service as a separate thread.

Author:
Hee-Su Kim, Compute Science Dept. Kyungpook National University, ISIS Center, Georgetown University.

Definition at line 51 of file itkLoggerThreadWrapper.h.


Member Typedef Documentation

template<class SimpleLoggerType>
typedef SmartPointer<const Self> itk::LoggerThreadWrapper< SimpleLoggerType >::ConstPointer
 

Definition at line 59 of file itkLoggerThreadWrapper.h.

template<class SimpleLoggerType>
typedef SimpleLoggerType::OutputType itk::LoggerThreadWrapper< SimpleLoggerType >::OutputType
 

Definition at line 67 of file itkLoggerThreadWrapper.h.

template<class SimpleLoggerType>
typedef SmartPointer<Self> itk::LoggerThreadWrapper< SimpleLoggerType >::Pointer
 

Definition at line 58 of file itkLoggerThreadWrapper.h.

template<class SimpleLoggerType>
typedef SimpleLoggerType::PriorityLevelType itk::LoggerThreadWrapper< SimpleLoggerType >::PriorityLevelType
 

Definition at line 68 of file itkLoggerThreadWrapper.h.

template<class SimpleLoggerType>
typedef LoggerThreadWrapper itk::LoggerThreadWrapper< SimpleLoggerType >::Self
 

Definition at line 56 of file itkLoggerThreadWrapper.h.

template<class SimpleLoggerType>
typedef SimpleLoggerType itk::LoggerThreadWrapper< SimpleLoggerType >::Superclass
 

Definition at line 57 of file itkLoggerThreadWrapper.h.


Member Enumeration Documentation

template<class SimpleLoggerType>
enum itk::LoggerThreadWrapper::OperationType
 

Definition of types of operations for LoggerThreadWrapper.

Enumeration values:
SET_PRIORITY_LEVEL 
SET_LEVEL_FOR_FLUSHING 
ADD_LOG_OUTPUT 
WRITE 
FLUSH 

Definition at line 71 of file itkLoggerThreadWrapper.h.


Constructor & Destructor Documentation

template<class SimpleLoggerType>
itk::LoggerThreadWrapper< SimpleLoggerType >::LoggerThreadWrapper  )  [protected]
 

Constructor

template<class SimpleLoggerType>
virtual itk::LoggerThreadWrapper< SimpleLoggerType >::~LoggerThreadWrapper  )  [protected, virtual]
 

Destructor


Member Function Documentation

template<class SimpleLoggerType>
virtual void itk::LoggerThreadWrapper< SimpleLoggerType >::AddLogOutput OutputType output  )  [virtual]
 

Registers another output stream with the multiple output.

template<class SimpleLoggerType>
virtual void itk::LoggerThreadWrapper< SimpleLoggerType >::Flush  )  [virtual]
 

template<class SimpleLoggerType>
virtual PriorityLevelType itk::LoggerThreadWrapper< SimpleLoggerType >::GetLevelForFlushing  )  const [virtual]
 

template<class SimpleLoggerType>
virtual const char* itk::LoggerThreadWrapper< SimpleLoggerType >::GetNameOfClass  )  const [virtual]
 

Run-time type information (and related methods).

template<class SimpleLoggerType>
virtual PriorityLevelType itk::LoggerThreadWrapper< SimpleLoggerType >::GetPriorityLevel  )  const [virtual]
 

Get the priority level for the current logger. Only messages that have priorities equal or greater than the one set here will be posted to the current outputs

template<class SimpleLoggerType>
Pointer itk::LoggerThreadWrapper< SimpleLoggerType >::New  )  [static]
 

New macro for creation of through a Smart Pointer

template<class SimpleLoggerType>
virtual void itk::LoggerThreadWrapper< SimpleLoggerType >::PrintSelf std::ostream &  os,
Indent  indent
const [protected, virtual]
 

Print contents of a LoggerThreadWrapper

template<class SimpleLoggerType>
virtual void itk::LoggerThreadWrapper< SimpleLoggerType >::SetLevelForFlushing PriorityLevelType  level  )  [virtual]
 

template<class SimpleLoggerType>
virtual void itk::LoggerThreadWrapper< SimpleLoggerType >::SetPriorityLevel PriorityLevelType  level  )  [virtual]
 

Set the priority level for the current logger. Only messages that have priorities equal or greater than the one set here will be posted to the current outputs

template<class SimpleLoggerType>
ITK_THREAD_RETURN_TYPE itk::LoggerThreadWrapper< SimpleLoggerType >::ThreadFunction void *   )  [static, protected]
 

template<class SimpleLoggerType>
virtual void itk::LoggerThreadWrapper< SimpleLoggerType >::Write PriorityLevelType  level,
std::string const &  content
[virtual]
 


The documentation for this class was generated from the following file:
Generated at Thu May 25 01:41:27 2006 for ITK by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2000