CWVRMethod Class Reference
A helper class for the enumeration WVRMethod.
More...
#include <CWVRMethod.h>
List of all members.
Static Public Member Functions |
static int | version () |
| Return the major version number as an int.
|
static std::string | revision () |
| Return the revision as a string.
|
static unsigned int | size () |
| Return the number of enumerators declared in WVRMethodMod::WVRMethod.
|
static std::string | name (const WVRMethodMod::WVRMethod &e) |
| Returns an enumerator as a string.
|
static std::string | toString (const WVRMethodMod::WVRMethod &f) |
| Equivalent to the name method.
|
static const std::vector
< std::string > | names () |
| Returns vector of all the enumerators as strings.
|
static WVRMethodMod::WVRMethod | newWVRMethod (const std::string &name) |
| Create a WVRMethod enumeration object by specifying its name.
|
static WVRMethodMod::WVRMethod | literal (const std::string &name) |
static WVRMethodMod::WVRMethod | from_int (unsigned int i) |
Static Public Attributes |
static const std::string & | sATM_MODEL |
| Enumerators as strings.
|
static const std::string & | sEMPIRICAL |
Private Member Functions |
| CWVRMethod () |
| CWVRMethod (const CWVRMethod &) |
CWVRMethod & | operator= (const CWVRMethod &) |
Static Private Member Functions |
static std::string | badString (const std::string &name) |
static std::string | badInt (unsigned int i) |
Detailed Description
A helper class for the enumeration WVRMethod.
Definition at line 83 of file CWVRMethod.h.
Constructor & Destructor Documentation
CWVRMethod::CWVRMethod |
( |
|
) |
[private] |
CWVRMethod::CWVRMethod |
( |
const CWVRMethod & |
|
) |
[private] |
Member Function Documentation
static std::string CWVRMethod::badInt |
( |
unsigned int |
i |
) |
[static, private] |
static std::string CWVRMethod::badString |
( |
const std::string & |
name |
) |
[static, private] |
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 |
) |
[inline, static] |
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.
Member Data Documentation
Enumerators as strings.
A const string equal to "ATM_MODEL".
Definition at line 90 of file CWVRMethod.h.
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: