|
Library of Assembled Shared Sources
|
Prints a progress indication to console. More...
#include <progress_indicator.h>
Public Member Functions | |
| ProgressIndicator (const std::string &iDescription, size_t iConsoleWidth=80) | |
| ~ProgressIndicator () | |
| print final message on destruction | |
| void | operator() (double iProgress) |
| update progress indicator | |
Prints a progress indication to console.
Definition at line 70 of file progress_indicator.h.
| lass::util::ProgressIndicator::ProgressIndicator | ( | const std::string & | iDescription, |
| size_t | iConsoleWidth = 80 ) |
| iDescriptor | description printed at begin of the line |
| iConsoleWidth | maximum number of characters on one console text line (default=80) |
Definition at line 55 of file progress_indicator.cpp.
| void lass::util::ProgressIndicator::operator() | ( | double | iProgress | ) |
update progress indicator
| iProgress | value in range [0, 1] |
Definition at line 79 of file progress_indicator.cpp.
References lass::num::clamp(), and lass::num::lerp().