UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Progress.hpp
1 /* Progress.hpp */
2 /* $Id: Progress.hpp,v 1.2 2009/08/06 10:38:58 vlad Exp $ */
3 #ifndef __Progress_hpp
4 #define __Progress_hpp
5 
6 #include <mix/Types.h>
7 
8 /* Copied from Id: ZmProgress.H,v 1.2 1999/02/09 16:19:46 vlad Exp */
9 
10 
16 class Progress
17 {
18 public:
19 
21  Progress (const char* id = "unknown");
22 
24  virtual ~Progress ();
25 
27  void set_max (double max_value);
28 
30  void add_value (double incr_value);
31 
33  double scale (double fMax);
34  int scale (int iMax);
35 
37  bool check_limits ();
38 
40  virtual void set_limits (double min_value, double max_value);
41 
43  virtual void set_value (double cur_value);
44 
46  virtual void set_comment (const char* text);
47 
49  virtual Logic user_break ();
50 
51 protected:
52 
54  char *szName;
55 
57  double vMin;
58 
60  double vMax;
61 
63  double vCur;
64 
66  virtual void update ();
67 
68 };
69 
70 
71 #endif /* Progress.hpp */
virtual ~Progress()
virtual void update()
double vMax
Definition: Progress.hpp:60
char * szName
Definition: Progress.hpp:54
virtual void set_comment(const char *text)
virtual Logic user_break()
bool check_limits()
Progress(const char *id="unknown")
double scale(double fMax)
Definition: Progress.hpp:16
virtual void set_limits(double min_value, double max_value)
double vMin
Definition: Progress.hpp:57
void add_value(double incr_value)
void set_max(double max_value)
double vCur
Definition: Progress.hpp:63
virtual void set_value(double cur_value)