|
libintrovirt v0.57.4
IntroVirt introspection library
|
Class for displaying a progress bar. More...
#include <ProgressBar.hh>
Public Member Functions | |
| void | draw (float percentComplete) |
| Redraw the progress bar with the specified percent complete. | |
| void | clear () |
| Clear the progress bar line. | |
| void | complete () |
| Set the progress bar to 100%. | |
| ProgressBar (uint16_t width=50, std::ostream &stream=std::cout) | |
| Construct a new ProgressBar. | |
| ~ProgressBar () | |
Class for displaying a progress bar.
| introvirt::ProgressBar::ProgressBar | ( | uint16_t | width = 50, |
| std::ostream & | stream = std::cout |
||
| ) |
Construct a new ProgressBar.
| width | The number of characters wide to make the bar |
| stream | The stream to write to |
| introvirt::ProgressBar::~ProgressBar | ( | ) |
| void introvirt::ProgressBar::clear | ( | ) |
Clear the progress bar line.
| void introvirt::ProgressBar::complete | ( | ) |
Set the progress bar to 100%.
| void introvirt::ProgressBar::draw | ( | float | percentComplete | ) |
Redraw the progress bar with the specified percent complete.
| percentComplete |