1 #ifndef OSMSCOUT_UTIL_PROGRESS_H 2 #define OSMSCOUT_UTIL_PROGRESS_H 26 #include <osmscout/CoreFeatures.h> 45 void SetOutputDebug(
bool outputDebug);
46 bool OutputDebug()
const;
48 virtual void SetStep(
const std::string& step);
49 virtual void SetAction(
const std::string& action);
50 virtual void SetProgress(
double current,
double total,
const std::string& label=
"");
51 virtual void SetProgress(
unsigned int current,
unsigned int total,
const std::string& label=
"");
52 virtual void SetProgress(
unsigned long current,
unsigned long total,
const std::string& label=
"");
53 virtual void SetProgress(
unsigned long long current,
unsigned long long total,
const std::string& label=
"");
54 virtual void Debug(
const std::string& text);
55 virtual void Info(
const std::string& text);
56 virtual void Warning(
const std::string& text);
57 virtual void Error(
const std::string& text);
63 SilentProgress() =
default;
64 ~SilentProgress()
override =
default;
70 std::time_t lastProgressDump;
76 void SetStep(
const std::string& step)
override;
77 void SetAction(
const std::string& action)
override;
78 void SetProgress(
double current,
double total,
const std::string& label)
override;
79 void SetProgress(
unsigned int current,
unsigned int total,
const std::string& label)
override;
80 void SetProgress(
unsigned long current,
unsigned long total,
const std::string& label=
"")
override;
81 void SetProgress(
unsigned long long current,
unsigned long long total,
const std::string& label=
"")
override;
83 void Debug(
const std::string& text)
override;
84 void Info(
const std::string& text)
override;
85 void Warning(
const std::string& text)
override;
86 void Error(
const std::string& text)
override;
#define OSMSCOUT_API
Definition: CoreImportExport.h:45
Definition: Progress.h:67
Definition: Progress.h:34