SimpleITK
|
A base class to handle SimpleITK and ITK messages and logging. More...
#include <sitkLogger.h>
A base class to handle SimpleITK and ITK messages and logging.
In ITK this function is implemented by the itk::OutputWindow, but in SimpleITK it is called a logger.
Provides a base class for SimpleITK to provide the "DisplayText" methods that match the interface of itk::OutputWindow. Derived instances of LoggerBase are used by an internal adaptor derived from the itk::OutputWindow so that this object instances can be used in ITK.
Definition at line 48 of file sitkLogger.h.
Public Member Functions | |
virtual void | DisplayDebugText (const char *t) |
virtual void | DisplayErrorText (const char *t) |
virtual void | DisplayGenericOutputText (const char *t) |
virtual void | DisplayText (const char *t)=0 |
virtual void | DisplayWarningText (const char *t) |
std::string | GetName () const override |
LoggerBase ()=default | |
virtual ITKLogger | SetAsGlobalITKLogger () |
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 | |
NonCopyable & | operator= (const NonCopyable &)=delete |
Static Public Member Functions | |
static ITKLogger | GetGlobalITKLogger () |
Additional Inherited Members | |
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 | |
|
default |
|
override |
|
virtual |
Reimplemented in itk::simple::SITK_FINAL.
|
virtual |
Reimplemented in itk::simple::SITK_FINAL.
|
virtual |
Reimplemented in itk::simple::SITK_FINAL.
|
pure virtual |
Implemented in itk::simple::SITK_FINAL.
|
virtual |
Reimplemented in itk::simple::SITK_FINAL.
|
static |
Get the current logger used by ITK.
|
overridevirtual |
Set object name.
Reimplemented from itk::simple::ObjectOwnedBase.
|
virtual |
Set this logger instance to the ITK output window.
After calling this method, all ITK and SimpleITK display, warning and error texts will be handled by this object's methods.
Reimplemented in itk::simple::SITK_FINAL.
|
overridevirtual |
Get object name.
Reimplemented from itk::simple::ObjectOwnedBase.