casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Static Public Member Functions | Static Public Attributes | Private Member Functions | Static Private Member Functions
CSubscanIntent Class Reference

A helper class for the enumeration SubscanIntent. More...

#include <CSubscanIntent.h>

List of all members.

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 SubscanIntentMod::SubscanIntent.
static std::string name (const SubscanIntentMod::SubscanIntent &e)
 Returns an enumerator as a string.
static std::string toString (const SubscanIntentMod::SubscanIntent &f)
 Equivalent to the name method.
static const std::vector
< std::string > 
names ()
 Returns vector of all the enumerators as strings.
static
SubscanIntentMod::SubscanIntent 
newSubscanIntent (const std::string &name)
 Create a SubscanIntent enumeration object by specifying its name.
static
SubscanIntentMod::SubscanIntent 
literal (const std::string &name)
static
SubscanIntentMod::SubscanIntent 
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 SubscanIntentMod::SubscanIntent.
static std::string name (const SubscanIntentMod::SubscanIntent &e)
 Returns an enumerator as a string.
static std::string toString (const SubscanIntentMod::SubscanIntent &f)
 Equivalent to the name method.
static const std::vector
< std::string > 
names ()
 Returns vector of all the enumerators as strings.
static
SubscanIntentMod::SubscanIntent 
newSubscanIntent (const std::string &name)
 Create a SubscanIntent enumeration object by specifying its name.
static
SubscanIntentMod::SubscanIntent 
literal (const std::string &name)
static
SubscanIntentMod::SubscanIntent 
from_int (unsigned int i)

Static Public Attributes

static const std::string & sON_SOURCE
 Enumerators as strings.
static const std::string & sOFF_SOURCE
static const std::string & sMIXED
static const std::string & sREFERENCE
static const std::string & sSCANNING
static const std::string & sHOT
static const std::string & sAMBIENT
static const std::string & sSIGNAL
static const std::string & sIMAGE
static const std::string & sTEST
static const std::string & sUNSPECIFIED

Private Member Functions

 CSubscanIntent ()
 CSubscanIntent (const CSubscanIntent &)
CSubscanIntentoperator= (const CSubscanIntent &)
 CSubscanIntent ()
 CSubscanIntent (const CSubscanIntent &)
CSubscanIntentoperator= (const CSubscanIntent &)

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)

Detailed Description

A helper class for the enumeration SubscanIntent.

Definition at line 101 of file CSubscanIntent.h.


Constructor & Destructor Documentation


Member Function Documentation

static std::string CSubscanIntent::badInt ( unsigned int  i) [static, private]
static std::string CSubscanIntent::badInt ( unsigned int  i) [static, private]
static std::string CSubscanIntent::badString ( const std::string &  name) [static, private]
static std::string CSubscanIntent::badString ( const std::string &  name) [static, private]
static SubscanIntentMod::SubscanIntent CSubscanIntent::from_int ( unsigned int  i) [static]

Return a SubscanIntent's enumerator given an unsigned int.

Parameters:
ithe index of the enumerator in SubscanIntentMod::SubscanIntent.
Returns:
a SubscanIntentMod::SubscanIntent's enumerator.
Exceptions:
astring containing an error message if no enumerator could be found for this integer.
static SubscanIntentMod::SubscanIntent CSubscanIntent::from_int ( unsigned int  i) [static]

Return a SubscanIntent's enumerator given an unsigned int.

Parameters:
ithe index of the enumerator in SubscanIntentMod::SubscanIntent.
Returns:
a SubscanIntentMod::SubscanIntent's enumerator.
Exceptions:
astring 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:
namethe string representation of the enumerator.
Returns:
a SubscanIntentMod::SubscanIntent's enumerator.
Exceptions:
astring containing an error message if no enumerator could be found for this name.
static SubscanIntentMod::SubscanIntent CSubscanIntent::literal ( const std::string &  name) [static]

Return a SubscanIntent's enumerator given a string.

Parameters:
namethe string representation of the enumerator.
Returns:
a SubscanIntentMod::SubscanIntent's enumerator.
Exceptions:
astring 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:
ean enumerator of SubscanIntentMod::SubscanIntent.
Returns:
a string.
static std::string CSubscanIntent::name ( const SubscanIntentMod::SubscanIntent &  e) [static]

Returns an enumerator as a string.

Parameters:
ean 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 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 SubscanIntentMod::SubscanIntent CSubscanIntent::newSubscanIntent ( const std::string &  name) [static]

Create a SubscanIntent enumeration object by specifying its name.

CSubscanIntent& CSubscanIntent::operator= ( const CSubscanIntent ) [private]
CSubscanIntent& CSubscanIntent::operator= ( const CSubscanIntent ) [private]
static std::string CSubscanIntent::revision ( ) [static]

Return the revision as a string.

Returns:
a string
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 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) [inline, static]

Equivalent to the name method.

Definition at line 163 of file CSubscanIntent.h.

static std::string CSubscanIntent::toString ( const SubscanIntentMod::SubscanIntent &  f) [inline, static]

Equivalent to the name method.

Definition at line 163 of file CSubscanIntent.h.

static int CSubscanIntent::version ( ) [static]

Return the major version number as an int.

Returns:
an int.
static int CSubscanIntent::version ( ) [static]

Return the major version number as an int.

Returns:
an int.

Member Data Documentation

static const std::string & CSubscanIntent::sAMBIENT [static]

A const string equal to "AMBIENT".

Definition at line 120 of file CSubscanIntent.h.

static const std::string & CSubscanIntent::sHOT [static]

A const string equal to "HOT".

Definition at line 118 of file CSubscanIntent.h.

static const std::string & CSubscanIntent::sIMAGE [static]

A const string equal to "IMAGE".

Definition at line 124 of file CSubscanIntent.h.

static const std::string & CSubscanIntent::sMIXED [static]

A const string equal to "MIXED".

Definition at line 112 of file CSubscanIntent.h.

static const std::string & CSubscanIntent::sOFF_SOURCE [static]

A const string equal to "OFF_SOURCE".

Definition at line 110 of file CSubscanIntent.h.

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.

static const std::string & CSubscanIntent::sREFERENCE [static]

A const string equal to "REFERENCE".

Definition at line 114 of file CSubscanIntent.h.

static const std::string & CSubscanIntent::sSCANNING [static]

A const string equal to "SCANNING".

Definition at line 116 of file CSubscanIntent.h.

static const std::string & CSubscanIntent::sSIGNAL [static]

A const string equal to "SIGNAL".

Definition at line 122 of file CSubscanIntent.h.

static const std::string & CSubscanIntent::sTEST [static]

A const string equal to "TEST".

Definition at line 126 of file CSubscanIntent.h.

static const std::string & CSubscanIntent::sUNSPECIFIED [static]

A const string equal to "UNSPECIFIED".

Definition at line 128 of file CSubscanIntent.h.


The documentation for this class was generated from the following files: