2 #ifndef CSwitchingMode_H
3 #define CSwitchingMode_H
40 #error This is a C++ include file and cannot be used from plain C
50 #include <almaEnumerations_IFC.h>
54 namespace SwitchingModeMod
59 const char *
const revision =
"-1";
60 const int version = 1;
79 typedef SwitchingMode &SwitchingMode_out;
83 namespace SwitchingModeMod {
133 static unsigned int size() ;
141 static std::string
name(
const SwitchingModeMod::SwitchingMode&
e);
146 static std::string
toString(
const SwitchingModeMod::SwitchingMode& f) {
return name(f); }
153 static const std::vector<std::string>
names();
164 static SwitchingModeMod::SwitchingMode
literal(
const std::string&
name);
171 static SwitchingModeMod::SwitchingMode
from_int(
unsigned int i);
181 static std::string
badInt(
unsigned int i) ;
static std::string badInt(unsigned int i)
CSwitchingMode & operator=(const CSwitchingMode &)
static std::string revision()
Return the revision as a string.
static std::string toString(const SwitchingModeMod::SwitchingMode &f)
Equivalent to the name method.
static int version()
Return the major version number as an int.
static const std::string & sPOSITION_SWITCHING
static const std::vector< std::string > names()
Returns vector of all the enumerators as strings.
static const std::string & sLOAD_SWITCHING
static const std::string & sFREQUENCY_SWITCHING
static unsigned int size()
Return the number of enumerators declared in SwitchingModeMod::SwitchingMode.
static const std::string & sNUTATOR_SWITCHING
static const std::string & sNO_SWITCHING
Enumerators as strings.
static const std::string & sPHASE_SWITCHING
static SwitchingModeMod::SwitchingMode literal(const std::string &name)
static std::string badString(const std::string &name)
A helper class for the enumeration SwitchingMode.
static SwitchingModeMod::SwitchingMode from_int(unsigned int i)
std::ostream & operator<<(std::ostream &out, const SwitchingMode &value)
std::istream & operator>>(std::istream &in, SwitchingMode &value)
const Double e
e and functions thereof:
static std::string name(const SwitchingModeMod::SwitchingMode &e)
Returns an enumerator as a string.
static const std::string & sCHOPPER_WHEEL
static SwitchingModeMod::SwitchingMode newSwitchingMode(const std::string &name)
Create a SwitchingMode enumeration object by specifying its name.
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.