A helper class for the enumeration PositionMethod.
More...
#include <CPositionMethod.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 PositionMethodMod::PositionMethod. More...
|
|
static std::string | name (const PositionMethodMod::PositionMethod &e) |
| Returns an enumerator as a string. More...
|
|
static std::string | toString (const PositionMethodMod::PositionMethod &f) |
| Equivalent to the name method. More...
|
|
static const std::vector
< std::string > | names () |
| Returns vector of all the enumerators as strings. More...
|
|
static
PositionMethodMod::PositionMethod | newPositionMethod (const std::string &name) |
| Create a PositionMethod enumeration object by specifying its name. More...
|
|
static
PositionMethodMod::PositionMethod | literal (const std::string &name) |
|
static
PositionMethodMod::PositionMethod | 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 PositionMethod.
Definition at line 83 of file CPositionMethod.h.
CPositionMethod::CPositionMethod |
( |
| ) |
|
|
private |
static std::string CPositionMethod::badInt |
( |
unsigned int |
i | ) |
|
|
staticprivate |
static std::string CPositionMethod::badString |
( |
const std::string & |
name | ) |
|
|
staticprivate |
static PositionMethodMod::PositionMethod CPositionMethod::from_int |
( |
unsigned int |
i | ) |
|
|
static |
Return a PositionMethod's enumerator given an unsigned int.
- Parameters
-
i | the index of the enumerator in PositionMethodMod::PositionMethod. |
- Returns
- a PositionMethodMod::PositionMethod's enumerator.
- Exceptions
-
a | string containing an error message if no enumerator could be found for this integer. |
static PositionMethodMod::PositionMethod CPositionMethod::literal |
( |
const std::string & |
name | ) |
|
|
static |
Return a PositionMethod's enumerator given a string.
- Parameters
-
name | the string representation of the enumerator. |
- Returns
- a PositionMethodMod::PositionMethod's enumerator.
- Exceptions
-
a | string containing an error message if no enumerator could be found for this name. |
static std::string CPositionMethod::name |
( |
const PositionMethodMod::PositionMethod & |
e | ) |
|
|
static |
Returns an enumerator as a string.
- Parameters
-
e | an enumerator of PositionMethodMod::PositionMethod. |
- Returns
- a string.
static const std::vector<std::string> CPositionMethod::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 PositionMethodMod::PositionMethod CPositionMethod::newPositionMethod |
( |
const std::string & |
name | ) |
|
|
static |
Create a PositionMethod enumeration object by specifying its name.
static std::string CPositionMethod::revision |
( |
| ) |
|
|
static |
Return the revision as a string.
- Returns
- a string
static unsigned int CPositionMethod::size |
( |
| ) |
|
|
static |
Return the number of enumerators declared in PositionMethodMod::PositionMethod.
- Returns
- an unsigned int.
static std::string CPositionMethod::toString |
( |
const PositionMethodMod::PositionMethod & |
f | ) |
|
|
inlinestatic |
static int CPositionMethod::version |
( |
| ) |
|
|
static |
Return the major version number as an int.
- Returns
- an int.
const std::string& CPositionMethod::sDELAY_FITTING |
|
static |
Enumerators as strings.
A const string equal to "DELAY_FITTING".
Definition at line 90 of file CPositionMethod.h.
const std::string& CPositionMethod::sPHASE_FITTING |
|
static |
The documentation for this class was generated from the following file: