A helper class for the enumeration DataContent.
More...
#include <CDataContent.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 DataContentMod::DataContent. More...
|
|
static std::string | name (const DataContentMod::DataContent &e) |
| Returns an enumerator as a string. More...
|
|
static std::string | toString (const DataContentMod::DataContent &f) |
| Equivalent to the name method. More...
|
|
static const std::vector
< std::string > | names () |
| Returns vector of all the enumerators as strings. More...
|
|
static DataContentMod::DataContent | newDataContent (const std::string &name) |
| Create a DataContent enumeration object by specifying its name. More...
|
|
static DataContentMod::DataContent | literal (const std::string &name) |
|
static DataContentMod::DataContent | 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 DataContent.
Definition at line 93 of file CDataContent.h.
CDataContent::CDataContent |
( |
| ) |
|
|
private |
static std::string CDataContent::badInt |
( |
unsigned int |
i | ) |
|
|
staticprivate |
static std::string CDataContent::badString |
( |
const std::string & |
name | ) |
|
|
staticprivate |
static DataContentMod::DataContent CDataContent::from_int |
( |
unsigned int |
i | ) |
|
|
static |
Return a DataContent's enumerator given an unsigned int.
- Parameters
-
i | the index of the enumerator in DataContentMod::DataContent. |
- Returns
- a DataContentMod::DataContent's enumerator.
- Exceptions
-
a | string containing an error message if no enumerator could be found for this integer. |
static DataContentMod::DataContent CDataContent::literal |
( |
const std::string & |
name | ) |
|
|
static |
Return a DataContent's enumerator given a string.
- Parameters
-
name | the string representation of the enumerator. |
- Returns
- a DataContentMod::DataContent's enumerator.
- Exceptions
-
a | string containing an error message if no enumerator could be found for this name. |
static std::string CDataContent::name |
( |
const DataContentMod::DataContent & |
e | ) |
|
|
static |
Returns an enumerator as a string.
- Parameters
-
e | an enumerator of DataContentMod::DataContent. |
- Returns
- a string.
static const std::vector<std::string> CDataContent::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 DataContentMod::DataContent CDataContent::newDataContent |
( |
const std::string & |
name | ) |
|
|
static |
Create a DataContent enumeration object by specifying its name.
static std::string CDataContent::revision |
( |
| ) |
|
|
static |
Return the revision as a string.
- Returns
- a string
static unsigned int CDataContent::size |
( |
| ) |
|
|
static |
Return the number of enumerators declared in DataContentMod::DataContent.
- Returns
- an unsigned int.
static std::string CDataContent::toString |
( |
const DataContentMod::DataContent & |
f | ) |
|
|
inlinestatic |
static int CDataContent::version |
( |
| ) |
|
|
static |
Return the major version number as an int.
- Returns
- an int.
const std::string& CDataContent::sACTUAL_DURATIONS |
|
static |
A const string equal to "ACTUAL_DURATIONS".
Definition at line 108 of file CDataContent.h.
const std::string& CDataContent::sACTUAL_TIMES |
|
static |
A const string equal to "ACTUAL_TIMES".
Definition at line 106 of file CDataContent.h.
const std::string& CDataContent::sAUTO_DATA |
|
static |
const std::string& CDataContent::sCROSS_DATA |
|
static |
Enumerators as strings.
A const string equal to "CROSS_DATA".
Definition at line 100 of file CDataContent.h.
const std::string& CDataContent::sFLAGS |
|
static |
const std::string& CDataContent::sWEIGHTS |
|
static |
const std::string& CDataContent::sZERO_LAGS |
|
static |
The documentation for this class was generated from the following file: