CARMA C++
ConformableQuantity.h
1 #ifndef SZA_UTIL_CONFORMABLEQUANTITY_H
2 #define SZA_UTIL_CONFORMABLEQUANTITY_H
3 
12 
13 namespace sza {
14  namespace util {
15 
16  // A pure interface for unit'ed quantities
17 
18  class ConformableQuantity {
19  public:
20 
24  ConformableQuantity() {};
25 
29  virtual ~ConformableQuantity() {};
30 
31  virtual void initialize() {};
32 
33  bool isFinite() {
34  return finite_;
35  }
36 
37  protected:
38 
39  virtual void setVal(double val, std::string units) {
40  ThrowError("Undefined call to base-class setVal method");
41  }
42 
43  void setFinite(bool finite) {
44  finite_ = finite;
45  }
46 
47  bool finite_;
48 
49  }; // End class ConformableQuantity
50 
51  } // End namespace util
52 } // End namespace sza
53 
54 
55 
56 #endif // End #ifndef SZA_UTIL_CONFORMABLEQUANTITY_H
Tagged: Fri Nov 14 12:39:33 UTC 2003.