OTB
9.0.0
Orfeo Toolbox
|
#include <otbLogger.h>
Public Types | |
typedef itk::SmartPointer< const Self > | ConstPointer |
typedef itk::SmartPointer< Self > | Pointer |
typedef Logger | Self |
typedef itk::Logger | Superclass |
Public Member Functions | |
std::string | BuildFormattedEntry (itk::Logger::PriorityLevelType, std::string const &) override |
virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
virtual const char * | GetNameOfClass () const |
bool | IsLogSetupInformationDone () |
itkCloneMacro (Logger) void LogSetupInformation() | |
void | LogSetupInformationDone () |
void | ResetOutputs () |
Static Public Member Functions | |
static Logger * | Instance () |
static Pointer | New () |
Protected Member Functions | |
Logger () | |
virtual | ~Logger () override=default |
Private Member Functions | |
Logger (const Self &)=delete | |
void | operator= (const Self &)=delete |
Static Private Member Functions | |
static Logger * | CreateInstance () |
Private Attributes | |
bool | m_LogSetupInfoDone |
An ITK logger specialized for OTB.
Sets OTB wide settings in its constructor
Definition at line 40 of file otbLogger.h.
typedef itk::SmartPointer<const Self> otb::Logger::ConstPointer |
Definition at line 46 of file otbLogger.h.
typedef itk::SmartPointer<Self> otb::Logger::Pointer |
Definition at line 45 of file otbLogger.h.
typedef Logger otb::Logger::Self |
Definition at line 43 of file otbLogger.h.
typedef itk::Logger otb::Logger::Superclass |
Definition at line 44 of file otbLogger.h.
|
protected |
|
overrideprotectedvirtualdefault |
|
privatedelete |
|
override |
virtual::itk::LightObject::Pointer otb::Logger::CreateAnother | ( | void | ) | const |
|
staticprivate |
|
virtual |
|
static |
If Logger crashes when called from the destructor of a static or global object, the singleton might have already been destroyed. You can prolong its lifetime by calling Logger::Instance() from that object's constructor.
See https://stackoverflow.com/questions/335369/finding-c-static-initialization-order-problems#335746
Referenced by otb::StreamingImageVirtualWriter< TInputImage >::GenerateData(), otb::ImageFileWriter< TImage >::GenerateOutputInformation(), and main().
bool otb::Logger::IsLogSetupInformationDone | ( | ) |
Return true if the LogSetupInformation has already been called
otb::Logger::itkCloneMacro | ( | Logger | ) |
Output logs about the RAM, caching and multi-threading settings
void otb::Logger::LogSetupInformationDone | ( | ) |
Set the flag m_LogSetupInfoDone to true
|
static |
|
privatedelete |
void otb::Logger::ResetOutputs | ( | ) |
|
private |
Definition at line 88 of file otbLogger.h.