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