CARMA C++
Axis.h
1 #ifndef AXIS_H
2 #define AXIS_H
3 
11 namespace sza {
12  namespace antenna {
13  namespace control {
14 
15 
19  class Axis {
20 
21  public:
22 
26  enum Type {
27  NONE = 0x0,
28  AZ = 0x1,// Make these orthogonal bits, so that they can
29  // be OR'd together
30  EL = 0x2,
31  PA = 0x4,
32  ALL = AZ|EL|PA
33  } type_;
34 
38  Axis(Type type);
39 
43  bool isValidSingleAxis();
44 
45  }; // End class Axis
46 
47  }; // End namespace control
48  }; // End namespace antenna
49 }; // End namespace sza
50 
51 #endif // End #ifndef
The following class just enumerates valid axes.
Definition: Axis.h:19
Type
An enumerator to identify a valid axis.
Definition: Axis.h:26
bool isValidSingleAxis()
Return true if this represents a single telescope axis.
Axis(Type type)
Constructor.