casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CScanIntent.h
Go to the documentation of this file.
1 
2 #ifndef CScanIntent_H
3 #define CScanIntent_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 CScanIntent.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 ScanIntentMod
55 {
58 
59  const char *const revision = "-1";
60  const int version = 1;
61 
62  enum ScanIntent
63  {
64  CALIBRATE_AMPLI
65  ,
66  CALIBRATE_ATMOSPHERE
67  ,
68  CALIBRATE_BANDPASS
69  ,
70  CALIBRATE_DELAY
71  ,
72  CALIBRATE_FLUX
73  ,
74  CALIBRATE_FOCUS
75  ,
76  CALIBRATE_FOCUS_X
77  ,
78  CALIBRATE_FOCUS_Y
79  ,
80  CALIBRATE_PHASE
81  ,
82  CALIBRATE_POINTING
83  ,
84  CALIBRATE_POLARIZATION
85  ,
86  CALIBRATE_SIDEBAND_RATIO
87  ,
88  CALIBRATE_WVR
89  ,
90  DO_SKYDIP
91  ,
92  MAP_ANTENNA_SURFACE
93  ,
94  MAP_PRIMARY_BEAM
95  ,
96  OBSERVE_TARGET
97  ,
98  CALIBRATE_POL_LEAKAGE
99  ,
100  CALIBRATE_POL_ANGLE
101  ,
102  TEST
103  ,
104  UNSPECIFIED
105  ,
106  CALIBRATE_ANTENNA_POSITION
107  ,
108  CALIBRATE_ANTENNA_PHASE
109  ,
110  MEASURE_RFI
111  ,
112  CALIBRATE_ANTENNA_POINTING_MODEL
113  ,
114  SYSTEM_CONFIGURATION
115  ,
116  CALIBRATE_APPPHASE_ACTIVE
117  ,
118  CALIBRATE_APPPHASE_PASSIVE
119  ,
120  OBSERVE_CHECK_SOURCE
121  ,
122  CALIBRATE_DIFFGAIN
124  };
125  typedef ScanIntent &ScanIntent_out;
126 }
127 #endif
128 
129 namespace ScanIntentMod {
130  std::ostream & operator << ( std::ostream & out, const ScanIntent& value);
131  std::istream & operator >> ( std::istream & in , ScanIntent& value );
132 }
133 
138 class CScanIntent {
139  public:
140 
145  static const std::string& sCALIBRATE_AMPLI;
147  static const std::string& sCALIBRATE_ATMOSPHERE;
149  static const std::string& sCALIBRATE_BANDPASS;
151  static const std::string& sCALIBRATE_DELAY;
153  static const std::string& sCALIBRATE_FLUX;
155  static const std::string& sCALIBRATE_FOCUS;
157  static const std::string& sCALIBRATE_FOCUS_X;
159  static const std::string& sCALIBRATE_FOCUS_Y;
161  static const std::string& sCALIBRATE_PHASE;
163  static const std::string& sCALIBRATE_POINTING;
165  static const std::string& sCALIBRATE_POLARIZATION;
167  static const std::string& sCALIBRATE_SIDEBAND_RATIO;
169  static const std::string& sCALIBRATE_WVR;
171  static const std::string& sDO_SKYDIP;
173  static const std::string& sMAP_ANTENNA_SURFACE;
175  static const std::string& sMAP_PRIMARY_BEAM;
177  static const std::string& sOBSERVE_TARGET;
179  static const std::string& sCALIBRATE_POL_LEAKAGE;
181  static const std::string& sCALIBRATE_POL_ANGLE;
183  static const std::string& sTEST;
185  static const std::string& sUNSPECIFIED;
187  static const std::string& sCALIBRATE_ANTENNA_POSITION;
189  static const std::string& sCALIBRATE_ANTENNA_PHASE;
191  static const std::string& sMEASURE_RFI;
193  static const std::string& sCALIBRATE_ANTENNA_POINTING_MODEL;
195  static const std::string& sSYSTEM_CONFIGURATION;
197  static const std::string& sCALIBRATE_APPPHASE_ACTIVE;
199  static const std::string& sCALIBRATE_APPPHASE_PASSIVE;
201  static const std::string& sOBSERVE_CHECK_SOURCE;
203  static const std::string& sCALIBRATE_DIFFGAIN;
210  static int version() ;
211 
212 
218  static std::string revision() ;
219 
220 
225  static unsigned int size() ;
226 
227 
233  static std::string name(const ScanIntentMod::ScanIntent& e);
234 
238  static std::string toString(const ScanIntentMod::ScanIntent& f) { return name(f); }
245  static const std::vector<std::string> names();
246 
247 
248  // Create a ScanIntent enumeration object by specifying its name.
249  static ScanIntentMod::ScanIntent newScanIntent(const std::string& name);
250 
256  static ScanIntentMod::ScanIntent literal(const std::string& name);
257 
263  static ScanIntentMod::ScanIntent from_int(unsigned int i);
264 
265 
266  private:
267  /* Not Implemented. This is a pure static class. */
268  CScanIntent();
269  CScanIntent(const CScanIntent&);
271 
272  static std::string badString(const std::string& name) ;
273  static std::string badInt(unsigned int i) ;
274 
275 };
276 
277 #endif
static const std::string & sCALIBRATE_WVR
Definition: CScanIntent.h:170
static const std::string & sMAP_ANTENNA_SURFACE
Definition: CScanIntent.h:174
static const std::string & sCALIBRATE_POINTING
Definition: CScanIntent.h:164
static ScanIntentMod::ScanIntent from_int(unsigned int i)
static int version()
Return the major version number as an int.
static const std::string & sCALIBRATE_APPPHASE_PASSIVE
Definition: CScanIntent.h:200
static const std::string & sCALIBRATE_POLARIZATION
Definition: CScanIntent.h:166
static const std::string & sCALIBRATE_APPPHASE_ACTIVE
Definition: CScanIntent.h:198
static const std::string & sTEST
Definition: CScanIntent.h:184
static ScanIntentMod::ScanIntent literal(const std::string &name)
std::ostream & operator<<(std::ostream &out, const ScanIntent &value)
static std::string name(const ScanIntentMod::ScanIntent &e)
Returns an enumerator as a string.
static const std::string & sCALIBRATE_DIFFGAIN
Definition: CScanIntent.h:204
static const std::string & sCALIBRATE_AMPLI
Enumerators as strings.
Definition: CScanIntent.h:146
static const std::string & sCALIBRATE_FOCUS_X
Definition: CScanIntent.h:158
static std::string revision()
Return the revision as a string.
static const std::string & sMEASURE_RFI
Definition: CScanIntent.h:192
static std::string toString(const ScanIntentMod::ScanIntent &f)
Equivalent to the name method.
Definition: CScanIntent.h:239
CScanIntent & operator=(const CScanIntent &)
static const std::string & sCALIBRATE_ANTENNA_PHASE
Definition: CScanIntent.h:190
static const std::string & sCALIBRATE_DELAY
Definition: CScanIntent.h:152
static const std::string & sCALIBRATE_BANDPASS
Definition: CScanIntent.h:150
static const std::string & sCALIBRATE_PHASE
Definition: CScanIntent.h:162
std::istream & operator>>(std::istream &in, ScanIntent &value)
static const std::string & sCALIBRATE_POL_ANGLE
Definition: CScanIntent.h:182
static const std::string & sCALIBRATE_ANTENNA_POINTING_MODEL
Definition: CScanIntent.h:194
static unsigned int size()
Return the number of enumerators declared in ScanIntentMod::ScanIntent.
A helper class for the enumeration ScanIntent.
Definition: CScanIntent.h:139
static ScanIntentMod::ScanIntent newScanIntent(const std::string &name)
Create a ScanIntent enumeration object by specifying its name.
static const std::string & sCALIBRATE_FOCUS
Definition: CScanIntent.h:156
static const std::string & sCALIBRATE_FLUX
Definition: CScanIntent.h:154
static const std::string & sOBSERVE_CHECK_SOURCE
Definition: CScanIntent.h:202
const Double e
e and functions thereof:
static const std::string & sCALIBRATE_ATMOSPHERE
Definition: CScanIntent.h:148
static const std::string & sCALIBRATE_SIDEBAND_RATIO
Definition: CScanIntent.h:168
static const std::string & sSYSTEM_CONFIGURATION
Definition: CScanIntent.h:196
static const std::string & sCALIBRATE_FOCUS_Y
Definition: CScanIntent.h:160
static std::string badInt(unsigned int i)
static const std::vector< std::string > names()
Returns vector of all the enumerators as strings.
static const std::string & sMAP_PRIMARY_BEAM
Definition: CScanIntent.h:176
static const std::string & sDO_SKYDIP
Definition: CScanIntent.h:172
static const std::string & sUNSPECIFIED
Definition: CScanIntent.h:186
static const std::string & sCALIBRATE_ANTENNA_POSITION
Definition: CScanIntent.h:188
static const std::string & sOBSERVE_TARGET
Definition: CScanIntent.h:178
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
static std::string badString(const std::string &name)
static const std::string & sCALIBRATE_POL_LEAKAGE
Definition: CScanIntent.h:180