A helper class for the enumeration SwitchingMode.
More...
#include <CSwitchingMode.h>
|
static int | version () |
| Return the major version number as an int. More...
|
|
static std::string | revision () |
| Return the revision as a string. More...
|
|
static unsigned int | size () |
| Return the number of enumerators declared in SwitchingModeMod::SwitchingMode. More...
|
|
static std::string | name (const SwitchingModeMod::SwitchingMode &e) |
| Returns an enumerator as a string. More...
|
|
static std::string | toString (const SwitchingModeMod::SwitchingMode &f) |
| Equivalent to the name method. More...
|
|
static const std::vector
< std::string > | names () |
| Returns vector of all the enumerators as strings. More...
|
|
static
SwitchingModeMod::SwitchingMode | newSwitchingMode (const std::string &name) |
| Create a SwitchingMode enumeration object by specifying its name. More...
|
|
static
SwitchingModeMod::SwitchingMode | literal (const std::string &name) |
|
static
SwitchingModeMod::SwitchingMode | from_int (unsigned int i) |
|
|
static std::string | badString (const std::string &name) |
|
static std::string | badInt (unsigned int i) |
|
A helper class for the enumeration SwitchingMode.
Definition at line 93 of file CSwitchingMode.h.
CSwitchingMode::CSwitchingMode |
( |
| ) |
|
|
private |
static std::string CSwitchingMode::badInt |
( |
unsigned int |
i | ) |
|
|
staticprivate |
static std::string CSwitchingMode::badString |
( |
const std::string & |
name | ) |
|
|
staticprivate |
static SwitchingModeMod::SwitchingMode CSwitchingMode::from_int |
( |
unsigned int |
i | ) |
|
|
static |
Return a SwitchingMode's enumerator given an unsigned int.
- Parameters
-
i | the index of the enumerator in SwitchingModeMod::SwitchingMode. |
- Returns
- a SwitchingModeMod::SwitchingMode's enumerator.
- Exceptions
-
a | string containing an error message if no enumerator could be found for this integer. |
static SwitchingModeMod::SwitchingMode CSwitchingMode::literal |
( |
const std::string & |
name | ) |
|
|
static |
Return a SwitchingMode's enumerator given a string.
- Parameters
-
name | the string representation of the enumerator. |
- Returns
- a SwitchingModeMod::SwitchingMode's enumerator.
- Exceptions
-
a | string containing an error message if no enumerator could be found for this name. |
static std::string CSwitchingMode::name |
( |
const SwitchingModeMod::SwitchingMode & |
e | ) |
|
|
static |
Returns an enumerator as a string.
- Parameters
-
e | an enumerator of SwitchingModeMod::SwitchingMode. |
- Returns
- a string.
static const std::vector<std::string> CSwitchingMode::names |
( |
| ) |
|
|
static |
Returns vector of all the enumerators as strings.
The strings are stored in the vector in the same order than the enumerators are declared in the enumeration.
- Returns
- a vector of string.
static SwitchingModeMod::SwitchingMode CSwitchingMode::newSwitchingMode |
( |
const std::string & |
name | ) |
|
|
static |
Create a SwitchingMode enumeration object by specifying its name.
static std::string CSwitchingMode::revision |
( |
| ) |
|
|
static |
Return the revision as a string.
- Returns
- a string
static unsigned int CSwitchingMode::size |
( |
| ) |
|
|
static |
Return the number of enumerators declared in SwitchingModeMod::SwitchingMode.
- Returns
- an unsigned int.
static std::string CSwitchingMode::toString |
( |
const SwitchingModeMod::SwitchingMode & |
f | ) |
|
|
inlinestatic |
static int CSwitchingMode::version |
( |
| ) |
|
|
static |
Return the major version number as an int.
- Returns
- an int.
const std::string& CSwitchingMode::sCHOPPER_WHEEL |
|
static |
const std::string& CSwitchingMode::sFREQUENCY_SWITCHING |
|
static |
A const string equal to "FREQUENCY_SWITCHING".
Definition at line 108 of file CSwitchingMode.h.
const std::string& CSwitchingMode::sLOAD_SWITCHING |
|
static |
const std::string& CSwitchingMode::sNO_SWITCHING |
|
static |
Enumerators as strings.
A const string equal to "NO_SWITCHING".
Definition at line 100 of file CSwitchingMode.h.
const std::string& CSwitchingMode::sNUTATOR_SWITCHING |
|
static |
const std::string& CSwitchingMode::sPHASE_SWITCHING |
|
static |
const std::string& CSwitchingMode::sPOSITION_SWITCHING |
|
static |
The documentation for this class was generated from the following file: