Debian Codegraph @

Oodle/src/CStatusDisplay.h

raw
1 #ifndef _CSTATUSDISPLAY_
2 #define _CSTATUSDISPLAY_
3
4 #include <string>
5 using namespace std;
6
7 class CStatusDisplay
8 {
9 public:
10 CStatusDisplay(bool bar = true, int max = 100);
11
12 void hasProgress(bool bar = true);
13 void setProgressMax(int max);
14 void setProgress(double complete);
15 void setMajorStatus(const string &s);
16 void setMinorStatus(const string &s);
17
18 void addMax(int i = 1);
19 void addProgress(int i = 1);
20
21 int getProgressMax();
22 const string& getMajorStatus();
23 const string& getMinorStatus();
24 int getProgressCurrent();
25 double getProgessFrac();
26
27 private:
28 bool prog;
29 int current, max;
30 string majorStatus;
31 string minorStatus;
32 };
33
34 #endif