CARMA C++
Pad.h
Go to the documentation of this file.
1 
10 #ifndef CARMA_SERVICES_PAD_H
11 #define CARMA_SERVICES_PAD_H
12 
13 #include "carma/services/Length.h"
15 #include "carma/services/stringConstants.h"
16 
17 namespace carma {
18 namespace services {
19 
25  class Pad {
26  public:
27 
36  Pad(const std::string& observatory = CARMA_OBSERVATORY ,
37  const std::string& pad = REFERENCE );
38 
39 
57  Pad(const std::string& observatory, const std::string& pad,
58  const carma::services::Location& padLocation,
59  const carma::services::Location& arrayReference,
60  const std::string& arrayConfigs
61  );
62 
63  virtual ~Pad();
64 
69  {
70  return location_;
71  }
72 
77  {
78  return reference_;
79  }
80 
86  std::vector<carma::services::Length*> getEnu() const
87  {
88  return enu_;
89  }
90 
94  std::string getName() const
95  {
96  return name_;
97  }
98 
107  unsigned short getPadNo() const;
108 
114  std::vector<std::string> getArrayConfigs() const
115  {
116  return arrayConfigs_;
117  }
118 
123  bool isInArrayConfig(const std::string& array);
124 
128  std::string toString() const;
129 
130  private:
131 
135  carma::services::Location location_;
136 
140  carma::services::Location reference_;
141 
145  std::string name_;
146 
150  std::string observatory_;
151 
156  std::vector<carma::services::Length*> enu_;
157 
161  std::vector<std::string> arrayConfigs_;
162 
163 
164  }; // end class Pad
165 
166  } // end namespace services
167 } // end namespace carma
168 
169 
170 #endif
carma::services::Location getReference() const
Definition: Pad.h:76
Pad(const std::string &observatory=CARMA_OBSERVATORY, const std::string &pad=REFERENCE)
Constructor using observatory name and pad designation from the catalog that should live in CARMA/con...
std::vector< carma::services::Length * > getEnu() const
Definition: Pad.h:86
This class specifies an antenna pad or station with coordinates, name, and array configuration member...
Definition: Pad.h:25
std::string getName() const
Definition: Pad.h:94
Representation of Length in any units.
Location specifies a location (observatory if you wish) on planet earth, as longitude, latitude, and altitude above sea-level.
Definition: Location.h:32
unsigned short getPadNo() const
std::vector< std::string > getArrayConfigs() const
Definition: Pad.h:114
carma::services::Location getLocation() const
Definition: Pad.h:68
std::string toString() const
bool isInArrayConfig(const std::string &array)