2 #ifndef CDopplerReferenceCode_H
3 #define CDopplerReferenceCode_H
40 #error This is a C++ include file and cannot be used from plain C
50 #include <almaEnumerations_IFC.h>
54 namespace DopplerReferenceCodeMod
59 const char *
const revision =
"-1";
60 const int version = 1;
62 enum DopplerReferenceCode
81 typedef DopplerReferenceCode &DopplerReferenceCode_out;
85 namespace DopplerReferenceCodeMod {
87 std::istream &
operator >> ( std::istream & in , DopplerReferenceCode&
value );
101 static const std::string&
sRADIO;
103 static const std::string&
sZ;
105 static const std::string&
sRATIO;
107 static const std::string&
sBETA;
109 static const std::string&
sGAMMA;
135 static unsigned int size() ;
143 static std::string
name(
const DopplerReferenceCodeMod::DopplerReferenceCode&
e);
148 static std::string
toString(
const DopplerReferenceCodeMod::DopplerReferenceCode& f) {
return name(f); }
155 static const std::vector<std::string>
names();
166 static DopplerReferenceCodeMod::DopplerReferenceCode
literal(
const std::string&
name);
173 static DopplerReferenceCodeMod::DopplerReferenceCode
from_int(
unsigned int i);
183 static std::string
badInt(
unsigned int i) ;
std::ostream & operator<<(std::ostream &out, const DopplerReferenceCode &value)
static std::string toString(const DopplerReferenceCodeMod::DopplerReferenceCode &f)
Equivalent to the name method.
static std::string name(const DopplerReferenceCodeMod::DopplerReferenceCode &e)
Returns an enumerator as a string.
A helper class for the enumeration DopplerReferenceCode.
static DopplerReferenceCodeMod::DopplerReferenceCode from_int(unsigned int i)
static DopplerReferenceCodeMod::DopplerReferenceCode literal(const std::string &name)
static const std::string & sRATIO
static unsigned int size()
Return the number of enumerators declared in DopplerReferenceCodeMod::DopplerReferenceCode.
static const std::string & sOPTICAL
static const std::vector< std::string > names()
Returns vector of all the enumerators as strings.
static const std::string & sRADIO
Enumerators as strings.
static const std::string & sBETA
static std::string badString(const std::string &name)
static const std::string & sRELATIVISTIC
static std::string badInt(unsigned int i)
std::istream & operator>>(std::istream &in, DopplerReferenceCode &value)
static const std::string & sZ
static const std::string & sGAMMA
const Double e
e and functions thereof:
static int version()
Return the major version number as an int.
CDopplerReferenceCode & operator=(const CDopplerReferenceCode &)
static std::string revision()
Return the revision as a string.
static DopplerReferenceCodeMod::DopplerReferenceCode newDopplerReferenceCode(const std::string &name)
Create a DopplerReferenceCode enumeration object by specifying its name.
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.