casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CBaselineReferenceCode.h
Go to the documentation of this file.
1 
2 #ifndef CBaselineReferenceCode_H
3 #define CBaselineReferenceCode_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 CBaselineReferenceCode.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 BaselineReferenceCodeMod
55 {
58 
59  const char *const revision = "-1";
60  const int version = 1;
61 
62  enum BaselineReferenceCode
63  {
64  J2000
65  ,
66  B1950
67  ,
68  GALACTIC
69  ,
70  SUPERGAL
71  ,
72  ECLIPTIC
73  ,
74  JMEAN
75  ,
76  JTRUE
77  ,
78  APP
79  ,
80  BMEAN
81  ,
82  BTRUE
83  ,
84  JNAT
85  ,
86  MECLIPTIC
87  ,
88  TECLIPTIC
89  ,
90  TOPO
91  ,
92  MERCURY
93  ,
94  VENUS
95  ,
96  MARS
97  ,
98  JUPITER
99  ,
100  SATURN
101  ,
102  NEPTUN
103  ,
104  SUN
105  ,
106  MOON
107  ,
108  HADEC
109  ,
110  AZEL
111  ,
112  AZELGEO
113  ,
114  AZELSW
115  ,
116  AZELNE
117  ,
118  ITRF
120  };
121  typedef BaselineReferenceCode &BaselineReferenceCode_out;
122 }
123 #endif
124 
125 namespace BaselineReferenceCodeMod {
126  std::ostream & operator << ( std::ostream & out, const BaselineReferenceCode& value);
127  std::istream & operator >> ( std::istream & in , BaselineReferenceCode& value );
128 }
129 
135  public:
136 
141  static const std::string& sJ2000;
143  static const std::string& sB1950;
145  static const std::string& sGALACTIC;
147  static const std::string& sSUPERGAL;
149  static const std::string& sECLIPTIC;
151  static const std::string& sJMEAN;
153  static const std::string& sJTRUE;
155  static const std::string& sAPP;
157  static const std::string& sBMEAN;
159  static const std::string& sBTRUE;
161  static const std::string& sJNAT;
163  static const std::string& sMECLIPTIC;
165  static const std::string& sTECLIPTIC;
167  static const std::string& sTOPO;
169  static const std::string& sMERCURY;
171  static const std::string& sVENUS;
173  static const std::string& sMARS;
175  static const std::string& sJUPITER;
177  static const std::string& sSATURN;
179  static const std::string& sNEPTUN;
181  static const std::string& sSUN;
183  static const std::string& sMOON;
185  static const std::string& sHADEC;
187  static const std::string& sAZEL;
189  static const std::string& sAZELGEO;
191  static const std::string& sAZELSW;
193  static const std::string& sAZELNE;
195  static const std::string& sITRF;
202  static int version() ;
203 
204 
210  static std::string revision() ;
211 
212 
217  static unsigned int size() ;
218 
219 
225  static std::string name(const BaselineReferenceCodeMod::BaselineReferenceCode& e);
226 
230  static std::string toString(const BaselineReferenceCodeMod::BaselineReferenceCode& f) { return name(f); }
237  static const std::vector<std::string> names();
238 
239 
240  // Create a BaselineReferenceCode enumeration object by specifying its name.
241  static BaselineReferenceCodeMod::BaselineReferenceCode newBaselineReferenceCode(const std::string& name);
242 
248  static BaselineReferenceCodeMod::BaselineReferenceCode literal(const std::string& name);
249 
255  static BaselineReferenceCodeMod::BaselineReferenceCode from_int(unsigned int i);
256 
257 
258  private:
259  /* Not Implemented. This is a pure static class. */
263 
264  static std::string badString(const std::string& name) ;
265  static std::string badInt(unsigned int i) ;
266 
267 };
268 
269 #endif
static const std::string & sSUPERGAL
static const std::string & sTECLIPTIC
static const std::string & sECLIPTIC
static const std::string & sSATURN
static const std::string & sB1950
static int version()
Return the major version number as an int.
static BaselineReferenceCodeMod::BaselineReferenceCode from_int(unsigned int i)
static const std::string & sHADEC
static const std::string & sJNAT
static const std::string & sJTRUE
static const std::string & sAZEL
CBaselineReferenceCode & operator=(const CBaselineReferenceCode &)
static const std::string & sAZELNE
static std::string badInt(unsigned int i)
static const std::string & sMOON
static std::string toString(const BaselineReferenceCodeMod::BaselineReferenceCode &f)
Equivalent to the name method.
static const std::string & sGALACTIC
static const std::string & sJ2000
Enumerators as strings.
static std::string name(const BaselineReferenceCodeMod::BaselineReferenceCode &e)
Returns an enumerator as a string.
static const std::string & sTOPO
static std::string badString(const std::string &name)
A helper class for the enumeration BaselineReferenceCode.
static BaselineReferenceCodeMod::BaselineReferenceCode newBaselineReferenceCode(const std::string &name)
Create a BaselineReferenceCode enumeration object by specifying its name.
std::ostream & operator<<(std::ostream &out, const BaselineReferenceCode &value)
static const std::string & sAZELGEO
std::istream & operator>>(std::istream &in, BaselineReferenceCode &value)
static BaselineReferenceCodeMod::BaselineReferenceCode literal(const std::string &name)
static const std::string & sAPP
static const std::string & sITRF
static const std::string & sAZELSW
static std::string revision()
Return the revision as a string.
static const std::string & sVENUS
static const std::string & sSUN
const Double e
e and functions thereof:
static const std::vector< std::string > names()
Returns vector of all the enumerators as strings.
static unsigned int size()
Return the number of enumerators declared in BaselineReferenceCodeMod::BaselineReferenceCode.
static const std::string & sMECLIPTIC
static const std::string & sNEPTUN
static const std::string & sMARS
static const std::string & sBTRUE
static const std::string & sJMEAN
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
static const std::string & sBMEAN
static const std::string & sJUPITER
static const std::string & sMERCURY