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