CScanIntent.h
Go to the documentation of this file.00001
00002 #ifndef CScanIntent_H
00003 #define CScanIntent_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 ScanIntentMod
00055 {
00058
00059 const char *const revision = "-1";
00060 const int version = 1;
00061
00062 enum ScanIntent
00063 {
00064 CALIBRATE_AMPLI
00065 ,
00066 CALIBRATE_ATMOSPHERE
00067 ,
00068 CALIBRATE_BANDPASS
00069 ,
00070 CALIBRATE_DELAY
00071 ,
00072 CALIBRATE_FLUX
00073 ,
00074 CALIBRATE_FOCUS
00075 ,
00076 CALIBRATE_FOCUS_X
00077 ,
00078 CALIBRATE_FOCUS_Y
00079 ,
00080 CALIBRATE_PHASE
00081 ,
00082 CALIBRATE_POINTING
00083 ,
00084 CALIBRATE_POLARIZATION
00085 ,
00086 CALIBRATE_SIDEBAND_RATIO
00087 ,
00088 CALIBRATE_WVR
00089 ,
00090 DO_SKYDIP
00091 ,
00092 MAP_ANTENNA_SURFACE
00093 ,
00094 MAP_PRIMARY_BEAM
00095 ,
00096 OBSERVE_TARGET
00097 ,
00098 CALIBRATE_POL_LEAKAGE
00099 ,
00100 CALIBRATE_POL_ANGLE
00101 ,
00102 TEST
00103 ,
00104 UNSPECIFIED
00105 ,
00106 CALIBRATE_ANTENNA_POSITION
00107 ,
00108 CALIBRATE_ANTENNA_PHASE
00109 ,
00110 MEASURE_RFI
00111 ,
00112 CALIBRATE_ANTENNA_POINTING_MODEL
00113 ,
00114 SYSTEM_CONFIGURATION
00115 ,
00116 CALIBRATE_APPPHASE_ACTIVE
00117 ,
00118 CALIBRATE_APPPHASE_PASSIVE
00119 ,
00120 OBSERVE_CHECK_SOURCE
00121 ,
00122 CALIBRATE_DIFFGAIN
00124 };
00125 typedef ScanIntent &ScanIntent_out;
00126 }
00127 #endif
00128
00129 namespace ScanIntentMod {
00130 std::ostream & operator << ( std::ostream & out, const ScanIntent& value);
00131 std::istream & operator >> ( std::istream & in , ScanIntent& value );
00132 }
00133
00138 class CScanIntent {
00139 public:
00140
00145 static const std::string& sCALIBRATE_AMPLI;
00147 static const std::string& sCALIBRATE_ATMOSPHERE;
00149 static const std::string& sCALIBRATE_BANDPASS;
00151 static const std::string& sCALIBRATE_DELAY;
00153 static const std::string& sCALIBRATE_FLUX;
00155 static const std::string& sCALIBRATE_FOCUS;
00157 static const std::string& sCALIBRATE_FOCUS_X;
00159 static const std::string& sCALIBRATE_FOCUS_Y;
00161 static const std::string& sCALIBRATE_PHASE;
00163 static const std::string& sCALIBRATE_POINTING;
00165 static const std::string& sCALIBRATE_POLARIZATION;
00167 static const std::string& sCALIBRATE_SIDEBAND_RATIO;
00169 static const std::string& sCALIBRATE_WVR;
00171 static const std::string& sDO_SKYDIP;
00173 static const std::string& sMAP_ANTENNA_SURFACE;
00175 static const std::string& sMAP_PRIMARY_BEAM;
00177 static const std::string& sOBSERVE_TARGET;
00179 static const std::string& sCALIBRATE_POL_LEAKAGE;
00181 static const std::string& sCALIBRATE_POL_ANGLE;
00183 static const std::string& sTEST;
00185 static const std::string& sUNSPECIFIED;
00187 static const std::string& sCALIBRATE_ANTENNA_POSITION;
00189 static const std::string& sCALIBRATE_ANTENNA_PHASE;
00191 static const std::string& sMEASURE_RFI;
00193 static const std::string& sCALIBRATE_ANTENNA_POINTING_MODEL;
00195 static const std::string& sSYSTEM_CONFIGURATION;
00197 static const std::string& sCALIBRATE_APPPHASE_ACTIVE;
00199 static const std::string& sCALIBRATE_APPPHASE_PASSIVE;
00201 static const std::string& sOBSERVE_CHECK_SOURCE;
00203 static const std::string& sCALIBRATE_DIFFGAIN;
00210 static int version() ;
00211
00212
00218 static std::string revision() ;
00219
00220
00225 static unsigned int size() ;
00226
00227
00233 static std::string name(const ScanIntentMod::ScanIntent& e);
00234
00238 static std::string toString(const ScanIntentMod::ScanIntent& f) { return name(f); }
00239
00245 static const std::vector<std::string> names();
00246
00247
00248
00249 static ScanIntentMod::ScanIntent newScanIntent(const std::string& name);
00250
00256 static ScanIntentMod::ScanIntent literal(const std::string& name);
00257
00263 static ScanIntentMod::ScanIntent from_int(unsigned int i);
00264
00265
00266 private:
00267
00268 CScanIntent();
00269 CScanIntent(const CScanIntent&);
00270 CScanIntent& operator=(const CScanIntent&);
00271
00272 static std::string badString(const std::string& name) ;
00273 static std::string badInt(unsigned int i) ;
00274
00275 };
00276
00277 #endif