My Project
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros Pages
Percent.h
Go to the documentation of this file.
1 // $Id: Percent.h,v 1.1 2009/08/17 21:21:07 eml Exp $
2 
3 #ifndef GCP_UTIL_PERCENT_H
4 #define GCP_UTIL_PERCENT_H
5 
15 #include "gcp/util/common/ConformableQuantity.h"
16 
17 namespace gcp {
18  namespace util {
19 
20  class Percent : public ConformableQuantity {
21  public:
22 
23  class Max1 {};
24  class Max100 {};
25 
29  Percent();
30  Percent(const Max1& unit, double percent);
31  Percent(const Max100& unit, double percent);
32 
36  virtual ~Percent();
37 
38  void setPercentMax1(double percent);
39  void setPercentMax100(double percent);
40 
41  double percentMax1();
42  double percentMax100();
43 
44  private:
45 
46  double percentMax1_;
47 
48  }; // End class Percent
49 
50  } // End namespace util
51 } // End namespace gcp
52 
53 
54 
55 #endif // End #ifndef GCP_UTIL_PERCENT_H
Definition: ConformableQuantity.h:16
Definition: Percent.h:23
Definition: Percent.h:20
Definition: Percent.h:24
Percent()
Definition: Percent.cc:10
virtual ~Percent()
Definition: Percent.cc:28