A helper class for the enumeration DataScale.
More...
#include <CDataScale.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 DataScaleMod::DataScale. More...
|
|
static std::string | name (const DataScaleMod::DataScale &e) |
| Returns an enumerator as a string. More...
|
|
static std::string | toString (const DataScaleMod::DataScale &f) |
| Equivalent to the name method. More...
|
|
static const std::vector
< std::string > | names () |
| Returns vector of all the enumerators as strings. More...
|
|
static DataScaleMod::DataScale | newDataScale (const std::string &name) |
| Create a DataScale enumeration object by specifying its name. More...
|
|
static DataScaleMod::DataScale | literal (const std::string &name) |
|
static DataScaleMod::DataScale | 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 DataScale.
Definition at line 87 of file CDataScale.h.
CDataScale::CDataScale |
( |
| ) |
|
|
private |
static std::string CDataScale::badInt |
( |
unsigned int |
i | ) |
|
|
staticprivate |
static std::string CDataScale::badString |
( |
const std::string & |
name | ) |
|
|
staticprivate |
static DataScaleMod::DataScale CDataScale::from_int |
( |
unsigned int |
i | ) |
|
|
static |
Return a DataScale's enumerator given an unsigned int.
- Parameters
-
i | the index of the enumerator in DataScaleMod::DataScale. |
- Returns
- a DataScaleMod::DataScale's enumerator.
- Exceptions
-
a | string containing an error message if no enumerator could be found for this integer. |
static DataScaleMod::DataScale CDataScale::literal |
( |
const std::string & |
name | ) |
|
|
static |
Return a DataScale's enumerator given a string.
- Parameters
-
name | the string representation of the enumerator. |
- Returns
- a DataScaleMod::DataScale's enumerator.
- Exceptions
-
a | string containing an error message if no enumerator could be found for this name. |
static std::string CDataScale::name |
( |
const DataScaleMod::DataScale & |
e | ) |
|
|
static |
Returns an enumerator as a string.
- Parameters
-
e | an enumerator of DataScaleMod::DataScale. |
- Returns
- a string.
static const std::vector<std::string> CDataScale::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 DataScaleMod::DataScale CDataScale::newDataScale |
( |
const std::string & |
name | ) |
|
|
static |
Create a DataScale enumeration object by specifying its name.
static std::string CDataScale::revision |
( |
| ) |
|
|
static |
Return the revision as a string.
- Returns
- a string
static unsigned int CDataScale::size |
( |
| ) |
|
|
static |
Return the number of enumerators declared in DataScaleMod::DataScale.
- Returns
- an unsigned int.
static std::string CDataScale::toString |
( |
const DataScaleMod::DataScale & |
f | ) |
|
|
inlinestatic |
Equivalent to the name method.
Definition at line 135 of file CDataScale.h.
static int CDataScale::version |
( |
| ) |
|
|
static |
Return the major version number as an int.
- Returns
- an int.
const std::string& CDataScale::sCORRELATION |
|
static |
A const string equal to "CORRELATION".
Definition at line 98 of file CDataScale.h.
const std::string& CDataScale::sCORRELATION_COEFFICIENT |
|
static |
A const string equal to "CORRELATION_COEFFICIENT".
Definition at line 100 of file CDataScale.h.
const std::string& CDataScale::sJY |
|
static |
A const string equal to "JY".
Definition at line 96 of file CDataScale.h.
const std::string& CDataScale::sK |
|
static |
Enumerators as strings.
A const string equal to "K".
Definition at line 94 of file CDataScale.h.
The documentation for this class was generated from the following file: