CARMA C++
Percent.h
Go to the documentation of this file.
1 // $Id: Percent.h,v 1.1 2010/12/13 21:06:31 eml Exp $
2 
3 #ifndef SZA_UTIL_PERCENT_H
4 #define SZA_UTIL_PERCENT_H
5 
15 #include "carma/szautil/ConformableQuantity.h"
16 
17 namespace sza {
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 sza
52 
53 
54 
55 #endif // End #ifndef SZA_UTIL_PERCENT_H