26 #ifndef _APPBASE_PROGRESSDISPLAY_H
27 #define _APPBASE_PROGRESSDISPLAY_H
45 explicit ProgressDisplay(
int maximum=0) : m_canceled(false), m_maximum(maximum), m_progress(0) {};
50 void setMessage(
const std::string& message,
const std::string& filename=
"");
55 bool updateDisplay(
const std::string& message);
56 bool updateDisplayValue();
58 void setMaximum(
int newMaximum);
67 virtual void updateProgressDisplay() = 0;
95 virtual void updateProgressDisplay();
Dummy progress display, without output.
virtual ~ProgressDisplay()
ProgressDisplay(int maximum=0)
constructor
virtual void updateProgressDisplay()
update the display, does output nothing
StreamProgressDisplay(std::ostream &o)
constructor, connect with given outputstream
a progress display to print progress reports to a stream