A helper class for the enumeration CalType.
More...
#include <CCalType.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 CalTypeMod::CalType. More...
|
|
static std::string | name (const CalTypeMod::CalType &e) |
| Returns an enumerator as a string. More...
|
|
static std::string | toString (const CalTypeMod::CalType &f) |
| Equivalent to the name method. More...
|
|
static const std::vector
< std::string > | names () |
| Returns vector of all the enumerators as strings. More...
|
|
static CalTypeMod::CalType | newCalType (const std::string &name) |
| Create a CalType enumeration object by specifying its name. More...
|
|
static CalTypeMod::CalType | literal (const std::string &name) |
|
static CalTypeMod::CalType | 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 CalType.
Definition at line 115 of file CCalType.h.
static std::string CCalType::badInt |
( |
unsigned int |
i | ) |
|
|
staticprivate |
static std::string CCalType::badString |
( |
const std::string & |
name | ) |
|
|
staticprivate |
static CalTypeMod::CalType CCalType::from_int |
( |
unsigned int |
i | ) |
|
|
static |
Return a CalType's enumerator given an unsigned int.
- Parameters
-
i | the index of the enumerator in CalTypeMod::CalType. |
- Returns
- a CalTypeMod::CalType's enumerator.
- Exceptions
-
a | string containing an error message if no enumerator could be found for this integer. |
static CalTypeMod::CalType CCalType::literal |
( |
const std::string & |
name | ) |
|
|
static |
Return a CalType's enumerator given a string.
- Parameters
-
name | the string representation of the enumerator. |
- Returns
- a CalTypeMod::CalType's enumerator.
- Exceptions
-
a | string containing an error message if no enumerator could be found for this name. |
static std::string CCalType::name |
( |
const CalTypeMod::CalType & |
e | ) |
|
|
static |
Returns an enumerator as a string.
- Parameters
-
e | an enumerator of CalTypeMod::CalType. |
- Returns
- a string.
static const std::vector<std::string> CCalType::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 CalTypeMod::CalType CCalType::newCalType |
( |
const std::string & |
name | ) |
|
|
static |
Create a CalType enumeration object by specifying its name.
static std::string CCalType::revision |
( |
| ) |
|
|
static |
Return the revision as a string.
- Returns
- a string
static unsigned int CCalType::size |
( |
| ) |
|
|
static |
Return the number of enumerators declared in CalTypeMod::CalType.
- Returns
- an unsigned int.
static std::string CCalType::toString |
( |
const CalTypeMod::CalType & |
f | ) |
|
|
inlinestatic |
Equivalent to the name method.
Definition at line 191 of file CCalType.h.
static int CCalType::version |
( |
| ) |
|
|
static |
Return the major version number as an int.
- Returns
- an int.
const std::string& CCalType::sCAL_AMPLI |
|
static |
Enumerators as strings.
A const string equal to "CAL_AMPLI".
Definition at line 122 of file CCalType.h.
const std::string& CCalType::sCAL_APPPHASE |
|
static |
A const string equal to "CAL_APPPHASE".
Definition at line 156 of file CCalType.h.
const std::string& CCalType::sCAL_ATMOSPHERE |
|
static |
A const string equal to "CAL_ATMOSPHERE".
Definition at line 124 of file CCalType.h.
const std::string& CCalType::sCAL_BANDPASS |
|
static |
A const string equal to "CAL_BANDPASS".
Definition at line 126 of file CCalType.h.
const std::string& CCalType::sCAL_CURVE |
|
static |
A const string equal to "CAL_CURVE".
Definition at line 128 of file CCalType.h.
const std::string& CCalType::sCAL_DELAY |
|
static |
A const string equal to "CAL_DELAY".
Definition at line 130 of file CCalType.h.
const std::string& CCalType::sCAL_FLUX |
|
static |
A const string equal to "CAL_FLUX".
Definition at line 132 of file CCalType.h.
const std::string& CCalType::sCAL_FOCUS |
|
static |
A const string equal to "CAL_FOCUS".
Definition at line 134 of file CCalType.h.
const std::string& CCalType::sCAL_FOCUS_MODEL |
|
static |
A const string equal to "CAL_FOCUS_MODEL".
Definition at line 136 of file CCalType.h.
const std::string& CCalType::sCAL_GAIN |
|
static |
A const string equal to "CAL_GAIN".
Definition at line 138 of file CCalType.h.
const std::string& CCalType::sCAL_HOLOGRAPHY |
|
static |
A const string equal to "CAL_HOLOGRAPHY".
Definition at line 140 of file CCalType.h.
const std::string& CCalType::sCAL_PHASE |
|
static |
A const string equal to "CAL_PHASE".
Definition at line 142 of file CCalType.h.
const std::string& CCalType::sCAL_POINTING |
|
static |
A const string equal to "CAL_POINTING".
Definition at line 144 of file CCalType.h.
const std::string& CCalType::sCAL_POINTING_MODEL |
|
static |
A const string equal to "CAL_POINTING_MODEL".
Definition at line 146 of file CCalType.h.
const std::string& CCalType::sCAL_POSITION |
|
static |
A const string equal to "CAL_POSITION".
Definition at line 148 of file CCalType.h.
const std::string& CCalType::sCAL_PRIMARY_BEAM |
|
static |
A const string equal to "CAL_PRIMARY_BEAM".
Definition at line 150 of file CCalType.h.
const std::string& CCalType::sCAL_SEEING |
|
static |
A const string equal to "CAL_SEEING".
Definition at line 152 of file CCalType.h.
const std::string& CCalType::sCAL_WVR |
|
static |
A const string equal to "CAL_WVR".
Definition at line 154 of file CCalType.h.
The documentation for this class was generated from the following file: