ITK
4.13.0
Insight Segmentation and Registration Toolkit
|
#include <itkLoggerThreadWrapper.h>
Used for providing logging service as a separate thread.
Definition at line 40 of file itkLoggerThreadWrapper.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 } |
typedef SimpleLoggerType::OutputType | OutputType |
typedef SmartPointer< Self > | Pointer |
typedef SimpleLoggerType::PriorityLevelType | PriorityLevelType |
typedef LoggerThreadWrapper | Self |
typedef SimpleLoggerType | Superclass |
Public Member Functions | |
virtual void | AddLogOutput (OutputType *output) override |
virtual ::itk::LightObject::Pointer | CreateAnother () const |
virtual void | Flush () override |
virtual DelayType | GetDelay () const |
virtual PriorityLevelType | GetLevelForFlushing () const override |
virtual const char * | GetNameOfClass () const |
virtual PriorityLevelType | GetPriorityLevel () const override |
virtual void | SetDelay (DelayType delay) |
virtual void | SetLevelForFlushing (PriorityLevelType level) override |
virtual void | SetPriorityLevel (PriorityLevelType level) override |
virtual void | Write (PriorityLevelType level, std::string const &content) override |
Static Public Member Functions | |
static Pointer | New () |
Protected Member Functions | |
LoggerThreadWrapper () | |
virtual void | PrintSelf (std::ostream &os, Indent indent) const override |
virtual | ~LoggerThreadWrapper () override |
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< typename OutputType::Pointer > | OutputContainerType |
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 |
typedef SmartPointer< const Self > itk::LoggerThreadWrapper< SimpleLoggerType >::ConstPointer |
Definition at line 47 of file itkLoggerThreadWrapper.h.
typedef unsigned int itk::LoggerThreadWrapper< SimpleLoggerType >::DelayType |
Definition at line 57 of file itkLoggerThreadWrapper.h.
|
private |
Definition at line 117 of file itkLoggerThreadWrapper.h.
|
private |
Definition at line 115 of file itkLoggerThreadWrapper.h.
|
private |
Definition at line 113 of file itkLoggerThreadWrapper.h.
|
private |
Definition at line 119 of file itkLoggerThreadWrapper.h.
typedef SimpleLoggerType::OutputType itk::LoggerThreadWrapper< SimpleLoggerType >::OutputType |
Definition at line 53 of file itkLoggerThreadWrapper.h.
typedef SmartPointer< Self > itk::LoggerThreadWrapper< SimpleLoggerType >::Pointer |
Definition at line 46 of file itkLoggerThreadWrapper.h.
typedef SimpleLoggerType::PriorityLevelType itk::LoggerThreadWrapper< SimpleLoggerType >::PriorityLevelType |
Definition at line 56 of file itkLoggerThreadWrapper.h.
typedef LoggerThreadWrapper itk::LoggerThreadWrapper< SimpleLoggerType >::Self |
Definition at line 44 of file itkLoggerThreadWrapper.h.
typedef SimpleLoggerType itk::LoggerThreadWrapper< SimpleLoggerType >::Superclass |
Definition at line 45 of file itkLoggerThreadWrapper.h.
enum itk::LoggerThreadWrapper::OperationType |
Definition of types of operations for LoggerThreadWrapper.
Enumerator | |
---|---|
SET_PRIORITY_LEVEL | |
SET_LEVEL_FOR_FLUSHING | |
ADD_LOG_OUTPUT | |
WRITE |
Definition at line 60 of file itkLoggerThreadWrapper.h.
|
protected |
Constructor
|
overrideprotectedvirtual |
Destructor
|
overridevirtual |
Registers another output stream with the multiple output.
virtual::itk::LightObject::Pointer itk::LoggerThreadWrapper< SimpleLoggerType >::CreateAnother | ( | ) | const |
|
overridevirtual |
|
virtual |
Get the delay in milliseconds between checks to see if there are any low priority messages to be processed.
|
overridevirtual |
|
virtual |
Run-time type information (and related methods).
|
overridevirtual |
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
|
static |
New macro for creation of through a Smart Pointer
|
overrideprotectedvirtual |
Print contents of a LoggerThreadWrapper
|
virtual |
Set the delay in milliseconds between checks to see if there are any low priority messages to be processed.
|
overridevirtual |
|
overridevirtual |
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
|
staticprotected |
|
overridevirtual |
|
private |
Definition at line 135 of file itkLoggerThreadWrapper.h.
|
private |
Definition at line 129 of file itkLoggerThreadWrapper.h.
|
private |
Definition at line 127 of file itkLoggerThreadWrapper.h.
|
private |
Definition at line 133 of file itkLoggerThreadWrapper.h.
|
private |
Definition at line 125 of file itkLoggerThreadWrapper.h.
|
private |
Definition at line 131 of file itkLoggerThreadWrapper.h.
|
private |
Definition at line 121 of file itkLoggerThreadWrapper.h.
|
private |
Definition at line 123 of file itkLoggerThreadWrapper.h.