2 #ifndef CFrequencyReferenceCode_H
3 #define CFrequencyReferenceCode_H
40 #error This is a C++ include file and cannot be used from plain C
50 #include <almaEnumerations_IFC.h>
54 namespace FrequencyReferenceCodeMod
59 const char *
const revision =
"-1";
60 const int version = 1;
62 enum FrequencyReferenceCode
81 typedef FrequencyReferenceCode &FrequencyReferenceCode_out;
85 namespace FrequencyReferenceCodeMod {
87 std::istream &
operator >> ( std::istream & in , FrequencyReferenceCode&
value );
103 static const std::string&
sLSRD;
105 static const std::string&
sLSRK;
107 static const std::string&
sBARY;
109 static const std::string&
sREST;
111 static const std::string&
sGEO;
115 static const std::string&
sTOPO;
137 static unsigned int size() ;
145 static std::string
name(
const FrequencyReferenceCodeMod::FrequencyReferenceCode&
e);
150 static std::string
toString(
const FrequencyReferenceCodeMod::FrequencyReferenceCode& f) {
return name(f); }
157 static const std::vector<std::string>
names();
168 static FrequencyReferenceCodeMod::FrequencyReferenceCode
literal(
const std::string&
name);
175 static FrequencyReferenceCodeMod::FrequencyReferenceCode
from_int(
unsigned int i);
185 static std::string
badInt(
unsigned int i) ;
std::istream & operator>>(std::istream &in, FrequencyReferenceCode &value)
static const std::string & sLABREST
Enumerators as strings.
static const std::string & sTOPO
static const std::vector< std::string > names()
Returns vector of all the enumerators as strings.
A helper class for the enumeration FrequencyReferenceCode.
static std::string badInt(unsigned int i)
static const std::string & sGEO
static std::string revision()
Return the revision as a string.
static const std::string & sREST
static FrequencyReferenceCodeMod::FrequencyReferenceCode literal(const std::string &name)
static FrequencyReferenceCodeMod::FrequencyReferenceCode newFrequencyReferenceCode(const std::string &name)
Create a FrequencyReferenceCode enumeration object by specifying its name.
std::ostream & operator<<(std::ostream &out, const FrequencyReferenceCode &value)
static const std::string & sLSRD
static const std::string & sLSRK
static const std::string & sBARY
CFrequencyReferenceCode & operator=(const CFrequencyReferenceCode &)
static const std::string & sGALACTO
const Double e
e and functions thereof:
static int version()
Return the major version number as an int.
CFrequencyReferenceCode()
static std::string name(const FrequencyReferenceCodeMod::FrequencyReferenceCode &e)
Returns an enumerator as a string.
static std::string toString(const FrequencyReferenceCodeMod::FrequencyReferenceCode &f)
Equivalent to the name method.
static unsigned int size()
Return the number of enumerators declared in FrequencyReferenceCodeMod::FrequencyReferenceCode.
static FrequencyReferenceCodeMod::FrequencyReferenceCode from_int(unsigned int i)
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
static std::string badString(const std::string &name)