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