ITK
4.2.0
Insight Segmentation and Registration Toolkit
|
#include <itkThreadLogger.h>
Public Types | |
typedef SmartPointer< const Self > | ConstPointer |
typedef unsigned int | DelayType |
enum | OperationType { SET_PRIORITY_LEVEL, SET_LEVEL_FOR_FLUSHING, ADD_LOG_OUTPUT, WRITE, FLUSH } |
typedef Logger::OutputType | OutputType |
typedef SmartPointer< Self > | Pointer |
typedef Logger::PriorityLevelType | PriorityLevelType |
typedef ThreadLogger | Self |
typedef Logger | Superclass |
Public Types inherited from itk::Logger | |
Public Types inherited from itk::LoggerBase | |
enum | TimeStampFormatType { REALVALUE = 0, HUMANREADABLE } |
Public Types inherited from itk::Object | |
Public Types inherited from itk::LightObject |
Public Member Functions | |
virtual void | AddLogOutput (OutputType *output) |
virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
virtual void | Flush () |
virtual DelayType | GetDelay () const |
virtual PriorityLevelType | GetLevelForFlushing () const |
virtual const char * | GetNameOfClass () const |
virtual PriorityLevelType | GetPriorityLevel () const |
virtual void | SetDelay (DelayType delay) |
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 | |
virtual void | PrintSelf (std::ostream &os, Indent indent) const |
ThreadLogger () | |
virtual | ~ThreadLogger () |
Protected Member Functions inherited from itk::Logger | |
Logger () | |
virtual | ~Logger () |
Protected Member Functions inherited from itk::LoggerBase | |
LoggerBase () | |
virtual | ~LoggerBase () |
Protected Member Functions inherited from itk::Object | |
Object () | |
bool | PrintObservers (std::ostream &os, Indent indent) const |
virtual void | SetTimeStamp (const TimeStamp &time) |
virtual | ~Object () |
Protected Member Functions inherited from itk::LightObject | |
virtual LightObject::Pointer | InternalClone () const |
LightObject () | |
virtual void | PrintHeader (std::ostream &os, Indent indent) const |
virtual void | PrintTrailer (std::ostream &os, Indent indent) const |
virtual | ~LightObject () |
Static Protected Member Functions | |
static ITK_THREAD_RETURN_TYPE | ThreadFunction (void *) |
Private Types | |
typedef std::queue < PriorityLevelType > | LevelContainerType |
typedef std::queue< std::string > | MessageContainerType |
typedef std::queue< OperationType > | OperationContainerType |
typedef std::queue < OutputType::Pointer > | OutputContainerType |
Private Member Functions | |
void | InternalFlush () |
Private Attributes | |
DelayType | m_Delay |
LevelContainerType | m_LevelQ |
MessageContainerType | m_MessageQ |
SimpleFastMutexLock | m_Mutex |
OperationContainerType | m_OperationQ |
OutputContainerType | m_OutputQ |
MultiThreader::Pointer | m_Threader |
ThreadIdType | m_ThreadID |
Providing logging service as a separate thread.
Definition at line 40 of file itkThreadLogger.h.
typedef SmartPointer< const Self > itk::ThreadLogger::ConstPointer |
Reimplemented from itk::Logger.
Definition at line 47 of file itkThreadLogger.h.
typedef unsigned int itk::ThreadLogger::DelayType |
Definition at line 59 of file itkThreadLogger.h.
|
private |
Definition at line 124 of file itkThreadLogger.h.
|
private |
Definition at line 122 of file itkThreadLogger.h.
|
private |
Definition at line 120 of file itkThreadLogger.h.
|
private |
Definition at line 126 of file itkThreadLogger.h.
Reimplemented from itk::LoggerBase.
Definition at line 53 of file itkThreadLogger.h.
typedef SmartPointer< Self > itk::ThreadLogger::Pointer |
Reimplemented from itk::Logger.
Definition at line 46 of file itkThreadLogger.h.
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 57 of file itkThreadLogger.h.
typedef ThreadLogger itk::ThreadLogger::Self |
Smart pointer typedef support.
Reimplemented from itk::Logger.
Definition at line 44 of file itkThreadLogger.h.
typedef Logger itk::ThreadLogger::Superclass |
Reimplemented from itk::Logger.
Definition at line 45 of file itkThreadLogger.h.
Definition of types of operations for ThreadLogger.
Definition at line 62 of file itkThreadLogger.h.
|
protected |
Constructor
|
protectedvirtual |
Destructor
|
virtual |
Registers another output stream with the multiple output.
Reimplemented from itk::LoggerBase.
|
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::Logger.
|
virtual |
Reimplemented from itk::LoggerBase.
|
virtual |
Get the delay in milliseconds between checks to see if there are any low priority messages to be processed.
|
virtual |
Reimplemented from itk::LoggerBase.
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::Logger.
|
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.
|
private |
|
static |
New macro for creation of a Smart Pointer
Reimplemented from itk::Logger.
|
protectedvirtual |
Print contents of a ThreadLogger
Reimplemented from itk::LoggerBase.
|
virtual |
Set the delay in milliseconds between checks to see if there are any low priority messages to be processed.
|
virtual |
Reimplemented from itk::LoggerBase.
|
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.
|
staticprotected |
|
virtual |
Reimplemented from itk::LoggerBase.
|
private |
Definition at line 142 of file itkThreadLogger.h.
|
private |
Definition at line 136 of file itkThreadLogger.h.
|
private |
Definition at line 134 of file itkThreadLogger.h.
|
private |
Definition at line 140 of file itkThreadLogger.h.
|
private |
Definition at line 132 of file itkThreadLogger.h.
|
private |
Definition at line 138 of file itkThreadLogger.h.
|
private |
Definition at line 128 of file itkThreadLogger.h.
|
private |
Definition at line 130 of file itkThreadLogger.h.