CARMA C++
Power.h
Go to the documentation of this file.
1 #ifndef SZA_UTIL_POWER_H
2 #define SZA_UTIL_POWER_H
3 
11 #include "carma/szautil/ConformableQuantity.h"
12 
13 namespace sza {
14  namespace util {
15 
16  class Power : public ConformableQuantity {
17  public:
18 
19  class dBm {};
20 
24  Power();
25  Power(const dBm& units, double dBmPow);
26 
30  virtual ~Power();
31 
32  void setdBm(double dBmPow) {
33  dBm_ = dBmPow;
34  }
35 
36  double getdBm() {
37  return dBm_;
38  }
39 
40  private:
41 
42  void initialize();
43 
44  // The actual frequency, in dBm
45 
46  double dBm_;
47 
48  }; // End class Power
49 
50  } // End namespace util
51 } // End namespace sza
52 
53 
54 
55 #endif // End #ifndef SZA_UTIL_POWER_H