Progress tracking utility.
More...
#include <progress_tracking.h>
Progress tracking utility.
Definition at line 25 of file progress_tracking.h.
◆ ProgressTracking() [1/2]
Beatmup::ProgressTracking::ProgressTracking |
( |
| ) |
|
|
inline |
◆ ProgressTracking() [2/2]
Beatmup::ProgressTracking::ProgressTracking |
( |
unsigned int |
max | ) |
|
|
inline |
Definition at line 32 of file progress_tracking.h.
CustomPoint< numeric > max(const CustomPoint< numeric > &a, const CustomPoint< numeric > &b)
◆ reset()
void Beatmup::ProgressTracking::reset |
( |
unsigned int |
max | ) |
|
|
inline |
Resets the progress to zero.
- Parameters
-
[in] | max | New maximum progress |
Definition at line 38 of file progress_tracking.h.
◆ operator()()
void Beatmup::ProgressTracking::operator() |
( |
| ) |
|
|
inline |
◆ done()
bool Beatmup::ProgressTracking::done |
( |
| ) |
const |
|
inline |
◆ printOutProgressBar()
void Beatmup::ProgressTracking::printOutProgressBar |
( |
const unsigned int |
barLength = 40 | ) |
const |
Prints a fancy progress bar to standard output.
Designed to be called repeatedly: prints on the same line erasing the previously printed bar.
- Parameters
-
[in] | barLength | The length of the progress bar (number of characters) |
Definition at line 27 of file progress_tracking.cpp.
30 for (
unsigned int i = 0; i <
val; ++i)
32 for (
unsigned int i =
val; i < barLength - 2; ++i)
CustomPoint< numeric > min(const CustomPoint< numeric > &a, const CustomPoint< numeric > &b)
return(jlong) new Beatmup jlong jstring jint val
◆ progress
unsigned int Beatmup::ProgressTracking::progress |
|
private |
◆ maxProgress
unsigned int Beatmup::ProgressTracking::maxProgress |
|
private |
◆ DEVNULL
The documentation for this class was generated from the following files: