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

itk::ThreadLogger Class Reference
[OS System Objects]

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

#include <itkThreadLogger.h>

Inheritance diagram for itk::ThreadLogger:

Inheritance graph
[legend]
Collaboration diagram for itk::ThreadLogger:

Collaboration graph
[legend]
List of all members.

Public Types

typedef ThreadLogger Self
typedef Logger Superclass
typedef SmartPointer< SelfPointer
typedef SmartPointer< const
Self
ConstPointer
typedef Logger::OutputType OutputType
typedef Logger::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

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

Static Protected Member Functions

ITK_THREAD_RETURN_TYPE ThreadFunction (void *)

Detailed Description

Class ThreadLogger 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 53 of file itkThreadLogger.h.


Member Typedef Documentation

typedef SmartPointer<const Self> itk::ThreadLogger::ConstPointer
 

Reimplemented from itk::Logger.

Definition at line 61 of file itkThreadLogger.h.

typedef Logger::OutputType itk::ThreadLogger::OutputType
 

Reimplemented from itk::LoggerBase.

Definition at line 69 of file itkThreadLogger.h.

typedef SmartPointer<Self> itk::ThreadLogger::Pointer
 

Reimplemented from itk::Logger.

Definition at line 60 of file itkThreadLogger.h.

typedef Logger::PriorityLevelType itk::ThreadLogger::PriorityLevelType
 

Definition of types of messages. These codes will be used to regulate the level of detail of messages reported to the final outputs

Reimplemented from itk::LoggerBase.

Definition at line 71 of file itkThreadLogger.h.

typedef ThreadLogger itk::ThreadLogger::Self
 

Smart pointer typedef support.

Reimplemented from itk::Logger.

Definition at line 58 of file itkThreadLogger.h.

typedef Logger itk::ThreadLogger::Superclass
 

Reimplemented from itk::Logger.

Definition at line 59 of file itkThreadLogger.h.


Member Enumeration Documentation

enum itk::ThreadLogger::OperationType
 

Definition of types of operations for ThreadLogger.

Enumeration values:
SET_PRIORITY_LEVEL 
SET_LEVEL_FOR_FLUSHING 
ADD_LOG_OUTPUT 
WRITE 
FLUSH 

Definition at line 74 of file itkThreadLogger.h.


Constructor & Destructor Documentation

itk::ThreadLogger::ThreadLogger  )  [protected]
 

Constructor

virtual itk::ThreadLogger::~ThreadLogger  )  [protected, virtual]
 

Destructor


Member Function Documentation

virtual void itk::ThreadLogger::AddLogOutput OutputType output  )  [virtual]
 

Registers another output stream with the multiple output.

Reimplemented from itk::LoggerBase.

virtual void itk::ThreadLogger::Flush  )  [virtual]
 

Reimplemented from itk::LoggerBase.

virtual PriorityLevelType itk::ThreadLogger::GetLevelForFlushing  )  const [virtual]
 

Reimplemented from itk::LoggerBase.

virtual const char* itk::ThreadLogger::GetNameOfClass  )  const [virtual]
 

Run-time type information (and related methods).

Reimplemented from itk::Logger.

virtual PriorityLevelType itk::ThreadLogger::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

Reimplemented from itk::LoggerBase.

Pointer itk::ThreadLogger::New  )  [static]
 

New macro for creation of through a Smart Pointer

Reimplemented from itk::Logger.

virtual void itk::ThreadLogger::PrintSelf std::ostream &  os,
Indent  indent
const [protected, virtual]
 

Print contents of a ThreadLogger

Reimplemented from itk::LoggerBase.

virtual void itk::ThreadLogger::SetLevelForFlushing PriorityLevelType  level  )  [virtual]
 

Reimplemented from itk::LoggerBase.

virtual void itk::ThreadLogger::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

Reimplemented from itk::LoggerBase.

ITK_THREAD_RETURN_TYPE itk::ThreadLogger::ThreadFunction void *   )  [static, protected]
 

virtual void itk::ThreadLogger::Write PriorityLevelType  level,
std::string const &  content
[virtual]
 

Reimplemented from itk::LoggerBase.


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