casa
$Rev:20696$
|
A helper class for the enumeration DataContent. More...
#include <CDataContent.h>
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 DataContentMod::DataContent. | |
static std::string | name (const DataContentMod::DataContent &e) |
Returns an enumerator as a string. | |
static std::string | toString (const DataContentMod::DataContent &f) |
Equivalent to the name method. | |
static const std::vector < std::string > | names () |
Returns vector of all the enumerators as strings. | |
static DataContentMod::DataContent | newDataContent (const std::string &name) |
Create a DataContent enumeration object by specifying its name. | |
static DataContentMod::DataContent | literal (const std::string &name) |
static DataContentMod::DataContent | from_int (unsigned int i) |
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 DataContentMod::DataContent. | |
static std::string | name (const DataContentMod::DataContent &e) |
Returns an enumerator as a string. | |
static std::string | toString (const DataContentMod::DataContent &f) |
Equivalent to the name method. | |
static const std::vector < std::string > | names () |
Returns vector of all the enumerators as strings. | |
static DataContentMod::DataContent | newDataContent (const std::string &name) |
Create a DataContent enumeration object by specifying its name. | |
static DataContentMod::DataContent | literal (const std::string &name) |
static DataContentMod::DataContent | from_int (unsigned int i) |
Static Public Attributes | |
static const std::string & | sCROSS_DATA |
Enumerators as strings. | |
static const std::string & | sAUTO_DATA |
static const std::string & | sZERO_LAGS |
static const std::string & | sACTUAL_TIMES |
static const std::string & | sACTUAL_DURATIONS |
static const std::string & | sWEIGHTS |
static const std::string & | sFLAGS |
Private Member Functions | |
CDataContent () | |
CDataContent (const CDataContent &) | |
CDataContent & | operator= (const CDataContent &) |
CDataContent () | |
CDataContent (const CDataContent &) | |
CDataContent & | operator= (const CDataContent &) |
Static Private Member Functions | |
static std::string | badString (const std::string &name) |
static std::string | badInt (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] |
CDataContent::CDataContent | ( | const CDataContent & | ) | [private] |
CDataContent::CDataContent | ( | ) | [private] |
CDataContent::CDataContent | ( | const CDataContent & | ) | [private] |
static std::string CDataContent::badInt | ( | unsigned int | i | ) | [static, private] |
static std::string CDataContent::badInt | ( | unsigned int | i | ) | [static, private] |
static std::string CDataContent::badString | ( | const std::string & | name | ) | [static, private] |
static std::string CDataContent::badString | ( | const std::string & | name | ) | [static, private] |
static DataContentMod::DataContent CDataContent::from_int | ( | unsigned int | i | ) | [static] |
Return a DataContent's enumerator given an unsigned int.
i | the index of the enumerator in DataContentMod::DataContent. |
a | string containing an error message if no enumerator could be found for this integer. |
static DataContentMod::DataContent CDataContent::from_int | ( | unsigned int | i | ) | [static] |
Return a DataContent's enumerator given an unsigned int.
i | the index of the enumerator in DataContentMod::DataContent. |
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.
name | the string representation of the enumerator. |
a | string containing an error message if no enumerator could be found for this name. |
static DataContentMod::DataContent CDataContent::literal | ( | const std::string & | name | ) | [static] |
Return a DataContent's enumerator given a string.
name | the string representation of the enumerator. |
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.
e | an enumerator of DataContentMod::DataContent. |
static std::string CDataContent::name | ( | const DataContentMod::DataContent & | e | ) | [static] |
Returns an enumerator as a string.
e | an enumerator of DataContentMod::DataContent. |
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.
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.
static DataContentMod::DataContent CDataContent::newDataContent | ( | const std::string & | name | ) | [static] |
Create a DataContent enumeration object by specifying its name.
static DataContentMod::DataContent CDataContent::newDataContent | ( | const std::string & | name | ) | [static] |
Create a DataContent enumeration object by specifying its name.
CDataContent& CDataContent::operator= | ( | const CDataContent & | ) | [private] |
CDataContent& CDataContent::operator= | ( | const CDataContent & | ) | [private] |
static std::string CDataContent::revision | ( | ) | [static] |
Return the revision as a string.
static std::string CDataContent::revision | ( | ) | [static] |
Return the revision as a string.
static unsigned int CDataContent::size | ( | ) | [static] |
Return the number of enumerators declared in DataContentMod::DataContent.
static unsigned int CDataContent::size | ( | ) | [static] |
Return the number of enumerators declared in DataContentMod::DataContent.
static std::string CDataContent::toString | ( | const DataContentMod::DataContent & | f | ) | [inline, static] |
Equivalent to the name method.
Definition at line 147 of file CDataContent.h.
static std::string CDataContent::toString | ( | const DataContentMod::DataContent & | f | ) | [inline, static] |
Equivalent to the name method.
Definition at line 147 of file CDataContent.h.
static int CDataContent::version | ( | ) | [static] |
Return the major version number as an int.
static int CDataContent::version | ( | ) | [static] |
Return the major version number as an int.
static const std::string & CDataContent::sACTUAL_DURATIONS [static] |
A const string equal to "ACTUAL_DURATIONS".
Definition at line 108 of file CDataContent.h.
static const std::string & CDataContent::sACTUAL_TIMES [static] |
A const string equal to "ACTUAL_TIMES".
Definition at line 106 of file CDataContent.h.
static const std::string & CDataContent::sAUTO_DATA [static] |
A const string equal to "AUTO_DATA".
Definition at line 102 of file CDataContent.h.
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.
static const std::string & CDataContent::sFLAGS [static] |
A const string equal to "FLAGS".
Definition at line 112 of file CDataContent.h.
static const std::string & CDataContent::sWEIGHTS [static] |
A const string equal to "WEIGHTS".
Definition at line 110 of file CDataContent.h.
static const std::string & CDataContent::sZERO_LAGS [static] |
A const string equal to "ZERO_LAGS".
Definition at line 104 of file CDataContent.h.