#include <ParserProgress.h>
Public Types | |
| typedef boost::shared_ptr< ParserProgress > | Ptr |
Public Member Functions | |
| ParserProgress (boost::function< void(long int)> fnc, long int total_steps=100) | |
| initializes a progress objetc, with a callback functor if you are not reporting percentage, then set the total_steps to the goal, and report using the same unit, then | |
| ~ParserProgress () | |
| void | progress (long int p) |
| report progress, which in most cases executes the functor associated with this progress object to update progress information | |
| void | setTotalSteps (long int total_steps) |
| void | finish () |
| report progress finished | |
| void | start () |
| report progress started | |
Private Attributes | |
| boost::function< void(long int)> | _fnc |
| long int | _previous_progress |
| long int | _total_steps |
Definition at line 22 of file ParserProgress.h.
|
|
Definition at line 25 of file ParserProgress.h. |
|
||||||||||||
|
initializes a progress objetc, with a callback functor if you are not reporting percentage, then set the total_steps to the goal, and report using the same unit, then
Definition at line 33 of file ParserProgress.h. |
|
|
Definition at line 39 of file ParserProgress.h. |
|
|
report progress, which in most cases executes the functor associated with this progress object to update progress information
Definition at line 48 of file ParserProgress.h. References _fnc, _previous_progress, and _total_steps. |
|
|
Definition at line 64 of file ParserProgress.h. References _total_steps. |
|
|
report progress finished
Definition at line 72 of file ParserProgress.h. References _fnc, and _previous_progress. |
|
|
report progress started
Definition at line 85 of file ParserProgress.h. References _fnc, and _previous_progress. |
|
|
Definition at line 96 of file ParserProgress.h. Referenced by finish(), progress(), and start(). |
|
|
Definition at line 97 of file ParserProgress.h. Referenced by finish(), progress(), and start(). |
|
|
Definition at line 98 of file ParserProgress.h. Referenced by progress(), and setTotalSteps(). |
1.4.6