zz::log::ProgBar Class Reference

The Progress bar class. For simple progress bar. More...

#include <zupply.hpp>

Public Member Functions

 ProgBar (unsigned range=100, std::string info="")
 Constructor of ProgBar. More...
 
 ~ProgBar ()
 Destructor will stop background thread.
 
void step (unsigned size=1)
 Step forward for the progress. More...
 
void stop ()
 Stop the progress bar. Don't call this manully unless you know what u r doing. This will automatically be triggered when progress reach 100%.
 

Detailed Description

The Progress bar class. For simple progress bar.

Constructor & Destructor Documentation

zz::log::ProgBar::ProgBar ( unsigned  range = 100,
std::string  info = "" 
)

Constructor of ProgBar.

Parameters
rangeNumber of tasks to finish
infoInfo message to show

Member Function Documentation

void zz::log::ProgBar::step ( unsigned  size = 1)

Step forward for the progress.

Parameters
sizeStep size, indicate how much work done in this step

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