SimpleITK  
Public Member Functions | Private Attributes | List of all members
itk::simple::SITK_FINAL Class Reference

#include <sitkLogger.h>

+ Inheritance diagram for itk::simple::SITK_FINAL:
+ Collaboration diagram for itk::simple::SITK_FINAL:

Detailed Description

A class to hold itk::OutputWindows instances.

All "DisplayText" methods are forwarded to the held OutputWindow instance.

Neither the ownership nor callback functionality of the ObjectOwnedBase is supported.

Definition at line 110 of file sitkLogger.h.

Public Member Functions

void DisplayDebugText (const char *t) override
 
void DisplayErrorText (const char *t) override
 
void DisplayGenericOutputText (const char *t) override
 
void DisplayText (const char *t) override
 
void DisplayWarningText (const char *t) override
 
 ITKLogger ()=default
 
 ITKLogger (const ITKLogger &)
 
 ITKLogger (itk::OutputWindow *)
 
ITKLoggeroperator= (ITKLogger)
 
ITKLogger SetAsGlobalITKLogger () override
 
 ~ITKLogger () override
 
- Public Member Functions inherited from itk::simple::LoggerBase
std::string GetName () const override
 
 LoggerBase ()=default
 
void SetName (const std::string &n) override
 
 ~LoggerBase () override
 
- Public Member Functions inherited from itk::simple::ObjectOwnedBase
 ObjectOwnedBase ()=default
 
virtual ~ObjectOwnedBase ()=0
 
- Public Member Functions inherited from itk::simple::NonCopyable
 NonCopyable (const NonCopyable &)=delete
 
NonCopyableoperator= (const NonCopyable &)=delete
 

Private Attributes

itk::OutputWindowm_OutputWindow { nullptr }
 

Additional Inherited Members

- Static Public Member Functions inherited from itk::simple::LoggerBase
static ITKLogger GetGlobalITKLogger ()
 
- Protected Member Functions inherited from itk::simple::ObjectOwnedBase
virtual size_t AddObjectCallback (itk::Object *o, std::function< void()> onDelete)
 Register an Object and a method to call on this object's destructor. More...
 
 ObjectOwnedBase (const ObjectOwnedBase &o)
 Copy Constructor. More...
 
virtual size_t RemoveObject (const itk::Object *)
 
virtual void SetOwnedByObjects (bool o)
 
virtual bool GetOwnedByObjects () const
 
virtual void OwnedByObjectsOn ()
 
virtual void OwnedByObjectsOff ()
 
- Protected Member Functions inherited from itk::simple::NonCopyable
 NonCopyable ()=default
 

Constructor & Destructor Documentation

◆ ~ITKLogger()

itk::simple::SITK_FINAL::~ITKLogger ( )
override

Member Function Documentation

◆ DisplayDebugText()

void itk::simple::SITK_FINAL::DisplayDebugText ( const char *  t)
overridevirtual

Reimplemented from itk::simple::LoggerBase.

◆ DisplayErrorText()

void itk::simple::SITK_FINAL::DisplayErrorText ( const char *  t)
overridevirtual

Reimplemented from itk::simple::LoggerBase.

◆ DisplayGenericOutputText()

void itk::simple::SITK_FINAL::DisplayGenericOutputText ( const char *  t)
overridevirtual

Reimplemented from itk::simple::LoggerBase.

◆ DisplayText()

void itk::simple::SITK_FINAL::DisplayText ( const char *  t)
overridevirtual

◆ DisplayWarningText()

void itk::simple::SITK_FINAL::DisplayWarningText ( const char *  t)
overridevirtual

Reimplemented from itk::simple::LoggerBase.

◆ ITKLogger() [1/3]

itk::simple::SITK_FINAL::ITKLogger ( )
default

◆ ITKLogger() [2/3]

itk::simple::SITK_FINAL::ITKLogger ( const ITKLogger &  )

◆ ITKLogger() [3/3]

itk::simple::SITK_FINAL::ITKLogger ( itk::OutputWindow )
explicit

◆ operator=()

ITKLogger& itk::simple::SITK_FINAL::operator= ( ITKLogger  )

◆ SetAsGlobalITKLogger()

ITKLogger itk::simple::SITK_FINAL::SetAsGlobalITKLogger ( )
overridevirtual

Set the ITK logger to the ITK OutputWindow instance held.

Overrides the base functionality to eliminate the creation of the intermediary adaptor class.

Returns
The previous logger.

Reimplemented from itk::simple::LoggerBase.

Member Data Documentation

◆ m_OutputWindow

itk::OutputWindow* itk::simple::SITK_FINAL::m_OutputWindow { nullptr }
private

Definition at line 146 of file sitkLogger.h.


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