casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CHolographyChannelType.h
Go to the documentation of this file.
1 
2 #ifndef CHolographyChannelType_H
3 #define CHolographyChannelType_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 CHolographyChannelType.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 HolographyChannelTypeMod
55 {
58 
59  const char *const revision = "-1";
60  const int version = 1;
61 
62  enum HolographyChannelType
63  {
64  Q2
65  ,
66  QR
67  ,
68  QS
69  ,
70  R2
71  ,
72  RS
73  ,
74  S2
76  };
77  typedef HolographyChannelType &HolographyChannelType_out;
78 }
79 #endif
80 
81 namespace HolographyChannelTypeMod {
82  std::ostream & operator << ( std::ostream & out, const HolographyChannelType& value);
83  std::istream & operator >> ( std::istream & in , HolographyChannelType& value );
84 }
85 
91  public:
92 
97  static const std::string& sQ2;
99  static const std::string& sQR;
101  static const std::string& sQS;
103  static const std::string& sR2;
105  static const std::string& sRS;
107  static const std::string& sS2;
114  static int version() ;
115 
116 
122  static std::string revision() ;
123 
124 
129  static unsigned int size() ;
130 
131 
137  static std::string name(const HolographyChannelTypeMod::HolographyChannelType& e);
138 
142  static std::string toString(const HolographyChannelTypeMod::HolographyChannelType& f) { return name(f); }
149  static const std::vector<std::string> names();
150 
151 
152  // Create a HolographyChannelType enumeration object by specifying its name.
153  static HolographyChannelTypeMod::HolographyChannelType newHolographyChannelType(const std::string& name);
154 
160  static HolographyChannelTypeMod::HolographyChannelType literal(const std::string& name);
161 
167  static HolographyChannelTypeMod::HolographyChannelType from_int(unsigned int i);
168 
169 
170  private:
171  /* Not Implemented. This is a pure static class. */
175 
176  static std::string badString(const std::string& name) ;
177  static std::string badInt(unsigned int i) ;
178 
179 };
180 
181 #endif
static unsigned int size()
Return the number of enumerators declared in HolographyChannelTypeMod::HolographyChannelType.
static const std::string & sQR
static HolographyChannelTypeMod::HolographyChannelType literal(const std::string &name)
static const std::string & sRS
static std::string badInt(unsigned int i)
CHolographyChannelType & operator=(const CHolographyChannelType &)
static const std::string & sR2
static const std::vector< std::string > names()
Returns vector of all the enumerators as strings.
static const std::string & sQ2
Enumerators as strings.
static HolographyChannelTypeMod::HolographyChannelType from_int(unsigned int i)
static std::string toString(const HolographyChannelTypeMod::HolographyChannelType &f)
Equivalent to the name method.
static const std::string & sS2
static const std::string & sQS
static int version()
Return the major version number as an int.
static std::string revision()
Return the revision as a string.
const Double e
e and functions thereof:
std::istream & operator>>(std::istream &in, HolographyChannelType &value)
static std::string name(const HolographyChannelTypeMod::HolographyChannelType &e)
Returns an enumerator as a string.
std::ostream & operator<<(std::ostream &out, const HolographyChannelType &value)
static std::string badString(const std::string &name)
A helper class for the enumeration HolographyChannelType.
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
static HolographyChannelTypeMod::HolographyChannelType newHolographyChannelType(const std::string &name)
Create a HolographyChannelType enumeration object by specifying its name.