MeVisLab Toolbox Reference
|
Extended DPL logger class redirecting messages from the DPL to a DirectDicomImport instance. More...
#include <mlDirectDicomImportDPLLogger.h>
Public Types | |
typedef void | ProgressCB(void *usrData, const std::string &info, float state) |
Progress callback which can be registered for DPL progress logging. | |
Public Member Functions | |
DirectDicomImportDPLLogger (ProgressLogger *ddiLogger=nullptr) | |
Constructor: A class logging DPl messages to the console of the instance of a ProgressLogger. | |
virtual void | setProgressCB (ProgressCB *callback=nullptr, void *userData=nullptr, float progressStart=0.2f, float progressRange=0.3f) |
Defines the currently used progress callback or resets it if nothing is passed. | |
void | setProgressLogger (ProgressLogger *ddiLogger=nullptr) |
Set the used ProgressLogger instance, defaults to nullptr. | |
ProgressLogger * | getProgressLogger () const |
Returns the currently set ProgressLogger. | |
void | setVerboseLevel (unsigned int verboseLevel) |
Verbose level (0 = only warnings and errors, other values = full information). | |
unsigned int | getVerboseLevel () const |
Returns verbose level. | |
void | setLogPartingAndSortingInformationOn (bool on) |
Enables logging of partitioning and sorting information if enabled, default is off/false. | |
bool | isPartingAndSortingInformationOn () |
Returns true if logging of partitioning and sorting information is enabled, otherwise false. | |
void | setTagValueProvider (DirectDicomImportDPLTagValueProvider *prov=nullptr) |
An optional tag value provider from which information about the recent frame can be retrieved for more details about errors. | |
DirectDicomImportDPLTagValueProvider * | getTagValueProvider () const |
Returns the currently set tag value provider or nullptr if not set. | |
Protected Member Functions | |
void | log (Logger::LogTypes logType, const std::string &msgArg) override |
Receives the DPL message and sends it to the console of the DirectDicomImport instance. | |
void | log (Logger::LogTypes logType, DPL::ErrorInfo *error) override |
Receives the DPL error and sends it to the console of the DirectDicomImport instance. | |
Extended DPL logger class redirecting messages from the DPL to a DirectDicomImport instance.
Definition at line 46 of file mlDirectDicomImportDPLLogger.h.
typedef void ml::DirectDicomImportDPLLogger::ProgressCB(void *usrData, const std::string &info, float state) |
Progress callback which can be registered for DPL progress logging.
Definition at line 53 of file mlDirectDicomImportDPLLogger.h.
ml::DirectDicomImportDPLLogger::DirectDicomImportDPLLogger | ( | ProgressLogger * | ddiLogger = nullptr | ) |
Constructor: A class logging DPl messages to the console of the instance of a ProgressLogger.
ProgressLogger * ml::DirectDicomImportDPLLogger::getProgressLogger | ( | ) | const |
Returns the currently set ProgressLogger.
DirectDicomImportDPLTagValueProvider * ml::DirectDicomImportDPLLogger::getTagValueProvider | ( | ) | const |
Returns the currently set tag value provider or nullptr if not set.
bool ml::DirectDicomImportDPLLogger::isPartingAndSortingInformationOn | ( | ) |
Returns true if logging of partitioning and sorting information is enabled, otherwise false.
|
overrideprotected |
Receives the DPL message and sends it to the console of the DirectDicomImport instance.
logType | The type of message to log. |
msgArg | The message to log. |
|
overrideprotected |
Receives the DPL error and sends it to the console of the DirectDicomImport instance.
Call is ignored if error is nullptr.
logType | The type of message to log. |
error | Pointer to a container whose string (got from toString) is logged. |
Enables logging of partitioning and sorting information if enabled, default is off/false.
|
virtual |
Defines the currently used progress callback or resets it if nothing is passed.
void ml::DirectDicomImportDPLLogger::setProgressLogger | ( | ProgressLogger * | ddiLogger = nullptr | ) |
Set the used ProgressLogger instance, defaults to nullptr.
void ml::DirectDicomImportDPLLogger::setTagValueProvider | ( | DirectDicomImportDPLTagValueProvider * | prov = nullptr | ) |
An optional tag value provider from which information about the recent frame can be retrieved for more details about errors.
Verbose level (0 = only warnings and errors, other values = full information).