CWeightType Class Reference
A helper class for the enumeration WeightType.
More...
#include <CWeightType.h>
List of all members.
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 WeightTypeMod::WeightType.
|
| static std::string | name (const WeightTypeMod::WeightType &e) |
| | Returns an enumerator as a string.
|
| static std::string | toString (const WeightTypeMod::WeightType &f) |
| | Equivalent to the name method.
|
static const std::vector
< std::string > | names () |
| | Returns vector of all the enumerators as strings.
|
| static WeightTypeMod::WeightType | newWeightType (const std::string &name) |
| | Create a WeightType enumeration object by specifying its name.
|
| static WeightTypeMod::WeightType | literal (const std::string &name) |
| static WeightTypeMod::WeightType | from_int (unsigned int i) |
Static Public Attributes |
| static const std::string & | sK |
| | Enumerators as strings.
|
| static const std::string & | sJY |
| static const std::string & | sCOUNT_WEIGHT |
Private Member Functions |
| | CWeightType () |
| | CWeightType (const CWeightType &) |
| CWeightType & | operator= (const CWeightType &) |
Static Private Member Functions |
| static std::string | badString (const std::string &name) |
| static std::string | badInt (unsigned int i) |
Detailed Description
A helper class for the enumeration WeightType.
Definition at line 85 of file CWeightType.h.
Constructor & Destructor Documentation
| CWeightType::CWeightType |
( |
|
) |
[private] |
| CWeightType::CWeightType |
( |
const CWeightType & |
|
) |
[private] |
Member Function Documentation
| static std::string CWeightType::badInt |
( |
unsigned int |
i |
) |
[static, private] |
| static std::string CWeightType::badString |
( |
const std::string & |
name |
) |
[static, private] |
| static WeightTypeMod::WeightType CWeightType::from_int |
( |
unsigned int |
i |
) |
[static] |
Return a WeightType's enumerator given an unsigned int.
- Parameters:
-
| i | the index of the enumerator in WeightTypeMod::WeightType. |
- Returns:
- a WeightTypeMod::WeightType's enumerator.
- Exceptions:
-
| a | string containing an error message if no enumerator could be found for this integer. |
| static WeightTypeMod::WeightType CWeightType::literal |
( |
const std::string & |
name |
) |
[static] |
Return a WeightType's enumerator given a string.
- Parameters:
-
| name | the string representation of the enumerator. |
- Returns:
- a WeightTypeMod::WeightType's enumerator.
- Exceptions:
-
| a | string containing an error message if no enumerator could be found for this name. |
| static std::string CWeightType::name |
( |
const WeightTypeMod::WeightType & |
e |
) |
[static] |
Returns an enumerator as a string.
- Parameters:
-
| e | an enumerator of WeightTypeMod::WeightType. |
- Returns:
- a string.
| static const std::vector<std::string> CWeightType::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 WeightTypeMod::WeightType CWeightType::newWeightType |
( |
const std::string & |
name |
) |
[static] |
Create a WeightType enumeration object by specifying its name.
| static std::string CWeightType::revision |
( |
|
) |
[static] |
Return the revision as a string.
- Returns:
- a string
| static unsigned int CWeightType::size |
( |
|
) |
[static] |
Return the number of enumerators declared in WeightTypeMod::WeightType.
- Returns:
- an unsigned int.
| static std::string CWeightType::toString |
( |
const WeightTypeMod::WeightType & |
f |
) |
[inline, static] |
| static int CWeightType::version |
( |
|
) |
[static] |
Return the major version number as an int.
- Returns:
- an int.
Member Data Documentation
A const string equal to "COUNT_WEIGHT".
Definition at line 96 of file CWeightType.h.
Enumerators as strings.
A const string equal to "K".
Definition at line 92 of file CWeightType.h.
The documentation for this class was generated from the following file: