CARMA C++
Constants.h
1 #ifndef SZA_UTIL_CONSTANTS_H
2 #define SZA_UTIL_CONSTANTS_H
3 
11 #include "carma/szautil/Length.h"
12 #include "carma/szautil/Speed.h"
13 #include "carma/szautil/Temperature.h"
14 
15 namespace sza {
16  namespace util {
17 
18  class Constants {
19  public:
20 
21  static Temperature Tcmb_;
22  static const double hPlanckCgs_;
23  static const double kBoltzCgs_;
24  static const double JyPerCgs_;
25  static const double sigmaTCgs_;
26  static const double electronMassCgs_;
27  static const double protonMassCgs_;
28 
29  static Speed lightSpeed_;
30  static Length au_;
31  static Length defaultEarthRadius_;
32 
36  Constants();
37 
41  virtual ~Constants();
42 
43  virtual double cgs() {
44  return cgs_;
45  }
46 
47  virtual double si() {
48  return si_;
49  }
50 
51  protected:
52 
53  void setGgs(double cgs) {
54  cgs = cgs_;
55  }
56 
57  void setSi(double si) {
58  si = si_;
59  }
60 
61  private:
62 
63  double cgs_;
64  double si_;
65 
66  }; // End class Constants
67 
68  } // End namespace util
69 } // End namespace sza
70 
71 
72 
73 #endif // End #ifndef SZA_UTIL_CONSTANTS_H
Tagged: Wed Dec 1 23:39:12 PST 2004.