00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef PROGRESS_H
00019 #define PROGRESS_H
00020
00021 #include "../constants.h"
00022 #include "../scourge.h"
00023
00024 using namespace std;
00025
00029 class Progress {
00030 private:
00031 Scourge *scourge;
00032 int maxStatus;
00033 int status;
00034 bool clearScreen;
00035 bool center;
00036 bool opaque;
00037
00038 public:
00039 Progress(Scourge *scourge, int maxStatus, bool clearScreen=false, bool center=false, bool opaque=true);
00040 virtual ~Progress();
00041 void updateStatus(const char *message, bool updateScreen=true, int status=-1, int maxStatus=-1, int altStatus=-1);
00042 inline void setStatus( int status ) { this->status = status; }
00043 inline int getStatus() { return status; }
00044 };
00045
00046 #endif
00047