A simple ascii-art progress bar. More...
#include <Progress.h>
Public Member Functions | |
Progress (const std::string &title) | |
Create and draw the progress bar. More... | |
~Progress () | |
void | SetProgress (double frac) |
Update the progress fraction between zero and one. More... | |
void | Done () |
Call this when action is completed. More... | |
Protected Member Functions | |
std::string | FormatTime (double sec) const |
Protected Attributes | |
bool | fDone |
Has Done been called? More... | |
int | fIFrac |
What character are we on? Prevents unnecessary redraws. More... | |
time_t | fStart |
time_t | fPrevCall |
bool | fLive |
Is this bar live (drawable?) More... | |
Static Protected Attributes | |
static bool | fAnyLive = false |
Are any bars live? More... | |
A simple ascii-art progress bar.
Definition at line 9 of file Progress.h.
ana::Progress::Progress | ( | const std::string & | title | ) |
Create and draw the progress bar.
Definition at line 18 of file Progress.cxx.
ana::Progress::~Progress | ( | ) |
Definition at line 34 of file Progress.cxx.
void ana::Progress::Done | ( | ) |
Call this when action is completed.
Definition at line 91 of file Progress.cxx.
|
protected |
Definition at line 103 of file Progress.cxx.
void ana::Progress::SetProgress | ( | double | frac | ) |
Update the progress fraction between zero and one.
Definition at line 44 of file Progress.cxx.
|
staticprotected |
Are any bars live?
Definition at line 30 of file Progress.h.
|
protected |
Has Done been called?
Definition at line 22 of file Progress.h.
|
protected |
What character are we on? Prevents unnecessary redraws.
Definition at line 23 of file Progress.h.
|
protected |
Is this bar live (drawable?)
Definition at line 29 of file Progress.h.
|
protected |
Definition at line 26 of file Progress.h.
|
protected |
Definition at line 25 of file Progress.h.