casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CCalDataOrigin.h
Go to the documentation of this file.
1 
2 #ifndef CCalDataOrigin_H
3 #define CCalDataOrigin_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 CCalDataOrigin.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 CalDataOriginMod
55 {
58 
59  const char *const revision = "-1";
60  const int version = 1;
61 
62  enum CalDataOrigin
63  {
64  TOTAL_POWER
65  ,
66  WVR
67  ,
68  CHANNEL_AVERAGE_AUTO
69  ,
70  CHANNEL_AVERAGE_CROSS
71  ,
72  FULL_RESOLUTION_AUTO
73  ,
74  FULL_RESOLUTION_CROSS
75  ,
76  OPTICAL_POINTING
77  ,
78  HOLOGRAPHY
79  ,
80  NONE
82  };
83  typedef CalDataOrigin &CalDataOrigin_out;
84 }
85 #endif
86 
87 namespace CalDataOriginMod {
88  std::ostream & operator << ( std::ostream & out, const CalDataOrigin& value);
89  std::istream & operator >> ( std::istream & in , CalDataOrigin& value );
90 }
91 
96 class CCalDataOrigin {
97  public:
98 
103  static const std::string& sTOTAL_POWER;
105  static const std::string& sWVR;
107  static const std::string& sCHANNEL_AVERAGE_AUTO;
109  static const std::string& sCHANNEL_AVERAGE_CROSS;
111  static const std::string& sFULL_RESOLUTION_AUTO;
113  static const std::string& sFULL_RESOLUTION_CROSS;
115  static const std::string& sOPTICAL_POINTING;
117  static const std::string& sHOLOGRAPHY;
119  static const std::string& sNONE;
126  static int version() ;
127 
128 
134  static std::string revision() ;
135 
136 
141  static unsigned int size() ;
142 
143 
149  static std::string name(const CalDataOriginMod::CalDataOrigin& e);
150 
154  static std::string toString(const CalDataOriginMod::CalDataOrigin& f) { return name(f); }
161  static const std::vector<std::string> names();
162 
163 
164  // Create a CalDataOrigin enumeration object by specifying its name.
165  static CalDataOriginMod::CalDataOrigin newCalDataOrigin(const std::string& name);
166 
172  static CalDataOriginMod::CalDataOrigin literal(const std::string& name);
173 
179  static CalDataOriginMod::CalDataOrigin from_int(unsigned int i);
180 
181 
182  private:
183  /* Not Implemented. This is a pure static class. */
184  CCalDataOrigin();
187 
188  static std::string badString(const std::string& name) ;
189  static std::string badInt(unsigned int i) ;
190 
191 };
192 
193 #endif
static const std::string & sFULL_RESOLUTION_AUTO
static const std::vector< std::string > names()
Returns vector of all the enumerators as strings.
static CalDataOriginMod::CalDataOrigin from_int(unsigned int i)
static std::string toString(const CalDataOriginMod::CalDataOrigin &f)
Equivalent to the name method.
static const std::string & sOPTICAL_POINTING
static const std::string & sFULL_RESOLUTION_CROSS
static const std::string & sCHANNEL_AVERAGE_CROSS
static std::string badString(const std::string &name)
static unsigned int size()
Return the number of enumerators declared in CalDataOriginMod::CalDataOrigin.
static int version()
Return the major version number as an int.
std::istream & operator>>(std::istream &in, CalDataOrigin &value)
static std::string revision()
Return the revision as a string.
static const std::string & sHOLOGRAPHY
std::ostream & operator<<(std::ostream &out, const CalDataOrigin &value)
static const std::string & sWVR
A helper class for the enumeration CalDataOrigin.
CCalDataOrigin & operator=(const CCalDataOrigin &)
static const std::string & sCHANNEL_AVERAGE_AUTO
static const std::string & sNONE
const Double e
e and functions thereof:
static CalDataOriginMod::CalDataOrigin literal(const std::string &name)
static std::string name(const CalDataOriginMod::CalDataOrigin &e)
Returns an enumerator as a string.
static CalDataOriginMod::CalDataOrigin newCalDataOrigin(const std::string &name)
Create a CalDataOrigin enumeration object by specifying its name.
static const std::string & sTOTAL_POWER
Enumerators as strings.
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
static std::string badInt(unsigned int i)
const std::string NONE