casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CReceiverBand.h
Go to the documentation of this file.
1 
2 #ifndef CReceiverBand_H
3 #define CReceiverBand_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 CReceiverBand.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 ReceiverBandMod
55 {
58 
59  const char *const revision = "-1";
60  const int version = 1;
61 
62  enum ReceiverBand
63  {
64  ALMA_RB_01
65  ,
66  ALMA_RB_02
67  ,
68  ALMA_RB_03
69  ,
70  ALMA_RB_04
71  ,
72  ALMA_RB_05
73  ,
74  ALMA_RB_06
75  ,
76  ALMA_RB_07
77  ,
78  ALMA_RB_08
79  ,
80  ALMA_RB_09
81  ,
82  ALMA_RB_10
83  ,
84  ALMA_RB_ALL
85  ,
86  ALMA_HOLOGRAPHY_RECEIVER
87  ,
88  BURE_01
89  ,
90  BURE_02
91  ,
92  BURE_03
93  ,
94  BURE_04
95  ,
96  EVLA_4
97  ,
98  EVLA_P
99  ,
100  EVLA_L
101  ,
102  EVLA_C
103  ,
104  EVLA_S
105  ,
106  EVLA_X
107  ,
108  EVLA_Ku
109  ,
110  EVLA_K
111  ,
112  EVLA_Ka
113  ,
114  EVLA_Q
115  ,
116  UNSPECIFIED
118  };
119  typedef ReceiverBand &ReceiverBand_out;
120 }
121 #endif
122 
123 namespace ReceiverBandMod {
124  std::ostream & operator << ( std::ostream & out, const ReceiverBand& value);
125  std::istream & operator >> ( std::istream & in , ReceiverBand& value );
126 }
127 
132 class CReceiverBand {
133  public:
134 
139  static const std::string& sALMA_RB_01;
141  static const std::string& sALMA_RB_02;
143  static const std::string& sALMA_RB_03;
145  static const std::string& sALMA_RB_04;
147  static const std::string& sALMA_RB_05;
149  static const std::string& sALMA_RB_06;
151  static const std::string& sALMA_RB_07;
153  static const std::string& sALMA_RB_08;
155  static const std::string& sALMA_RB_09;
157  static const std::string& sALMA_RB_10;
159  static const std::string& sALMA_RB_ALL;
161  static const std::string& sALMA_HOLOGRAPHY_RECEIVER;
163  static const std::string& sBURE_01;
165  static const std::string& sBURE_02;
167  static const std::string& sBURE_03;
169  static const std::string& sBURE_04;
171  static const std::string& sEVLA_4;
173  static const std::string& sEVLA_P;
175  static const std::string& sEVLA_L;
177  static const std::string& sEVLA_C;
179  static const std::string& sEVLA_S;
181  static const std::string& sEVLA_X;
183  static const std::string& sEVLA_Ku;
185  static const std::string& sEVLA_K;
187  static const std::string& sEVLA_Ka;
189  static const std::string& sEVLA_Q;
191  static const std::string& sUNSPECIFIED;
198  static int version() ;
199 
200 
206  static std::string revision() ;
207 
208 
213  static unsigned int size() ;
214 
215 
221  static std::string name(const ReceiverBandMod::ReceiverBand& e);
222 
226  static std::string toString(const ReceiverBandMod::ReceiverBand& f) { return name(f); }
233  static const std::vector<std::string> names();
234 
235 
236  // Create a ReceiverBand enumeration object by specifying its name.
237  static ReceiverBandMod::ReceiverBand newReceiverBand(const std::string& name);
238 
244  static ReceiverBandMod::ReceiverBand literal(const std::string& name);
245 
251  static ReceiverBandMod::ReceiverBand from_int(unsigned int i);
252 
253 
254  private:
255  /* Not Implemented. This is a pure static class. */
256  CReceiverBand();
259 
260  static std::string badString(const std::string& name) ;
261  static std::string badInt(unsigned int i) ;
262 
263 };
264 
265 #endif
static std::string name(const ReceiverBandMod::ReceiverBand &e)
Returns an enumerator as a string.
static const std::string & sALMA_RB_01
Enumerators as strings.
std::istream & operator>>(std::istream &in, ReceiverBand &value)
static const std::string & sALMA_RB_06
static const std::string & sEVLA_4
static const std::string & sBURE_01
static const std::string & sEVLA_S
A helper class for the enumeration ReceiverBand.
static const std::string & sALMA_RB_04
static const std::string & sALMA_RB_03
static const std::string & sEVLA_Q
static const std::string & sBURE_02
static const std::string & sALMA_RB_07
static const std::string & sALMA_RB_08
static const std::string & sUNSPECIFIED
static const std::string & sEVLA_X
static const std::string & sALMA_RB_05
static const std::string & sALMA_RB_02
static const std::string & sEVLA_C
static ReceiverBandMod::ReceiverBand newReceiverBand(const std::string &name)
Create a ReceiverBand enumeration object by specifying its name.
static std::string badString(const std::string &name)
static const std::string & sEVLA_P
static const std::string & sALMA_RB_10
static ReceiverBandMod::ReceiverBand literal(const std::string &name)
static unsigned int size()
Return the number of enumerators declared in ReceiverBandMod::ReceiverBand.
static const std::string & sEVLA_L
static const std::string & sALMA_HOLOGRAPHY_RECEIVER
CReceiverBand & operator=(const CReceiverBand &)
static const std::string & sEVLA_Ku
static const std::string & sEVLA_Ka
static const std::string & sALMA_RB_ALL
static std::string revision()
Return the revision as a string.
static ReceiverBandMod::ReceiverBand from_int(unsigned int i)
static const std::string & sBURE_04
std::ostream & operator<<(std::ostream &out, const ReceiverBand &value)
const Double e
e and functions thereof:
static const std::string & sBURE_03
static const std::vector< std::string > names()
Returns vector of all the enumerators as strings.
static std::string toString(const ReceiverBandMod::ReceiverBand &f)
Equivalent to the name method.
static std::string badInt(unsigned int i)
static const std::string & sALMA_RB_09
static int version()
Return the major version number as an int.
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
static const std::string & sEVLA_K