2 #ifndef CCalibrationFunction_H
3 #define CCalibrationFunction_H
40 #error This is a C++ include file and cannot be used from plain C
50 #include <almaEnumerations_IFC.h>
54 namespace CalibrationFunctionMod
59 const char *
const revision =
"-1";
60 const int version = 1;
62 enum CalibrationFunction
71 typedef CalibrationFunction &CalibrationFunction_out;
75 namespace CalibrationFunctionMod {
77 std::istream &
operator >> ( std::istream & in , CalibrationFunction&
value );
91 static const std::string&
sFIRST;
93 static const std::string&
sLAST;
117 static unsigned int size() ;
125 static std::string
name(
const CalibrationFunctionMod::CalibrationFunction&
e);
130 static std::string
toString(
const CalibrationFunctionMod::CalibrationFunction& f) {
return name(f); }
137 static const std::vector<std::string>
names();
148 static CalibrationFunctionMod::CalibrationFunction
literal(
const std::string&
name);
155 static CalibrationFunctionMod::CalibrationFunction
from_int(
unsigned int i);
165 static std::string
badInt(
unsigned int i) ;
static const std::string & sLAST
static unsigned int size()
Return the number of enumerators declared in CalibrationFunctionMod::CalibrationFunction.
static const std::string & sFIRST
Enumerators as strings.
static CalibrationFunctionMod::CalibrationFunction newCalibrationFunction(const std::string &name)
Create a CalibrationFunction enumeration object by specifying its name.
static std::string name(const CalibrationFunctionMod::CalibrationFunction &e)
Returns an enumerator as a string.
static const std::vector< std::string > names()
Returns vector of all the enumerators as strings.
static std::string revision()
Return the revision as a string.
static CalibrationFunctionMod::CalibrationFunction from_int(unsigned int i)
static std::string badString(const std::string &name)
static int version()
Return the major version number as an int.
CCalibrationFunction & operator=(const CCalibrationFunction &)
static std::string badInt(unsigned int i)
static std::string toString(const CalibrationFunctionMod::CalibrationFunction &f)
Equivalent to the name method.
std::istream & operator>>(std::istream &in, CalibrationFunction &value)
std::ostream & operator<<(std::ostream &out, const CalibrationFunction &value)
const Double e
e and functions thereof:
A helper class for the enumeration CalibrationFunction.
static const std::string & sUNSPECIFIED
static CalibrationFunctionMod::CalibrationFunction literal(const std::string &name)
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.