10#include <indicators/progress_bar.hpp>
29 ProgressBar(
const std::string& prefix,
size_t numOperations);
35 void set(
size_t count);
44 static constexpr size_t kMaxWidth = 80;
45 indicators::ProgressBar bar_;
void set(size_t count)
Sets progress to the absolute value count and redraws the bar.
void increment(size_t count=1)
Advances progress by count (default 1) and redraws the bar.
size_t getCurrentProgress()
Returns the current absolute progress count (not a percentage).
ProgressBar(const std::string &prefix, size_t numOperations)
Constructs the progress bar and renders its initial (zero-progress) state.