casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CBasebandName.h
Go to the documentation of this file.
1 
2 #ifndef CBasebandName_H
3 #define CBasebandName_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 CBasebandName.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 BasebandNameMod
55 {
58 
59  const char *const revision = "-1";
60  const int version = 1;
61 
62  enum BasebandName
63  {
64  NOBB
65  ,
66  BB_1
67  ,
68  BB_2
69  ,
70  BB_3
71  ,
72  BB_4
73  ,
74  BB_5
75  ,
76  BB_6
77  ,
78  BB_7
79  ,
80  BB_8
81  ,
82  BB_ALL
83  ,
84  A1C1_3BIT
85  ,
86  A2C2_3BIT
87  ,
88  AC_8BIT
89  ,
90  B1D1_3BIT
91  ,
92  B2D2_3BIT
93  ,
94  BD_8BIT
96  };
97  typedef BasebandName &BasebandName_out;
98 }
99 #endif
100 
101 namespace BasebandNameMod {
102  std::ostream & operator << ( std::ostream & out, const BasebandName& value);
103  std::istream & operator >> ( std::istream & in , BasebandName& value );
104 }
105 
110 class CBasebandName {
111  public:
112 
117  static const std::string& sNOBB;
119  static const std::string& sBB_1;
121  static const std::string& sBB_2;
123  static const std::string& sBB_3;
125  static const std::string& sBB_4;
127  static const std::string& sBB_5;
129  static const std::string& sBB_6;
131  static const std::string& sBB_7;
133  static const std::string& sBB_8;
135  static const std::string& sBB_ALL;
137  static const std::string& sA1C1_3BIT;
139  static const std::string& sA2C2_3BIT;
141  static const std::string& sAC_8BIT;
143  static const std::string& sB1D1_3BIT;
145  static const std::string& sB2D2_3BIT;
147  static const std::string& sBD_8BIT;
154  static int version() ;
155 
156 
162  static std::string revision() ;
163 
164 
169  static unsigned int size() ;
170 
171 
177  static std::string name(const BasebandNameMod::BasebandName& e);
178 
182  static std::string toString(const BasebandNameMod::BasebandName& f) { return name(f); }
189  static const std::vector<std::string> names();
190 
191 
192  // Create a BasebandName enumeration object by specifying its name.
193  static BasebandNameMod::BasebandName newBasebandName(const std::string& name);
194 
200  static BasebandNameMod::BasebandName literal(const std::string& name);
201 
207  static BasebandNameMod::BasebandName from_int(unsigned int i);
208 
209 
210  private:
211  /* Not Implemented. This is a pure static class. */
212  CBasebandName();
215 
216  static std::string badString(const std::string& name) ;
217  static std::string badInt(unsigned int i) ;
218 
219 };
220 
221 #endif
static BasebandNameMod::BasebandName newBasebandName(const std::string &name)
Create a BasebandName enumeration object by specifying its name.
static unsigned int size()
Return the number of enumerators declared in BasebandNameMod::BasebandName.
static const std::string & sBB_4
static const std::string & sBD_8BIT
static const std::string & sAC_8BIT
static BasebandNameMod::BasebandName from_int(unsigned int i)
static const std::string & sNOBB
Enumerators as strings.
static const std::string & sBB_7
static std::string badInt(unsigned int i)
static const std::string & sBB_8
static std::string badString(const std::string &name)
static const std::string & sBB_6
static const std::string & sBB_ALL
A helper class for the enumeration BasebandName.
static const std::string & sB2D2_3BIT
static std::string revision()
Return the revision as a string.
static const std::string & sA2C2_3BIT
static std::string toString(const BasebandNameMod::BasebandName &f)
Equivalent to the name method.
static const std::string & sBB_1
static const std::string & sBB_3
static int version()
Return the major version number as an int.
const Double e
e and functions thereof:
static const std::string & sB1D1_3BIT
static std::string name(const BasebandNameMod::BasebandName &e)
Returns an enumerator as a string.
std::istream & operator>>(std::istream &in, BasebandName &value)
static const std::string & sA1C1_3BIT
static BasebandNameMod::BasebandName literal(const std::string &name)
static const std::vector< std::string > names()
Returns vector of all the enumerators as strings.
std::ostream & operator<<(std::ostream &out, const BasebandName &value)
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
CBasebandName & operator=(const CBasebandName &)
static const std::string & sBB_5
static const std::string & sBB_2