2 #ifndef CPrimaryBeamDescription_H
3 #define CPrimaryBeamDescription_H
40 #error This is a C++ include file and cannot be used from plain C
50 #include <almaEnumerations_IFC.h>
54 namespace PrimaryBeamDescriptionMod
59 const char *
const revision =
"-1";
60 const int version = 1;
62 enum PrimaryBeamDescription
66 APERTURE_FIELD_DISTRIBUTION
69 typedef PrimaryBeamDescription &PrimaryBeamDescription_out;
73 namespace PrimaryBeamDescriptionMod {
75 std::istream &
operator >> ( std::istream & in , PrimaryBeamDescription&
value );
113 static unsigned int size() ;
121 static std::string
name(
const PrimaryBeamDescriptionMod::PrimaryBeamDescription&
e);
126 static std::string
toString(
const PrimaryBeamDescriptionMod::PrimaryBeamDescription& f) {
return name(f); }
133 static const std::vector<std::string>
names();
144 static PrimaryBeamDescriptionMod::PrimaryBeamDescription
literal(
const std::string&
name);
151 static PrimaryBeamDescriptionMod::PrimaryBeamDescription
from_int(
unsigned int i);
161 static std::string
badInt(
unsigned int i) ;
static std::string toString(const PrimaryBeamDescriptionMod::PrimaryBeamDescription &f)
Equivalent to the name method.
static std::string revision()
Return the revision as a string.
CPrimaryBeamDescription()
static const std::vector< std::string > names()
Returns vector of all the enumerators as strings.
static PrimaryBeamDescriptionMod::PrimaryBeamDescription literal(const std::string &name)
static unsigned int size()
Return the number of enumerators declared in PrimaryBeamDescriptionMod::PrimaryBeamDescription.
static PrimaryBeamDescriptionMod::PrimaryBeamDescription from_int(unsigned int i)
static std::string badString(const std::string &name)
static std::string badInt(unsigned int i)
static int version()
Return the major version number as an int.
std::istream & operator>>(std::istream &in, PrimaryBeamDescription &value)
static const std::string & sAPERTURE_FIELD_DISTRIBUTION
const Double e
e and functions thereof:
CPrimaryBeamDescription & operator=(const CPrimaryBeamDescription &)
static std::string name(const PrimaryBeamDescriptionMod::PrimaryBeamDescription &e)
Returns an enumerator as a string.
std::ostream & operator<<(std::ostream &out, const PrimaryBeamDescription &value)
static PrimaryBeamDescriptionMod::PrimaryBeamDescription newPrimaryBeamDescription(const std::string &name)
Create a PrimaryBeamDescription enumeration object by specifying its name.
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
A helper class for the enumeration PrimaryBeamDescription.
static const std::string & sCOMPLEX_FIELD_PATTERN
Enumerators as strings.