CUV  0.9.201304091348
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | List of all members
ProgressBar Class Reference

A progressbar :-) More...

#include <progressbar.hpp>

Public Member Functions

 ProgressBar (long int i=100, const std::string &desc="Working", int cwidth=30)
 Constructor.
void inc (const char *info, int v=1)
 increase value of progressbar
void inc (int v=1)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. increase value of progressbar.
void finish (bool clear=false)
 call this when done.
void finish (char *s)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. call this when done.
void display (const char *info="")
 display a string when updating

Detailed Description

A progressbar :-)

Definition at line 15 of file progressbar.hpp.

Constructor & Destructor Documentation

ProgressBar::ProgressBar ( long int  i = 100,
const std::string &  desc = "Working",
int  cwidth = 30 
)

Constructor.

Parameters
inumber of expected steps
descwhat to show while working
cwidthof progress bar

Member Function Documentation

void ProgressBar::display ( const char *  info = "")

display a string when updating

Parameters
infothe string to be shown
void ProgressBar::finish ( bool  clear = false)

call this when done.

Parameters
clearclears line of progressbar
void ProgressBar::finish ( char *  s)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. call this when done.

Parameters
swrite this in the line of the progressbar
void ProgressBar::inc ( const char *  info,
int  v = 1 
)

increase value of progressbar

Parameters
infoshow this text additionally
vincrease this much
void ProgressBar::inc ( int  v = 1)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. increase value of progressbar.

Parameters
vincrease this much

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