casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CAntennaMotionPattern.h
Go to the documentation of this file.
1 
2 #ifndef CAntennaMotionPattern_H
3 #define CAntennaMotionPattern_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 CAntennaMotionPattern.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 AntennaMotionPatternMod
55 {
58 
59  const char *const revision = "-1";
60  const int version = 1;
61 
62  enum AntennaMotionPattern
63  {
64  NONE
65  ,
66  CROSS_SCAN
67  ,
68  SPIRAL
69  ,
70  CIRCLE
71  ,
72  THREE_POINTS
73  ,
74  FOUR_POINTS
75  ,
76  FIVE_POINTS
77  ,
78  TEST
79  ,
80  UNSPECIFIED
81  ,
82  STAR
83  ,
84  LISSAJOUS
86  };
87  typedef AntennaMotionPattern &AntennaMotionPattern_out;
88 }
89 #endif
90 
91 namespace AntennaMotionPatternMod {
92  std::ostream & operator << ( std::ostream & out, const AntennaMotionPattern& value);
93  std::istream & operator >> ( std::istream & in , AntennaMotionPattern& value );
94 }
95 
100 class CAntennaMotionPattern {
101  public:
102 
107  static const std::string& sNONE;
109  static const std::string& sCROSS_SCAN;
111  static const std::string& sSPIRAL;
113  static const std::string& sCIRCLE;
115  static const std::string& sTHREE_POINTS;
117  static const std::string& sFOUR_POINTS;
119  static const std::string& sFIVE_POINTS;
121  static const std::string& sTEST;
123  static const std::string& sUNSPECIFIED;
125  static const std::string& sSTAR;
127  static const std::string& sLISSAJOUS;
134  static int version() ;
135 
136 
142  static std::string revision() ;
143 
144 
149  static unsigned int size() ;
150 
151 
157  static std::string name(const AntennaMotionPatternMod::AntennaMotionPattern& e);
158 
162  static std::string toString(const AntennaMotionPatternMod::AntennaMotionPattern& f) { return name(f); }
169  static const std::vector<std::string> names();
170 
171 
172  // Create a AntennaMotionPattern enumeration object by specifying its name.
173  static AntennaMotionPatternMod::AntennaMotionPattern newAntennaMotionPattern(const std::string& name);
174 
180  static AntennaMotionPatternMod::AntennaMotionPattern literal(const std::string& name);
181 
187  static AntennaMotionPatternMod::AntennaMotionPattern from_int(unsigned int i);
188 
189 
190  private:
191  /* Not Implemented. This is a pure static class. */
195 
196  static std::string badString(const std::string& name) ;
197  static std::string badInt(unsigned int i) ;
198 
199 };
200 
201 #endif
static AntennaMotionPatternMod::AntennaMotionPattern newAntennaMotionPattern(const std::string &name)
Create a AntennaMotionPattern enumeration object by specifying its name.
CAntennaMotionPattern & operator=(const CAntennaMotionPattern &)
static const std::string & sCROSS_SCAN
static int version()
Return the major version number as an int.
static AntennaMotionPatternMod::AntennaMotionPattern literal(const std::string &name)
std::ostream & operator<<(std::ostream &out, const AntennaMotionPattern &value)
static const std::string & sFOUR_POINTS
static const std::string & sSTAR
A helper class for the enumeration AntennaMotionPattern.
static std::string badInt(unsigned int i)
static const std::string & sFIVE_POINTS
static const std::vector< std::string > names()
Returns vector of all the enumerators as strings.
static const std::string & sUNSPECIFIED
static std::string badString(const std::string &name)
static const std::string & sTHREE_POINTS
static const std::string & sLISSAJOUS
static const std::string & sSPIRAL
static unsigned int size()
Return the number of enumerators declared in AntennaMotionPatternMod::AntennaMotionPattern.
static std::string name(const AntennaMotionPatternMod::AntennaMotionPattern &e)
Returns an enumerator as a string.
static const std::string & sCIRCLE
static std::string toString(const AntennaMotionPatternMod::AntennaMotionPattern &f)
Equivalent to the name method.
const Double e
e and functions thereof:
std::istream & operator>>(std::istream &in, AntennaMotionPattern &value)
static const std::string & sTEST
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
static const std::string & sNONE
Enumerators as strings.
static std::string revision()
Return the revision as a string.
static AntennaMotionPatternMod::AntennaMotionPattern from_int(unsigned int i)
const std::string NONE