35 #ifndef LVR2_PROGRESSBARQT_H_ 36 #define LVR2_PROGRESSBARQT_H_ 42 using std::stringstream;
50 #include <boost/thread/mutex.hpp> 167 void print_progress();
string m_prefix
The prefix string.
static PacmanProgressTitleCallbackPtr m_titleCallback
void(* PacmanProgressCallbackPtr)(int)
A class to manage progress information output for process where the number of performed operations is...
int m_percent
The current progress in percent.
void(* ProgressCallbackPtr)(int)
A class to manage progress information output for process where the number of performed operations is...
size_t m_maxVal
The number of iterations.
static PacmanProgressCallbackPtr m_progressCallback
size_t m_currentVal
The current counter.
ProgressBar(size_t max_val, string prefix="")
Ctor.
void print_bar()
Prints the output.
string m_prefix
The prefix string.
void(* ProgressTitleCallbackPtr)(string)
boost::mutex m_mutex
A mutex object for counter increment (for parallel executions)
size_t m_maxVal
The number of iterations.
string m_fillstring
A fill string for correct output alignment.
void operator+=(size_t n)
Increases the counter of performed by n.
size_t m_currentVal
The current counter.
string m_fillstring
A fill string for correct output alignment.
stringstream m_stream
A string stream for output generation.
void(* PacmanProgressTitleCallbackPtr)(string)
static ProgressCallbackPtr m_progressCallback
stringstream m_stream
A string stream for output generation.
static ProgressTitleCallbackPtr m_titleCallback
static void setProgressCallback(ProgressCallbackPtr)
Registers a callback that is called with the new value when the percentage of the progress changed...
int m_percent
The current progress in percent.
static void setProgressTitleCallback(ProgressTitleCallbackPtr)
Registers a callback that is called when a new progress instance is created.
A progress counter class.
string m_prefix
The prefix string.
void operator++()
Increases the counter of performed iterations.
boost::mutex m_mutex
A mutex object for counter increment (for parallel executions)
stringstream m_stream
A string stream for output generation.
string m_fillstring
A fill string for correct output alignment.
boost::mutex m_mutex
A mutex object for counter increment (for parallel executions)
size_t m_currentVal
The current counter value.
size_t m_stepVal
The step value for output generation.