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