C++ Utils  0.1
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Defines
Public Member Functions
utils::Progress Class Reference

#include <progress.h>

List of all members.

Public Member Functions

 Progress (unsigned long total=100)
void setTotal (unsigned long total)
void set (unsigned long current)
void update (unsigned long current)
void update ()
void increment ()
void clear ()

Constructor & Destructor Documentation

utils::Progress::Progress ( unsigned long  total = 100) [inline]

Member Function Documentation

void utils::Progress::clear ( ) [inline]

Removes the progress bar from the output

void utils::Progress::increment ( ) [inline]

Updates the progress bar and increments it by one

void utils::Progress::set ( unsigned long  current) [inline]

Set the current value of the progress bar without updating the screen

void utils::Progress::setTotal ( unsigned long  total) [inline]

Set a new total value Does not update the progress bar

void utils::Progress::update ( unsigned long  current) [inline]

Update the progress bar

If current >= total a newline is printed and it is no longer possible to update screen

void utils::Progress::update ( ) [inline]

Updates the progress bar but does not change the current value


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Defines