CAntennaMotionPattern.h
Go to the documentation of this file.00001
00002 #ifndef CAntennaMotionPattern_H
00003 #define CAntennaMotionPattern_H
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039 #ifndef __cplusplus
00040 #error This is a C++ include file and cannot be used from plain C
00041 #endif
00042
00043 #include <iostream>
00044 #include <string>
00045 #include <vector>
00049 #ifndef WITHOUT_ACS
00050 #include <almaEnumerations_IFC.h>
00051 #else
00052
00053
00054 namespace AntennaMotionPatternMod
00055 {
00058
00059 const char *const revision = "-1";
00060 const int version = 1;
00061
00062 enum AntennaMotionPattern
00063 {
00064 NONE
00065 ,
00066 CROSS_SCAN
00067 ,
00068 SPIRAL
00069 ,
00070 CIRCLE
00071 ,
00072 THREE_POINTS
00073 ,
00074 FOUR_POINTS
00075 ,
00076 FIVE_POINTS
00077 ,
00078 TEST
00079 ,
00080 UNSPECIFIED
00081 ,
00082 STAR
00083 ,
00084 LISSAJOUS
00086 };
00087 typedef AntennaMotionPattern &AntennaMotionPattern_out;
00088 }
00089 #endif
00090
00091 namespace AntennaMotionPatternMod {
00092 std::ostream & operator << ( std::ostream & out, const AntennaMotionPattern& value);
00093 std::istream & operator >> ( std::istream & in , AntennaMotionPattern& value );
00094 }
00095
00100 class CAntennaMotionPattern {
00101 public:
00102
00107 static const std::string& sNONE;
00109 static const std::string& sCROSS_SCAN;
00111 static const std::string& sSPIRAL;
00113 static const std::string& sCIRCLE;
00115 static const std::string& sTHREE_POINTS;
00117 static const std::string& sFOUR_POINTS;
00119 static const std::string& sFIVE_POINTS;
00121 static const std::string& sTEST;
00123 static const std::string& sUNSPECIFIED;
00125 static const std::string& sSTAR;
00127 static const std::string& sLISSAJOUS;
00134 static int version() ;
00135
00136
00142 static std::string revision() ;
00143
00144
00149 static unsigned int size() ;
00150
00151
00157 static std::string name(const AntennaMotionPatternMod::AntennaMotionPattern& e);
00158
00162 static std::string toString(const AntennaMotionPatternMod::AntennaMotionPattern& f) { return name(f); }
00163
00169 static const std::vector<std::string> names();
00170
00171
00172
00173 static AntennaMotionPatternMod::AntennaMotionPattern newAntennaMotionPattern(const std::string& name);
00174
00180 static AntennaMotionPatternMod::AntennaMotionPattern literal(const std::string& name);
00181
00187 static AntennaMotionPatternMod::AntennaMotionPattern from_int(unsigned int i);
00188
00189
00190 private:
00191
00192 CAntennaMotionPattern();
00193 CAntennaMotionPattern(const CAntennaMotionPattern&);
00194 CAntennaMotionPattern& operator=(const CAntennaMotionPattern&);
00195
00196 static std::string badString(const std::string& name) ;
00197 static std::string badInt(unsigned int i) ;
00198
00199 };
00200
00201 #endif