casa
$Rev:20696$
|
A helper class for the enumeration SourceModel. More...
#include <CSourceModel.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 SourceModelMod::SourceModel. | |
static std::string | name (const SourceModelMod::SourceModel &e) |
Returns an enumerator as a string. | |
static std::string | toString (const SourceModelMod::SourceModel &f) |
Equivalent to the name method. | |
static const std::vector < std::string > | names () |
Returns vector of all the enumerators as strings. | |
static SourceModelMod::SourceModel | newSourceModel (const std::string &name) |
Create a SourceModel enumeration object by specifying its name. | |
static SourceModelMod::SourceModel | literal (const std::string &name) |
static SourceModelMod::SourceModel | 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 SourceModelMod::SourceModel. | |
static std::string | name (const SourceModelMod::SourceModel &e) |
Returns an enumerator as a string. | |
static std::string | toString (const SourceModelMod::SourceModel &f) |
Equivalent to the name method. | |
static const std::vector < std::string > | names () |
Returns vector of all the enumerators as strings. | |
static SourceModelMod::SourceModel | newSourceModel (const std::string &name) |
Create a SourceModel enumeration object by specifying its name. | |
static SourceModelMod::SourceModel | literal (const std::string &name) |
static SourceModelMod::SourceModel | from_int (unsigned int i) |
Static Public Attributes | |
static const std::string & | sGAUSSIAN |
Enumerators as strings. | |
static const std::string & | sPOINT |
static const std::string & | sDISK |
Private Member Functions | |
CSourceModel () | |
CSourceModel (const CSourceModel &) | |
CSourceModel & | operator= (const CSourceModel &) |
CSourceModel () | |
CSourceModel (const CSourceModel &) | |
CSourceModel & | operator= (const CSourceModel &) |
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 SourceModel.
Definition at line 85 of file CSourceModel.h.
CSourceModel::CSourceModel | ( | ) | [private] |
CSourceModel::CSourceModel | ( | const CSourceModel & | ) | [private] |
CSourceModel::CSourceModel | ( | ) | [private] |
CSourceModel::CSourceModel | ( | const CSourceModel & | ) | [private] |
static std::string CSourceModel::badInt | ( | unsigned int | i | ) | [static, private] |
static std::string CSourceModel::badInt | ( | unsigned int | i | ) | [static, private] |
static std::string CSourceModel::badString | ( | const std::string & | name | ) | [static, private] |
static std::string CSourceModel::badString | ( | const std::string & | name | ) | [static, private] |
static SourceModelMod::SourceModel CSourceModel::from_int | ( | unsigned int | i | ) | [static] |
Return a SourceModel's enumerator given an unsigned int.
i | the index of the enumerator in SourceModelMod::SourceModel. |
a | string containing an error message if no enumerator could be found for this integer. |
static SourceModelMod::SourceModel CSourceModel::from_int | ( | unsigned int | i | ) | [static] |
Return a SourceModel's enumerator given an unsigned int.
i | the index of the enumerator in SourceModelMod::SourceModel. |
a | string containing an error message if no enumerator could be found for this integer. |
static SourceModelMod::SourceModel CSourceModel::literal | ( | const std::string & | name | ) | [static] |
Return a SourceModel'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 SourceModelMod::SourceModel CSourceModel::literal | ( | const std::string & | name | ) | [static] |
Return a SourceModel'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 CSourceModel::name | ( | const SourceModelMod::SourceModel & | e | ) | [static] |
Returns an enumerator as a string.
e | an enumerator of SourceModelMod::SourceModel. |
static std::string CSourceModel::name | ( | const SourceModelMod::SourceModel & | e | ) | [static] |
Returns an enumerator as a string.
e | an enumerator of SourceModelMod::SourceModel. |
static const std::vector<std::string> CSourceModel::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> CSourceModel::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 SourceModelMod::SourceModel CSourceModel::newSourceModel | ( | const std::string & | name | ) | [static] |
Create a SourceModel enumeration object by specifying its name.
static SourceModelMod::SourceModel CSourceModel::newSourceModel | ( | const std::string & | name | ) | [static] |
Create a SourceModel enumeration object by specifying its name.
CSourceModel& CSourceModel::operator= | ( | const CSourceModel & | ) | [private] |
CSourceModel& CSourceModel::operator= | ( | const CSourceModel & | ) | [private] |
static std::string CSourceModel::revision | ( | ) | [static] |
Return the revision as a string.
static std::string CSourceModel::revision | ( | ) | [static] |
Return the revision as a string.
static unsigned int CSourceModel::size | ( | ) | [static] |
Return the number of enumerators declared in SourceModelMod::SourceModel.
static unsigned int CSourceModel::size | ( | ) | [static] |
Return the number of enumerators declared in SourceModelMod::SourceModel.
static std::string CSourceModel::toString | ( | const SourceModelMod::SourceModel & | f | ) | [inline, static] |
Equivalent to the name method.
Definition at line 131 of file CSourceModel.h.
static std::string CSourceModel::toString | ( | const SourceModelMod::SourceModel & | f | ) | [inline, static] |
Equivalent to the name method.
Definition at line 131 of file CSourceModel.h.
static int CSourceModel::version | ( | ) | [static] |
Return the major version number as an int.
static int CSourceModel::version | ( | ) | [static] |
Return the major version number as an int.
static const std::string & CSourceModel::sDISK [static] |
A const string equal to "DISK".
Definition at line 96 of file CSourceModel.h.
static const std::string & CSourceModel::sGAUSSIAN [static] |
Enumerators as strings.
A const string equal to "GAUSSIAN".
Definition at line 92 of file CSourceModel.h.
static const std::string & CSourceModel::sPOINT [static] |
A const string equal to "POINT".
Definition at line 94 of file CSourceModel.h.