A helper class for the enumeration SubscanIntent.
More...
#include <CSubscanIntent.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 SubscanIntentMod::SubscanIntent. More...
|
|
static std::string | name (const SubscanIntentMod::SubscanIntent &e) |
| Returns an enumerator as a string. More...
|
|
static std::string | toString (const SubscanIntentMod::SubscanIntent &f) |
| Equivalent to the name method. More...
|
|
static const std::vector
< std::string > | names () |
| Returns vector of all the enumerators as strings. More...
|
|
static
SubscanIntentMod::SubscanIntent | newSubscanIntent (const std::string &name) |
| Create a SubscanIntent enumeration object by specifying its name. More...
|
|
static
SubscanIntentMod::SubscanIntent | literal (const std::string &name) |
|
static
SubscanIntentMod::SubscanIntent | 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 SubscanIntent.
Definition at line 101 of file CSubscanIntent.h.
CSubscanIntent::CSubscanIntent |
( |
| ) |
|
|
private |
static std::string CSubscanIntent::badInt |
( |
unsigned int |
i | ) |
|
|
staticprivate |
static std::string CSubscanIntent::badString |
( |
const std::string & |
name | ) |
|
|
staticprivate |
static SubscanIntentMod::SubscanIntent CSubscanIntent::from_int |
( |
unsigned int |
i | ) |
|
|
static |
Return a SubscanIntent's enumerator given an unsigned int.
- Parameters
-
i | the index of the enumerator in SubscanIntentMod::SubscanIntent. |
- Returns
- a SubscanIntentMod::SubscanIntent's enumerator.
- Exceptions
-
a | string containing an error message if no enumerator could be found for this integer. |
static SubscanIntentMod::SubscanIntent CSubscanIntent::literal |
( |
const std::string & |
name | ) |
|
|
static |
Return a SubscanIntent's enumerator given a string.
- Parameters
-
name | the string representation of the enumerator. |
- Returns
- a SubscanIntentMod::SubscanIntent's enumerator.
- Exceptions
-
a | string containing an error message if no enumerator could be found for this name. |
static std::string CSubscanIntent::name |
( |
const SubscanIntentMod::SubscanIntent & |
e | ) |
|
|
static |
Returns an enumerator as a string.
- Parameters
-
e | an enumerator of SubscanIntentMod::SubscanIntent. |
- Returns
- a string.
static const std::vector<std::string> CSubscanIntent::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 SubscanIntentMod::SubscanIntent CSubscanIntent::newSubscanIntent |
( |
const std::string & |
name | ) |
|
|
static |
Create a SubscanIntent enumeration object by specifying its name.
static std::string CSubscanIntent::revision |
( |
| ) |
|
|
static |
Return the revision as a string.
- Returns
- a string
static unsigned int CSubscanIntent::size |
( |
| ) |
|
|
static |
Return the number of enumerators declared in SubscanIntentMod::SubscanIntent.
- Returns
- an unsigned int.
static std::string CSubscanIntent::toString |
( |
const SubscanIntentMod::SubscanIntent & |
f | ) |
|
|
inlinestatic |
static int CSubscanIntent::version |
( |
| ) |
|
|
static |
Return the major version number as an int.
- Returns
- an int.
const std::string& CSubscanIntent::sAMBIENT |
|
static |
const std::string& CSubscanIntent::sHOT |
|
static |
const std::string& CSubscanIntent::sIMAGE |
|
static |
const std::string& CSubscanIntent::sMIXED |
|
static |
const std::string& CSubscanIntent::sOFF_SOURCE |
|
static |
const std::string& CSubscanIntent::sON_SOURCE |
|
static |
Enumerators as strings.
A const string equal to "ON_SOURCE".
Definition at line 108 of file CSubscanIntent.h.
const std::string& CSubscanIntent::sREFERENCE |
|
static |
const std::string& CSubscanIntent::sSCANNING |
|
static |
const std::string& CSubscanIntent::sSIGNAL |
|
static |
const std::string& CSubscanIntent::sTEST |
|
static |
const std::string& CSubscanIntent::sUNSPECIFIED |
|
static |
The documentation for this class was generated from the following file: