ITK  4.1.0
Insight Segmentation and Registration Toolkit
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Types | Private Attributes
itk::LoggerManager Class Reference

#include <itkLoggerManager.h>

+ Inheritance diagram for itk::LoggerManager:
+ Collaboration diagram for itk::LoggerManager:

List of all members.

Public Types

typedef SmartPointer< const SelfConstPointer
typedef Logger::Pointer LoggerPointer
typedef std::string NameType
typedef Logger::OutputType OutputType
typedef SmartPointer< SelfPointer
typedef Logger::PriorityLevelType PriorityLevelType
typedef LoggerManager Self
typedef Object Superclass
typedef ThreadLogger::Pointer ThreadLoggerPointer

Public Member Functions

void AddLogger (const NameType &name, Logger *logger)
void AddLogOutput (OutputType *output)
virtual ::itk::LightObject::Pointer CreateAnother (void) const
LoggerPointer CreateLogger (const NameType &name, PriorityLevelType level, PriorityLevelType levelForFlushing=LoggerBase::MUSTFLUSH)
ThreadLoggerPointer CreateThreadLogger (const NameType &name, PriorityLevelType level, PriorityLevelType levelForFlushing=LoggerBase::MUSTFLUSH)
void Flush ()
LoggerGetLogger (const NameType &name)
virtual const char * GetNameOfClass () const
void SetLevelForFlushing (PriorityLevelType level)
void SetPriorityLevel (PriorityLevelType level)
void Write (PriorityLevelType level, std::string const &content)

Static Public Member Functions

static Pointer New ()

Protected Member Functions

 LoggerManager ()
void PrintSelf (std::ostream &s, Indent indent) const
virtual ~LoggerManager ()

Private Types

typedef std::map< NameType,
LoggerPointer
ContainerType

Private Attributes

ContainerType m_LoggerSet

Detailed Description

Used for centrally managing loggers.

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

Definition at line 42 of file itkLoggerManager.h.


Member Typedef Documentation

Reimplemented from itk::Object.

Definition at line 49 of file itkLoggerManager.h.

Definition at line 106 of file itkLoggerManager.h.

Definition at line 61 of file itkLoggerManager.h.

typedef std::string itk::LoggerManager::NameType

Definition at line 64 of file itkLoggerManager.h.

Definition at line 59 of file itkLoggerManager.h.

Reimplemented from itk::Object.

Definition at line 48 of file itkLoggerManager.h.

Definition at line 55 of file itkLoggerManager.h.

Smart pointer typedef support.

Reimplemented from itk::Object.

Definition at line 46 of file itkLoggerManager.h.

Reimplemented from itk::Object.

Definition at line 47 of file itkLoggerManager.h.

Definition at line 62 of file itkLoggerManager.h.


Constructor & Destructor Documentation

itk::LoggerManager::LoggerManager ( ) [inline, protected]

Constructor

Definition at line 96 of file itkLoggerManager.h.

virtual itk::LoggerManager::~LoggerManager ( ) [inline, protected, virtual]

Destructor

Definition at line 99 of file itkLoggerManager.h.


Member Function Documentation

void itk::LoggerManager::AddLogger ( const NameType name,
Logger logger 
)

Registers a logger

virtual::itk::LightObject::Pointer itk::LoggerManager::CreateAnother ( void  ) const [virtual]

Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.

Reimplemented from itk::Object.

create a logger and add it into LoggerManager

create a thread logger and add it into LoggerManager

virtual const char* itk::LoggerManager::GetNameOfClass ( ) const [virtual]

Run-time type information (and related methods).

Reimplemented from itk::Object.

static Pointer itk::LoggerManager::New ( ) [static]

New macro for creation of through a Smart Pointer

Reimplemented from itk::Object.

void itk::LoggerManager::PrintSelf ( std::ostream &  s,
Indent  indent 
) const [protected, virtual]

Print contents of a LoggerManager

Reimplemented from itk::Object.

void itk::LoggerManager::Write ( PriorityLevelType  level,
std::string const &  content 
)

Member Data Documentation

Definition at line 108 of file itkLoggerManager.h.


The documentation for this class was generated from the following file: