2 #ifndef CPrimitiveDataType_H
3 #define CPrimitiveDataType_H
40 #error This is a C++ include file and cannot be used from plain C
50 #include <almaEnumerations_IFC.h>
54 namespace PrimitiveDataTypeMod
59 const char *
const revision =
"-1";
60 const int version = 1;
62 enum PrimitiveDataType
75 typedef PrimitiveDataType &PrimitiveDataType_out;
79 namespace PrimitiveDataTypeMod {
125 static unsigned int size() ;
133 static std::string
name(
const PrimitiveDataTypeMod::PrimitiveDataType&
e);
138 static std::string
toString(
const PrimitiveDataTypeMod::PrimitiveDataType& f) {
return name(f); }
145 static const std::vector<std::string>
names();
156 static PrimitiveDataTypeMod::PrimitiveDataType
literal(
const std::string&
name);
163 static PrimitiveDataTypeMod::PrimitiveDataType
from_int(
unsigned int i);
173 static std::string
badInt(
unsigned int i) ;
static std::string revision()
Return the revision as a string.
static PrimitiveDataTypeMod::PrimitiveDataType newPrimitiveDataType(const std::string &name)
Create a PrimitiveDataType enumeration object by specifying its name.
static const std::string & sINT64_TYPE
static std::string badString(const std::string &name)
A helper class for the enumeration PrimitiveDataType.
static const std::string & sFLOAT32_TYPE
static const std::string & sFLOAT64_TYPE
static std::string badInt(unsigned int i)
static PrimitiveDataTypeMod::PrimitiveDataType literal(const std::string &name)
std::istream & operator>>(std::istream &in, PrimitiveDataType &value)
static const std::string & sINT32_TYPE
static const std::vector< std::string > names()
Returns vector of all the enumerators as strings.
static PrimitiveDataTypeMod::PrimitiveDataType from_int(unsigned int i)
static unsigned int size()
Return the number of enumerators declared in PrimitiveDataTypeMod::PrimitiveDataType.
static const std::string & sINT16_TYPE
Enumerators as strings.
static std::string name(const PrimitiveDataTypeMod::PrimitiveDataType &e)
Returns an enumerator as a string.
const Double e
e and functions thereof:
std::ostream & operator<<(std::ostream &out, const PrimitiveDataType &value)
static std::string toString(const PrimitiveDataTypeMod::PrimitiveDataType &f)
Equivalent to the name method.
static int version()
Return the major version number as an int.
CPrimitiveDataType & operator=(const CPrimitiveDataType &)
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.