Go to the documentation of this file.
35 #ifndef LVR2_PROGRESSBARQT_H_
36 #define LVR2_PROGRESSBARQT_H_
42 using std::stringstream;
50 #include <boost/thread/mutex.hpp>
ProgressCounter(int stepVal, string prefix="")
string m_fillstring
A fill string for correct output alignment.
stringstream m_stream
A string stream for output generation.
static void setProgressTitleCallback(ProgressTitleCallbackPtr)
Registers a callback that is called when a new progress instance is created.
stringstream m_stream
A string stream for output generation.
size_t m_stepVal
The step value for output generation.
static ProgressTitleCallbackPtr m_titleCallback
static void setProgressTitleCallback(ProgressTitleCallbackPtr)
Registers a callback that is called when a new progress instance is created.
string m_fillstring
A fill string for correct output alignment.
PacmanProgressBar(size_t max_val, string prefix="", size_t bar_length=60)
Ctor.
void operator+=(size_t n)
Increases the counter of performed by n.
size_t m_maxVal
The number of iterations.
ProgressBar(size_t max_val, string prefix="")
Ctor.
int m_percent
The current progress in percent.
static void setProgressCallback(ProgressCallbackPtr)
Registers a callback that is called with the new value when the percentage of the progress changed.
void print_bar()
Prints the output.
string m_prefix
The prefix string.
static PacmanProgressCallbackPtr m_progressCallback
static void setProgressCallback(ProgressCallbackPtr)
Registers a callback that is called with the new value when the percentage of the progress changed.
void operator++()
Increases the counter of performed iterations.
virtual ~PacmanProgressBar()
size_t m_maxVal
The number of iterations.
size_t m_currentVal
The current counter.
size_t m_currentVal
The current counter value.
string m_prefix
The prefix string.
size_t m_currentVal
The current counter.
void print_bar()
Prints the output.
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 operator++()
Increases the counter of performed iterations.
stringstream m_stream
A string stream for output generation.
void(* ProgressCallbackPtr)(int)
A class to manage progress information output for process where the number of performed operations is...
string m_fillstring
A fill string for correct output alignment.
boost::mutex m_mutex
A mutex object for counter increment (for parallel executions)
string m_prefix
The prefix string.
static PacmanProgressTitleCallbackPtr m_titleCallback
A progress counter class.
boost::mutex m_mutex
A mutex object for counter increment (for parallel executions)
boost::mutex m_mutex
A mutex object for counter increment (for parallel executions)
void print_progress()
Prints the current state.
void(* PacmanProgressTitleCallbackPtr)(string)
void(* ProgressTitleCallbackPtr)(string)
static ProgressCallbackPtr m_progressCallback
lvr2
Author(s): Thomas Wiemann
, Sebastian Pütz , Alexander Mock , Lars Kiesow , Lukas Kalbertodt , Tristan Igelbrink , Johan M. von Behren , Dominik Feldschnieders , Alexander Löhr
autogenerated on Wed Mar 2 2022 00:37:24