CARMA C++
Observatory.h
Go to the documentation of this file.
1 
10 #ifndef CARMA_SERVICES_OBSERVATORY_H
11 #define CARMA_SERVICES_OBSERVATORY_H
12 
15 #include "carma/services/Pad.h"
16 #include "carma/services/stringConstants.h"
17 #include "carma/services/Types.h"
18 #include <map>
19 #include <vector>
20 
21 namespace carma {
22 namespace services {
23 
34  class Observatory {
35  public:
36 
48  Observatory(const std::string& observatory = CARMA_OBSERVATORY );
49 
53  virtual ~Observatory();
54 
58  std::string getName() const
59  {
60  return name_;
61  }
62 
68  {
69  return reference_;
70  }
71 
79 
85 
94  const carma::services::Pad getPad(const std::string& name);
95 
100  std::map<std::string, carma::services::Pad> getPadMap() const
101  {
102  return padMap_;
103  }
104 
110 
116 
125  const std::vector<carma::services::Pad> getPadsInConfig(
126  const std::string& arrayConfig);
127 
132  int numConfigs() const
133  {
134  return numConfigs_ ;
135  }
136 
140  int numPads() const
141  {
142  return padMap_.size();
143  }
150  int numPadsInConfig(const std::string& arrayConfig);
151 
158  int numBaselinesInConfig(const std::string& arrayConfig);
159 
163  std::string toString() const;
164 
165  private:
166  std::string name_;
167  int numConfigs_;
168  std::map<std::string, carma::services::Pad> padMap_;
169  carma::services::Location reference_;
170 
171  }; // end class Observatory
172 
173  }
174 }
175 
176 #endif
This class performs conversions between several different antenna coordinate systems.
std::string toString() const
virtual ~Observatory()
Destructor.
const carma::services::Pad getPad(const std::string &name)
Request a specific Pad by name.
This class specifies an antenna pad or station with coordinates, name, and array configuration member...
Definition: Pad.h:25
carma::services::AntennaCoordinates getReferenceCoordinates() const
Various type definitions for services classes.
Observatory(const std::string &observatory=CARMA_OBSERVATORY)
Constructor using a name from the Observatory.cat catalog that should live in CARMA/conf/catalogs/Obs...
carma::services::Location getReference() const
Definition: Observatory.h:67
int numBaselinesInConfig(const std::string &arrayConfig)
Location specifies a location (observatory if you wish) on planet earth, as longitude, latitude, and altitude above sea-level.
Definition: Location.h:32
std::map< std::string, carma::services::Pad > getPadMap() const
Definition: Observatory.h:100
int numPadsInConfig(const std::string &arrayConfig)
Tagged: Tue May 4 15:49:11 PDT 2004.
carma::services::PadIterator mapBegin() const
carma::services::PadIterator mapEnd() const
::std::map< ::std::string, carma::services::Pad >::const_iterator PadIterator
A const iterator over a map of Pads.
Definition: Types.h:257
const std::vector< carma::services::Pad > getPadsInConfig(const std::string &arrayConfig)
Get all the pads in a specific array configuration.
carma::services::Pad getReferencePad() const
Observatory specifies the parameters of a given observatory: name, reference location (longitude...
Definition: Observatory.h:34
std::string getName() const
Definition: Observatory.h:58