#include <percent.h>
Public Methods | |
Percent () | |
Constructor. More... | |
~Percent () | |
Destructor. More... | |
void | create (const int total, const int step) |
Calculate the new percent value at each iteration. More... | |
bool | is_new () |
Return true if new value if different of old value, false otherwise. More... | |
void | progress () |
Write the percent progression. More... | |
void | update () |
Update of percent values. More... | |
percent | give_new () |
Give the new percent value. More... | |
percent | give_old () |
Give the old percent value. More... | |
Private Attributes | |
percent | old |
percent | nw |
|
Constructor.
|
|
Destructor.
|
|
Calculate the new percent value at each iteration.
|
|
Give the new percent value.
|
|
Give the old percent value.
|
|
Return true if new value if different of old value, false otherwise.
|
|
Write the percent progression.
|
|
Update of percent values.
|
|
New percent value |
|
Old percent value |