2 #ifndef CPolarizationType_H
3 #define CPolarizationType_H
40 #error This is a C++ include file and cannot be used from plain C
50 #include <almaEnumerations_IFC.h>
54 namespace PolarizationTypeMod
60 const char *
const revision =
"-1";
61 const int version = 1;
76 typedef PolarizationType &PolarizationType_out;
80 namespace PolarizationTypeMod {
96 static const std::string&
sR;
98 static const std::string&
sL;
100 static const std::string&
sX;
102 static const std::string&
sY;
104 static const std::string&
sBOTH;
126 static unsigned int size() ;
134 static std::string
name(
const PolarizationTypeMod::PolarizationType&
e);
139 static std::string
toString(
const PolarizationTypeMod::PolarizationType& f) {
return name(f); }
146 static const std::vector<std::string>
names();
157 static PolarizationTypeMod::PolarizationType
literal(
const std::string&
name);
164 static PolarizationTypeMod::PolarizationType
from_int(
unsigned int i);
174 static std::string
badInt(
unsigned int i) ;
static const std::string & sR
Enumerators as strings.
static PolarizationTypeMod::PolarizationType from_int(unsigned int i)
static const std::vector< std::string > names()
Returns vector of all the enumerators as strings.
CPolarizationType & operator=(const CPolarizationType &)
static std::string toString(const PolarizationTypeMod::PolarizationType &f)
Equivalent to the name method.
static std::string revision()
Return the revision as a string.
static const std::string & sX
static PolarizationTypeMod::PolarizationType newPolarizationType(const std::string &name)
Create a PolarizationType enumeration object by specifying its name.
static int version()
Return the major version number as an int.
static std::string name(const PolarizationTypeMod::PolarizationType &e)
Returns an enumerator as a string.
static const std::string & sY
std::ostream & operator<<(std::ostream &out, const PolarizationType &value)
static const std::string & sL
static std::string badString(const std::string &name)
static std::string badInt(unsigned int i)
static PolarizationTypeMod::PolarizationType literal(const std::string &name)
const Double e
e and functions thereof:
A helper class for the enumeration PolarizationType.
static unsigned int size()
Return the number of enumerators declared in PolarizationTypeMod::PolarizationType.
static const std::string & sBOTH
std::istream & operator>>(std::istream &in, PolarizationType &value)
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.