CBinaryDataFlags.h
Go to the documentation of this file.00001
00002 #ifndef CBinaryDataFlags_H
00003 #define CBinaryDataFlags_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 BinaryDataFlagsMod
00055 {
00058
00059 const char *const revision = "-1";
00060 const int version = 1;
00061
00062 enum BinaryDataFlags
00063 {
00064 INTEGRATION_FULLY_BLANKED
00065 ,
00066 WVR_APC
00067 ,
00068 CORRELATOR_MISSING_STATUS
00069 ,
00070 MISSING_ANTENNA_EVENT
00071 ,
00072 DELTA_SIGMA_OVERFLOW
00073 ,
00074 DELAY_CORRECTION_NOT_APPLIED
00075 ,
00076 SYNCRONIZATION_ERROR
00077 ,
00078 FFT_OVERFLOW
00079 ,
00080 TFB_SCALING_FACTOR_NOT_RETRIEVED
00082 ,
00083 ZERO_LAG_NOT_RECEIVED
00084 ,
00085 SIGMA_OVERFLOW
00086 ,
00087 UNUSABLE_CAI_OUTPUT
00088 ,
00089 QC_FAILED
00090 ,
00091 NOISY_TDM_CHANNELS
00092 ,
00093 SPECTRAL_NORMALIZATION_FAILED
00094 ,
00095 DROPPED_PACKETS
00096 ,
00097 DETECTOR_SATURATED
00098 ,
00099 NO_DATA_FROM_DIGITAL_POWER_METER
00100 ,
00101 RESERVED_18
00102 ,
00103 RESERVED_19
00104 ,
00105 RESERVED_20
00106 ,
00107 RESERVED_21
00108 ,
00109 RESERVED_22
00110 ,
00111 RESERVED_23
00112 ,
00113 RESERVED_24
00114 ,
00115 RESERVED_25
00116 ,
00117 RESERVED_26
00118 ,
00119 RESERVED_27
00120 ,
00121 RESERVED_28
00122 ,
00123 RESERVED_29
00124 ,
00125 RESERVED_30
00126 ,
00127 ALL_PURPOSE_ERROR
00129 };
00130 typedef BinaryDataFlags &BinaryDataFlags_out;
00131 }
00132 #endif
00133
00134 namespace BinaryDataFlagsMod {
00135 std::ostream & operator << ( std::ostream & out, const BinaryDataFlags& value);
00136 std::istream & operator >> ( std::istream & in , BinaryDataFlags& value );
00137 }
00138
00143 class CBinaryDataFlags {
00144 public:
00145
00150 static const std::string& sINTEGRATION_FULLY_BLANKED;
00152 static const std::string& sWVR_APC;
00154 static const std::string& sCORRELATOR_MISSING_STATUS;
00156 static const std::string& sMISSING_ANTENNA_EVENT;
00158 static const std::string& sDELTA_SIGMA_OVERFLOW;
00160 static const std::string& sDELAY_CORRECTION_NOT_APPLIED;
00162 static const std::string& sSYNCRONIZATION_ERROR;
00164 static const std::string& sFFT_OVERFLOW;
00166 static const std::string& sTFB_SCALING_FACTOR_NOT_RETRIEVED;
00168 static const std::string& sZERO_LAG_NOT_RECEIVED;
00170 static const std::string& sSIGMA_OVERFLOW;
00172 static const std::string& sUNUSABLE_CAI_OUTPUT;
00174 static const std::string& sQC_FAILED;
00176 static const std::string& sNOISY_TDM_CHANNELS;
00178 static const std::string& sSPECTRAL_NORMALIZATION_FAILED;
00180 static const std::string& sDROPPED_PACKETS;
00182 static const std::string& sDETECTOR_SATURATED;
00184 static const std::string& sNO_DATA_FROM_DIGITAL_POWER_METER;
00186 static const std::string& sRESERVED_18;
00188 static const std::string& sRESERVED_19;
00190 static const std::string& sRESERVED_20;
00192 static const std::string& sRESERVED_21;
00194 static const std::string& sRESERVED_22;
00196 static const std::string& sRESERVED_23;
00198 static const std::string& sRESERVED_24;
00200 static const std::string& sRESERVED_25;
00202 static const std::string& sRESERVED_26;
00204 static const std::string& sRESERVED_27;
00206 static const std::string& sRESERVED_28;
00208 static const std::string& sRESERVED_29;
00210 static const std::string& sRESERVED_30;
00212 static const std::string& sALL_PURPOSE_ERROR;
00219 static int version() ;
00220
00221
00227 static std::string revision() ;
00228
00229
00234 static unsigned int size() ;
00235
00236
00242 static std::string name(const BinaryDataFlagsMod::BinaryDataFlags& e);
00243
00247 static std::string toString(const BinaryDataFlagsMod::BinaryDataFlags& f) { return name(f); }
00248
00254 static const std::vector<std::string> names();
00255
00256
00257
00258 static BinaryDataFlagsMod::BinaryDataFlags newBinaryDataFlags(const std::string& name);
00259
00265 static BinaryDataFlagsMod::BinaryDataFlags literal(const std::string& name);
00266
00272 static BinaryDataFlagsMod::BinaryDataFlags from_int(unsigned int i);
00273
00274
00275 private:
00276
00277 CBinaryDataFlags();
00278 CBinaryDataFlags(const CBinaryDataFlags&);
00279 CBinaryDataFlags& operator=(const CBinaryDataFlags&);
00280
00281 static std::string badString(const std::string& name) ;
00282 static std::string badInt(unsigned int i) ;
00283
00284 };
00285
00286 #endif