32 #include <boost/shared_ptr.hpp>
50 typedef boost::shared_ptr< WProgress >
SPtr;
55 typedef boost::shared_ptr< const WProgress >
ConstSPtr;
66 WProgress( std::string name,
size_t count = 0 );
167 #endif // WPROGRESS_H
std::string m_name
Progress name.
virtual WProgress & operator+(size_t steps)
Increments the operator by the given number of steps to signal forward progress.
Class managing progress inside of modules.
virtual float getProgress()
Returns the overall progress of this progress instance, including the child progress'.
boost::shared_ptr< const WProgress > ConstSPtr
Const Shared pointer on a WProgress.
Test Class for the base progress class.
virtual void update()
Function updating the internal state.
size_t m_count
The current counter.
virtual ~WProgress()
Destructor.
virtual bool isDetermined()
Returns true whenever the progress has a known end.
bool m_pending
Flag denoting whether the progress is running or not.
virtual void finish()
Stops the progress.
virtual void increment(size_t steps)
Increment the progress counter by the given amount.
std::string getName() const
Returns the name of the progress.
virtual bool isPending()
Returns true when the operation is pending.
WProgress(std::string name, size_t count=0)
Creates a new progress instance as child of the specified progress.
bool m_determined
True if the progress has a known end point.
virtual WProgress & operator++()
Simple increment operator to signal a forward stepping.
boost::shared_ptr< WProgress > SPtr
Shared pointer on a WProgress.
size_t m_max
The maximum count (which marks the 100%).