A progress counter class. More...
#include <Progress.hpp>
| Public Member Functions | |
| void | operator++ () | 
| ProgressCounter (int stepVal, string prefix="") | |
| Protected Member Functions | |
| void | print_progress () | 
| Prints the current state.  More... | |
| Protected Attributes | |
| size_t | m_currentVal | 
| The current counter value.  More... | |
| string | m_fillstring | 
| A fill string for correct output alignment.  More... | |
| boost::mutex | m_mutex | 
| A mutex object for counter increment (for parallel executions)  More... | |
| string | m_prefix | 
| The prefix string.  More... | |
| size_t | m_stepVal | 
| The step value for output generation.  More... | |
| stringstream | m_stream | 
| A string stream for output generation.  More... | |
A progress counter class.
This class can be used of the number of performed operations is not known in advance (e.g. ASCII file reading). After m_stepVal} operations the current counter is printed.
Definition at line 147 of file Progress.hpp.
| lvr2::ProgressCounter::ProgressCounter | ( | int | stepVal, | 
| string | prefix = "" | ||
| ) | 
Definition at line 138 of file Progress.cpp.
| void lvr2::ProgressCounter::operator++ | ( | ) | 
Definition at line 145 of file Progress.cpp.
| 
 | protected | 
Prints the current state.
Definition at line 155 of file Progress.cpp.
| 
 | protected | 
The current counter value.
Definition at line 176 of file Progress.hpp.
| 
 | protected | 
A fill string for correct output alignment.
Definition at line 185 of file Progress.hpp.
| 
 | protected | 
A mutex object for counter increment (for parallel executions)
Definition at line 179 of file Progress.hpp.
| 
 | protected | 
The prefix string.
Definition at line 170 of file Progress.hpp.
| 
 | protected | 
The step value for output generation.
Definition at line 173 of file Progress.hpp.
| 
 | protected | 
A string stream for output generation.
Definition at line 182 of file Progress.hpp.