A helper class for the enumeration CalibrationDevice.
More...
#include <CCalibrationDevice.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 CalibrationDeviceMod::CalibrationDevice. More...
|
|
static std::string | name (const CalibrationDeviceMod::CalibrationDevice &e) |
| Returns an enumerator as a string. More...
|
|
static std::string | toString (const CalibrationDeviceMod::CalibrationDevice &f) |
| Equivalent to the name method. More...
|
|
static const std::vector
< std::string > | names () |
| Returns vector of all the enumerators as strings. More...
|
|
static
CalibrationDeviceMod::CalibrationDevice | newCalibrationDevice (const std::string &name) |
| Create a CalibrationDevice enumeration object by specifying its name. More...
|
|
static
CalibrationDeviceMod::CalibrationDevice | literal (const std::string &name) |
|
static
CalibrationDeviceMod::CalibrationDevice | 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 CalibrationDevice.
Definition at line 93 of file CCalibrationDevice.h.
CCalibrationDevice::CCalibrationDevice |
( |
| ) |
|
|
private |
static std::string CCalibrationDevice::badInt |
( |
unsigned int |
i | ) |
|
|
staticprivate |
static std::string CCalibrationDevice::badString |
( |
const std::string & |
name | ) |
|
|
staticprivate |
static CalibrationDeviceMod::CalibrationDevice CCalibrationDevice::from_int |
( |
unsigned int |
i | ) |
|
|
static |
Return a CalibrationDevice's enumerator given an unsigned int.
- Parameters
-
i | the index of the enumerator in CalibrationDeviceMod::CalibrationDevice. |
- Returns
- a CalibrationDeviceMod::CalibrationDevice's enumerator.
- Exceptions
-
a | string containing an error message if no enumerator could be found for this integer. |
static CalibrationDeviceMod::CalibrationDevice CCalibrationDevice::literal |
( |
const std::string & |
name | ) |
|
|
static |
Return a CalibrationDevice's enumerator given a string.
- Parameters
-
name | the string representation of the enumerator. |
- Returns
- a CalibrationDeviceMod::CalibrationDevice's enumerator.
- Exceptions
-
a | string containing an error message if no enumerator could be found for this name. |
static std::string CCalibrationDevice::name |
( |
const CalibrationDeviceMod::CalibrationDevice & |
e | ) |
|
|
static |
Returns an enumerator as a string.
- Parameters
-
e | an enumerator of CalibrationDeviceMod::CalibrationDevice. |
- Returns
- a string.
static const std::vector<std::string> CCalibrationDevice::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 CalibrationDeviceMod::CalibrationDevice CCalibrationDevice::newCalibrationDevice |
( |
const std::string & |
name | ) |
|
|
static |
Create a CalibrationDevice enumeration object by specifying its name.
static std::string CCalibrationDevice::revision |
( |
| ) |
|
|
static |
Return the revision as a string.
- Returns
- a string
static unsigned int CCalibrationDevice::size |
( |
| ) |
|
|
static |
Return the number of enumerators declared in CalibrationDeviceMod::CalibrationDevice.
- Returns
- an unsigned int.
static std::string CCalibrationDevice::toString |
( |
const CalibrationDeviceMod::CalibrationDevice & |
f | ) |
|
|
inlinestatic |
static int CCalibrationDevice::version |
( |
| ) |
|
|
static |
Return the major version number as an int.
- Returns
- an int.
const std::string& CCalibrationDevice::sAMBIENT_LOAD |
|
static |
Enumerators as strings.
A const string equal to "AMBIENT_LOAD".
Definition at line 100 of file CCalibrationDevice.h.
const std::string& CCalibrationDevice::sCOLD_LOAD |
|
static |
const std::string& CCalibrationDevice::sHOT_LOAD |
|
static |
const std::string& CCalibrationDevice::sNOISE_TUBE_LOAD |
|
static |
const std::string& CCalibrationDevice::sNONE |
|
static |
const std::string& CCalibrationDevice::sQUARTER_WAVE_PLATE |
|
static |
const std::string& CCalibrationDevice::sSOLAR_FILTER |
|
static |
The documentation for this class was generated from the following file: