casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CBinaryDataFlags.h
Go to the documentation of this file.
1 
2 #ifndef CBinaryDataFlags_H
3 #define CBinaryDataFlags_H
4 
5 /*
6  * ALMA - Atacama Large Millimeter Array
7  * (c) European Southern Observatory, 2002
8  * (c) Associated Universities Inc., 2002
9  * Copyright by ESO (in the framework of the ALMA collaboration),
10  * Copyright by AUI (in the framework of the ALMA collaboration),
11  * All rights reserved.
12  *
13  * This library is free software; you can redistribute it and/or
14  * modify it under the terms of the GNU Lesser General Public
15  * License as published by the Free software Foundation; either
16  * version 2.1 of the License, or (at your option) any later version.
17  *
18  * This library is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY, without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21  * Lesser General Public License for more details.
22  *
23  * You should have received a copy of the GNU Lesser General Public
24  * License along with this library; if not, write to the Free Software
25  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
26  * MA 02111-1307 USA
27  *
28  * /////////////////////////////////////////////////////////////////
29  * // WARNING! DO NOT MODIFY THIS FILE! //
30  * // --------------------------------------------------------- //
31  * // | This is generated code! Do not modify this file. | //
32  * // | Any changes will be lost when the file is re-generated. | //
33  * // --------------------------------------------------------- //
34  * /////////////////////////////////////////////////////////////////
35  *
36  * File CBinaryDataFlags.h
37  */
38 
39 #ifndef __cplusplus
40 #error This is a C++ include file and cannot be used from plain C
41 #endif
42 
43 #include <iostream>
44 #include <string>
45 #include <vector>
49 #ifndef WITHOUT_ACS
50 #include <almaEnumerations_IFC.h>
51 #else
52 
53 // This part mimics the behaviour of
54 namespace BinaryDataFlagsMod
55 {
58 
59  const char *const revision = "-1";
60  const int version = 1;
61 
62  enum BinaryDataFlags
63  {
64  INTEGRATION_FULLY_BLANKED
65  ,
66  WVR_APC
67  ,
68  CORRELATOR_MISSING_STATUS
69  ,
70  MISSING_ANTENNA_EVENT
71  ,
72  DELTA_SIGMA_OVERFLOW
73  ,
74  DELAY_CORRECTION_NOT_APPLIED
75  ,
76  SYNCRONIZATION_ERROR
77  ,
78  FFT_OVERFLOW
79  ,
80  TFB_SCALING_FACTOR_NOT_RETRIEVED
82  ,
83  ZERO_LAG_NOT_RECEIVED
84  ,
85  SIGMA_OVERFLOW
86  ,
87  UNUSABLE_CAI_OUTPUT
88  ,
89  QC_FAILED
90  ,
91  NOISY_TDM_CHANNELS
92  ,
93  SPECTRAL_NORMALIZATION_FAILED
94  ,
95  DROPPED_PACKETS
96  ,
97  DETECTOR_SATURATED
98  ,
99  NO_DATA_FROM_DIGITAL_POWER_METER
100  ,
101  RESERVED_18
102  ,
103  RESERVED_19
104  ,
105  RESERVED_20
106  ,
107  RESERVED_21
108  ,
109  RESERVED_22
110  ,
111  RESERVED_23
112  ,
113  RESERVED_24
114  ,
115  RESERVED_25
116  ,
117  RESERVED_26
118  ,
119  RESERVED_27
120  ,
121  RESERVED_28
122  ,
123  RESERVED_29
124  ,
125  RESERVED_30
126  ,
127  ALL_PURPOSE_ERROR
129  };
130  typedef BinaryDataFlags &BinaryDataFlags_out;
131 }
132 #endif
133 
134 namespace BinaryDataFlagsMod {
135  std::ostream & operator << ( std::ostream & out, const BinaryDataFlags& value);
136  std::istream & operator >> ( std::istream & in , BinaryDataFlags& value );
137 }
138 
143 class CBinaryDataFlags {
144  public:
145 
150  static const std::string& sINTEGRATION_FULLY_BLANKED;
152  static const std::string& sWVR_APC;
154  static const std::string& sCORRELATOR_MISSING_STATUS;
156  static const std::string& sMISSING_ANTENNA_EVENT;
158  static const std::string& sDELTA_SIGMA_OVERFLOW;
160  static const std::string& sDELAY_CORRECTION_NOT_APPLIED;
162  static const std::string& sSYNCRONIZATION_ERROR;
164  static const std::string& sFFT_OVERFLOW;
166  static const std::string& sTFB_SCALING_FACTOR_NOT_RETRIEVED;
168  static const std::string& sZERO_LAG_NOT_RECEIVED;
170  static const std::string& sSIGMA_OVERFLOW;
172  static const std::string& sUNUSABLE_CAI_OUTPUT;
174  static const std::string& sQC_FAILED;
176  static const std::string& sNOISY_TDM_CHANNELS;
178  static const std::string& sSPECTRAL_NORMALIZATION_FAILED;
180  static const std::string& sDROPPED_PACKETS;
182  static const std::string& sDETECTOR_SATURATED;
184  static const std::string& sNO_DATA_FROM_DIGITAL_POWER_METER;
186  static const std::string& sRESERVED_18;
188  static const std::string& sRESERVED_19;
190  static const std::string& sRESERVED_20;
192  static const std::string& sRESERVED_21;
194  static const std::string& sRESERVED_22;
196  static const std::string& sRESERVED_23;
198  static const std::string& sRESERVED_24;
200  static const std::string& sRESERVED_25;
202  static const std::string& sRESERVED_26;
204  static const std::string& sRESERVED_27;
206  static const std::string& sRESERVED_28;
208  static const std::string& sRESERVED_29;
210  static const std::string& sRESERVED_30;
212  static const std::string& sALL_PURPOSE_ERROR;
219  static int version() ;
220 
221 
227  static std::string revision() ;
228 
229 
234  static unsigned int size() ;
235 
236 
242  static std::string name(const BinaryDataFlagsMod::BinaryDataFlags& e);
243 
247  static std::string toString(const BinaryDataFlagsMod::BinaryDataFlags& f) { return name(f); }
254  static const std::vector<std::string> names();
255 
256 
257  // Create a BinaryDataFlags enumeration object by specifying its name.
258  static BinaryDataFlagsMod::BinaryDataFlags newBinaryDataFlags(const std::string& name);
259 
265  static BinaryDataFlagsMod::BinaryDataFlags literal(const std::string& name);
266 
272  static BinaryDataFlagsMod::BinaryDataFlags from_int(unsigned int i);
273 
274 
275  private:
276  /* Not Implemented. This is a pure static class. */
280 
281  static std::string badString(const std::string& name) ;
282  static std::string badInt(unsigned int i) ;
283 
284 };
285 
286 #endif
static BinaryDataFlagsMod::BinaryDataFlags newBinaryDataFlags(const std::string &name)
Create a BinaryDataFlags enumeration object by specifying its name.
static std::string badString(const std::string &name)
static const std::string & sRESERVED_27
static const std::string & sNOISY_TDM_CHANNELS
static const std::string & sDETECTOR_SATURATED
static const std::string & sTFB_SCALING_FACTOR_NOT_RETRIEVED
static const std::string & sRESERVED_28
static unsigned int size()
Return the number of enumerators declared in BinaryDataFlagsMod::BinaryDataFlags. ...
static const std::string & sRESERVED_19
static const std::string & sMISSING_ANTENNA_EVENT
static const std::string & sRESERVED_18
static const std::string & sFFT_OVERFLOW
std::istream & operator>>(std::istream &in, BinaryDataFlags &value)
static const std::string & sSPECTRAL_NORMALIZATION_FAILED
A helper class for the enumeration BinaryDataFlags.
static std::string toString(const BinaryDataFlagsMod::BinaryDataFlags &f)
Equivalent to the name method.
static const std::string & sCORRELATOR_MISSING_STATUS
static const std::string & sSYNCRONIZATION_ERROR
static const std::string & sRESERVED_26
static const std::string & sRESERVED_25
std::ostream & operator<<(std::ostream &out, const BinaryDataFlags &value)
static const std::string & sRESERVED_24
static const std::string & sZERO_LAG_NOT_RECEIVED
static BinaryDataFlagsMod::BinaryDataFlags literal(const std::string &name)
static std::string name(const BinaryDataFlagsMod::BinaryDataFlags &e)
Returns an enumerator as a string.
static const std::string & sRESERVED_23
static const std::string & sRESERVED_20
static const std::string & sRESERVED_21
static const std::string & sRESERVED_29
static const std::string & sNO_DATA_FROM_DIGITAL_POWER_METER
static const std::string & sUNUSABLE_CAI_OUTPUT
CBinaryDataFlags & operator=(const CBinaryDataFlags &)
static int version()
Return the major version number as an int.
static const std::string & sDELTA_SIGMA_OVERFLOW
static const std::string & sALL_PURPOSE_ERROR
static const std::string & sWVR_APC
static const std::vector< std::string > names()
Returns vector of all the enumerators as strings.
static const std::string & sSIGMA_OVERFLOW
static const std::string & sDROPPED_PACKETS
const Double e
e and functions thereof:
static const std::string & sQC_FAILED
static const std::string & sINTEGRATION_FULLY_BLANKED
Enumerators as strings.
static const std::string & sDELAY_CORRECTION_NOT_APPLIED
static std::string badInt(unsigned int i)
static const std::string & sRESERVED_30
static const std::string & sRESERVED_22
static std::string revision()
Return the revision as a string.
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
static BinaryDataFlagsMod::BinaryDataFlags from_int(unsigned int i)