29 #include "../common/WCondition.h"
31 #include "WProgress.h"
Class managing progress inside of modules.
virtual void finish()
Stops the progress.
bool m_pending
Flag denoting whether the progress is running or not.
size_t m_count
The current counter.
virtual bool isPending()
Returns true when the operation is pending.
bool m_determined
True if the progress has a known end point.
virtual ~WProgress()
Destructor.
virtual bool isDetermined()
Returns true whenever the progress has a known end.
size_t m_max
The maximum count (which marks the 100%).
virtual void increment(size_t steps)
Increment the progress counter by the given amount.
std::string m_name
Progress name.
virtual float getProgress()
Returns the overall progress of this progress instance, including the child progress'.
virtual void update()
Function updating the internal state.
WProgress(std::string name, size_t count=0)
Creates a new progress instance as child of the specified progress.
virtual WProgress & operator+(size_t steps)
Increments the operator by the given number of steps to signal forward progress.
std::string getName() const
Returns the name of the progress.
virtual WProgress & operator++()
Simple increment operator to signal a forward stepping.