10 #ifndef ZYPP_ParserProgress_H
11 #define ZYPP_ParserProgress_H
13 #include "boost/shared_ptr.hpp"
14 #include "boost/function.hpp"
25 typedef boost::shared_ptr<ParserProgress>
Ptr;
33 ParserProgress( boost::function<
void (
long int)> fnc,
long int total_steps = 100 )
53 long int current_done = p;
54 p = (
long int)(((
double) current_done/(
double)
_total_steps)*100);
96 boost::function<void (long int)>
_fnc;
104 #endif // ZYPP_ParserProgress_H
boost::function< void(long int)> _fnc
boost::shared_ptr< ParserProgress > Ptr
void start()
report progress started
void progress(long int p)
report progress, which in most cases executes the functor associated with this progress object to upd...
void setTotalSteps(long int total_steps)
long int _previous_progress
void finish()
report progress finished