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


Public Member Functions

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

Static Public Member Functions

static Pointer New ()

Protected Member Functions

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

Static Protected Member Functions

static 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 46 of file itkLoggerThreadWrapper.h.


Member Typedef Documentation

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

Definition at line 53 of file itkLoggerThreadWrapper.h.

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

Definition at line 59 of file itkLoggerThreadWrapper.h.

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

Definition at line 52 of file itkLoggerThreadWrapper.h.

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

Definition at line 62 of file itkLoggerThreadWrapper.h.

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

Definition at line 50 of file itkLoggerThreadWrapper.h.

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

Definition at line 51 of file itkLoggerThreadWrapper.h.


Member Enumeration Documentation

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

Definition of types of operations for LoggerThreadWrapper.

Enumerator:
SET_PRIORITY_LEVEL 
SET_LEVEL_FOR_FLUSHING 
ADD_LOG_OUTPUT 
WRITE 
FLUSH 

Definition at line 65 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 >
static 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 >
static 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 Tue Sep 15 10:21:48 2009 for ITK by doxygen 1.5.8 written by Dimitri van Heesch, © 1997-2000