22#include <FMEThirdPartyWarningsDisable.h>
24#include <FMEThirdPartyWarningsRestore.h>
31 #define _DPL_SAVE_ERROR_DEF ERROR
36#include "DPL_TypeDefs.h"
37#include "DPL_Logger.h"
41 class DirectDicomImportDPLTagValueProvider;
54 const std::string &info,
59 void *userData =
nullptr,
60 float progressStart = 0.2f,
61 float progressRange = 0.3f);
93 void log( Logger::LogTypes logType,
const std::string& msgArg )
override;
99 void log( Logger::LogTypes logType, DPL::ErrorInfo* error )
override;
106 unsigned int _verboseLevel;
109 bool _logPartingAndSortingInformationOn;
121 float _progressStart;
124 float _progressRange;
145#ifdef _DPL_SAVE_ERROR_DEF
146 #define ERROR _DPL_SAVE_ERROR_DEF
Project global and OS specific declarations.
#define MLDIRECTDICOMIMPORT_EXPORT
Only for diagnostic purposes.
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 ProgressCB(void *usrData, const std::string &info, float state)
Progress callback which can be registered for DPL progress logging.
unsigned int getVerboseLevel() const
Returns verbose level.
void setProgressLogger(ProgressLogger *ddiLogger=nullptr)
Set the used ProgressLogger instance, defaults to nullptr.
DirectDicomImportDPLTagValueProvider * getTagValueProvider() const
Returns the currently set tag value provider or nullptr if not set.
void setLogPartingAndSortingInformationOn(bool on)
Enables logging of partitioning and sorting information if enabled, default is off/false.
ProgressLogger * getProgressLogger() const
Returns the currently set ProgressLogger.
void setVerboseLevel(unsigned int verboseLevel)
Verbose level (0 = only warnings and errors, other values = full information).
void log(Logger::LogTypes logType, DPL::ErrorInfo *error) override
bool isPartingAndSortingInformationOn()
Returns true if logging of partitioning and sorting information is enabled, otherwise false.
void setTagValueProvider(DirectDicomImportDPLTagValueProvider *prov=nullptr)
void log(Logger::LogTypes logType, const std::string &msgArg) override
DirectDicomImportDPLLogger(ProgressLogger *ddiLogger=nullptr)
Constructor: A class logging DPl messages to the console of the instance of a ProgressLogger.
Class to measure precise time intervals.