CARMA C++
Center.h
Go to the documentation of this file.
1 #ifndef SZA_UTIL_CENTER_H
2 #define SZA_UTIL_CENTER_H
3 
11 #include "carma/szautil/AntNum.h"
12 #include "carma/szautil/Source.h"
13 
14 #include "carma/szaarrayutils/source.h"
15 
16 namespace sza {
17  namespace util {
18 
19  class Center {
20  public:
21 
25  Center(sza::array::SourceId srcId,
26  AntNum::Id antennas=AntNum::ANTNONE);
27 
31  virtual ~Center();
32 
36  void addAntennas(AntNum::Id);
37 
41  void removeAntennas(AntNum::Id);
42 
47  AntNum::Id getAntennas();
48 
52  bool isEmpty();
53 
58  bool isSet(AntNum::Id antennas);
59 
63  std::string getName();
64 
68  unsigned getCatalogNumber();
69 
70  /*
71  * Return the type of this pointing center
72  */
73  sza::array::SourceType getType();
74 
78  double* getEphemerisCache();
79 
83  sza::array::SourceId* getSourceId();
84 
89  sza::array::CacheWindow* getWindow();
90 
94  sza::util::Source* getSource();
95 
96  private:
97 
98  sza::array::SourceId srcId_;
99  AntNum::Id antennas_;
100 
101  // Quadratic interpolation cache for ephemeris sources
102 
103  double ephem_[3];
104 
105  // A struct for specifying the time window over which the last
106  // cached ephemeris values are valid.
107 
108  sza::array::CacheWindow window_;
109 
110  // An object for managing source ephemerides.
111 
112  sza::util::Source source_;
113 
114  }; // End class Center
115 
116  } // End namespace util
117 } // End namespace sza
118 
119 
120 
121 #endif // End #ifndef SZA_UTIL_CENTER_H
Tagged: Fri Nov 14 12:39:31 UTC 2003.
The following class is used to record details about the current source trajectory.
Definition: Source.h:31
Id
Enumerate known receivers.
Definition: AntNum.h:35