libintrovirt v0.57.4
IntroVirt introspection library
Loading...
Searching...
No Matches
introvirt::ProgressBar Class Referencefinal

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 ()
 

Detailed Description

Class for displaying a progress bar.

Examples
ivwritefile.cc.

Constructor & Destructor Documentation

◆ ProgressBar()

introvirt::ProgressBar::ProgressBar ( uint16_t  width = 50,
std::ostream &  stream = std::cout 
)

Construct a new ProgressBar.

Parameters
widthThe number of characters wide to make the bar
streamThe stream to write to

◆ ~ProgressBar()

introvirt::ProgressBar::~ProgressBar ( )

Member Function Documentation

◆ clear()

void introvirt::ProgressBar::clear ( )

Clear the progress bar line.

◆ complete()

void introvirt::ProgressBar::complete ( )

Set the progress bar to 100%.

Examples
ivwritefile.cc.

◆ draw()

void introvirt::ProgressBar::draw ( float  percentComplete)

Redraw the progress bar with the specified percent complete.

Parameters
percentComplete
Examples
ivwritefile.cc.

The documentation for this class was generated from the following file: