CBinaryDataFlags.h

Go to the documentation of this file.
00001 
00002 #ifndef CBinaryDataFlags_H
00003 #define CBinaryDataFlags_H
00004 
00005 /*
00006  * ALMA - Atacama Large Millimeter Array
00007  * (c) European Southern Observatory, 2002
00008  * (c) Associated Universities Inc., 2002
00009  * Copyright by ESO (in the framework of the ALMA collaboration),
00010  * Copyright by AUI (in the framework of the ALMA collaboration),
00011  * All rights reserved.
00012  * 
00013  * This library is free software; you can redistribute it and/or
00014  * modify it under the terms of the GNU Lesser General Public
00015  * License as published by the Free software Foundation; either
00016  * version 2.1 of the License, or (at your option) any later version.
00017  * 
00018  * This library is distributed in the hope that it will be useful,
00019  * but WITHOUT ANY WARRANTY, without even the implied warranty of
00020  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00021  * Lesser General Public License for more details.
00022  * 
00023  * You should have received a copy of the GNU Lesser General Public
00024  * License along with this library; if not, write to the Free Software
00025  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
00026  * MA 02111-1307  USA
00027  * 
00028  * /////////////////////////////////////////////////////////////////
00029  * // WARNING!  DO NOT MODIFY THIS FILE!                          //
00030  * //  ---------------------------------------------------------  //
00031  * // | This is generated code!  Do not modify this file.       | //
00032  * // | Any changes will be lost when the file is re-generated. | //
00033  * //  ---------------------------------------------------------  //
00034  * /////////////////////////////////////////////////////////////////
00035  *
00036  * File CBinaryDataFlags.h
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 // This part mimics the behaviour of 
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         // Create a BinaryDataFlags enumeration object by specifying its name.
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     /* Not Implemented.  This is a pure static class. */
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 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1