CARMA C++
Global.h
Go to the documentation of this file.
1 
14 #include <string>
15 
16 #ifndef CARMA_SERVICES_GLOBAL_H
17 #define CARMA_SERVICES_GLOBAL_H
18 
19 namespace carma {
20  namespace services {
21 
22 
30  class Global {
31  public:
32 
36  // we follow the "Rauch rule" here: "no mutator, no get prefix"
37  static unsigned short maxAntennas() { return MAX_ANT; }
38 
42  static unsigned short nSzaAntennas() { return N_SZA_ANT; }
43 
47  static unsigned short nOvroAntennas() { return N_OVRO_ANT; }
48 
52  static unsigned short nBimaAntennas() { return N_BIMA_ANT; }
53 
57  static unsigned short nWidebandBands() { return N_WB_BANDS; }
58 
62  static unsigned short nSpectralLineBands() { return N_SL_BANDS; }
63 
67  static unsigned short nWidebandStations() { return N_WB_STATIONS; }
68 
72  static unsigned short nSpectralStations() { return N_SL_STATIONS; }
73 
77  static unsigned short nAstroBands() { return 24; }
78 
82  static unsigned short nAstroInputs() { return 32; }
83 
84  private:
86  static const unsigned short MAX_ANT = 23;
87 
89  // prefix N corresponds to Style Rule 3-21.
90  static const unsigned short N_SZA_ANT = 8;
91 
93  static const unsigned short N_OVRO_ANT = 6;
94 
96  static const unsigned short N_BIMA_ANT = 9;
97 
99  static const unsigned short N_WB_BANDS = 16;
100 
102  static const unsigned short N_SL_BANDS = 8;
103 
105  static const unsigned short N_WB_STATIONS = 8;
106 
108  static const unsigned short N_SL_STATIONS = 15;
109 
111  Global();
112 
114  ~Global();
115 
116  };
117 
118  }
119 } // End namespace carma::services
120 
121 #endif // CARMA_SERVICES_GLOBAL_H
The Global class contains methods that return &quot;fixed&quot; CARMA values, such as the numbers of each type ...
Definition: Global.h:30
static unsigned short nWidebandStations()
Definition: Global.h:67
static unsigned short nBimaAntennas()
Definition: Global.h:52
static unsigned short nAstroBands()
Definition: Global.h:77
static unsigned short nAstroInputs()
Definition: Global.h:82
static unsigned short nSpectralLineBands()
Definition: Global.h:62
static unsigned short nSpectralStations()
Definition: Global.h:72
static unsigned short nOvroAntennas()
Definition: Global.h:47
static unsigned short nWidebandBands()
Definition: Global.h:57
static unsigned short nSzaAntennas()
Definition: Global.h:42
static unsigned short maxAntennas()
Definition: Global.h:37