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