ITK
6.0.0
Insight Toolkit
|
#include <itkLoggerThreadWrapper.h>
Used for providing logging service as a separate thread.
Definition at line 68 of file itkLoggerThreadWrapper.h.
Public Types | |
using | ConstPointer = SmartPointer< const Self > |
using | DelayType = unsigned int |
using | OperationEnum = LoggerThreadWrapperEnums::Operation |
using | OutputType = typename SimpleLoggerType::OutputType |
using | Pointer = SmartPointer< Self > |
using | PriorityLevelEnum = typename SimpleLoggerType::PriorityLevelEnum |
using | Self = LoggerThreadWrapper |
using | Superclass = SimpleLoggerType |
Public Member Functions | |
void | AddLogOutput (OutputType *output) override |
void | Flush () override |
virtual DelayType | GetDelay () const |
PriorityLevelEnum | GetLevelForFlushing () const override |
const char * | GetNameOfClass () const override |
PriorityLevelEnum | GetPriorityLevel () const override |
virtual void | SetDelay (DelayType delay) |
void | SetLevelForFlushing (PriorityLevelEnum level) override |
void | SetPriorityLevel (PriorityLevelEnum level) override |
void | Write (PriorityLevelEnum level, std::string const &content) override |
Static Public Member Functions | |
static Pointer | New () |
Protected Member Functions | |
LoggerThreadWrapper () | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
void | PrivateFlush () override |
void | ThreadFunction () |
~LoggerThreadWrapper () override | |
Private Attributes | |
DelayType | m_Delay {} |
std::queue< PriorityLevelEnum > | m_LevelQ {} |
std::queue< std::string > | m_MessageQ {} |
std::mutex | m_Mutex {} |
std::queue< OperationEnum > | m_OperationQ {} |
std::queue< typename OutputType::Pointer > | m_OutputQ {} |
std::atomic< bool > | m_TerminationRequested {} |
std::thread | m_Thread {} |
using itk::LoggerThreadWrapper< SimpleLoggerType >::ConstPointer = SmartPointer<const Self> |
Definition at line 74 of file itkLoggerThreadWrapper.h.
using itk::LoggerThreadWrapper< SimpleLoggerType >::DelayType = unsigned int |
Definition at line 84 of file itkLoggerThreadWrapper.h.
using itk::LoggerThreadWrapper< SimpleLoggerType >::OperationEnum = LoggerThreadWrapperEnums::Operation |
Definition at line 86 of file itkLoggerThreadWrapper.h.
using itk::LoggerThreadWrapper< SimpleLoggerType >::OutputType = typename SimpleLoggerType::OutputType |
Definition at line 82 of file itkLoggerThreadWrapper.h.
using itk::LoggerThreadWrapper< SimpleLoggerType >::Pointer = SmartPointer<Self> |
Definition at line 73 of file itkLoggerThreadWrapper.h.
using itk::LoggerThreadWrapper< SimpleLoggerType >::PriorityLevelEnum = typename SimpleLoggerType::PriorityLevelEnum |
Definition at line 83 of file itkLoggerThreadWrapper.h.
using itk::LoggerThreadWrapper< SimpleLoggerType >::Self = LoggerThreadWrapper |
Definition at line 71 of file itkLoggerThreadWrapper.h.
using itk::LoggerThreadWrapper< SimpleLoggerType >::Superclass = SimpleLoggerType |
Definition at line 72 of file itkLoggerThreadWrapper.h.
|
protected |
Constructor
|
overrideprotected |
Destructor
|
override |
Registers another output stream with the multiple output.
|
override |
|
virtual |
Get the delay in milliseconds between checks to see if there are any low priority messages to be processed.
|
override |
|
override |
|
override |
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
|
overrideprotected |
Print contents of a LoggerThreadWrapper
|
overrideprotected |
|
virtual |
Set the delay in milliseconds between checks to see if there are any low priority messages to be processed.
|
override |
|
override |
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
|
protected |
|
override |
|
private |
Definition at line 169 of file itkLoggerThreadWrapper.h.
|
private |
Definition at line 163 of file itkLoggerThreadWrapper.h.
|
private |
Definition at line 161 of file itkLoggerThreadWrapper.h.
|
mutableprivate |
Definition at line 167 of file itkLoggerThreadWrapper.h.
|
private |
Definition at line 159 of file itkLoggerThreadWrapper.h.
|
private |
Definition at line 165 of file itkLoggerThreadWrapper.h.
|
private |
Definition at line 157 of file itkLoggerThreadWrapper.h.
|
private |
Definition at line 155 of file itkLoggerThreadWrapper.h.