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
CPointingMethod Class Reference

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

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

Static Public Attributes

static const std::string & sTHREE_POINT
 Enumerators as strings.
static const std::string & sFOUR_POINT
static const std::string & sFIVE_POINT
static const std::string & sCROSS
static const std::string & sCIRCLE

Private Member Functions

 CPointingMethod ()
 CPointingMethod (const CPointingMethod &)
CPointingMethodoperator= (const CPointingMethod &)
 CPointingMethod ()
 CPointingMethod (const CPointingMethod &)
CPointingMethodoperator= (const CPointingMethod &)

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 PointingMethod.

Definition at line 89 of file CPointingMethod.h.


Constructor & Destructor Documentation


Member Function Documentation

static std::string CPointingMethod::badInt ( unsigned int  i) [static, private]
static std::string CPointingMethod::badInt ( unsigned int  i) [static, private]
static std::string CPointingMethod::badString ( const std::string &  name) [static, private]
static std::string CPointingMethod::badString ( const std::string &  name) [static, private]
static PointingMethodMod::PointingMethod CPointingMethod::from_int ( unsigned int  i) [static]

Return a PointingMethod's enumerator given an unsigned int.

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

Return a PointingMethod's enumerator given an unsigned int.

Parameters:
ithe index of the enumerator in PointingMethodMod::PointingMethod.
Returns:
a PointingMethodMod::PointingMethod's enumerator.
Exceptions:
astring containing an error message if no enumerator could be found for this integer.
static PointingMethodMod::PointingMethod CPointingMethod::literal ( const std::string &  name) [static]

Return a PointingMethod's enumerator given a string.

Parameters:
namethe string representation of the enumerator.
Returns:
a PointingMethodMod::PointingMethod's enumerator.
Exceptions:
astring containing an error message if no enumerator could be found for this name.
static PointingMethodMod::PointingMethod CPointingMethod::literal ( const std::string &  name) [static]

Return a PointingMethod's enumerator given a string.

Parameters:
namethe string representation of the enumerator.
Returns:
a PointingMethodMod::PointingMethod's enumerator.
Exceptions:
astring containing an error message if no enumerator could be found for this name.
static std::string CPointingMethod::name ( const PointingMethodMod::PointingMethod &  e) [static]

Returns an enumerator as a string.

Parameters:
ean enumerator of PointingMethodMod::PointingMethod.
Returns:
a string.
static std::string CPointingMethod::name ( const PointingMethodMod::PointingMethod &  e) [static]

Returns an enumerator as a string.

Parameters:
ean enumerator of PointingMethodMod::PointingMethod.
Returns:
a string.
static const std::vector<std::string> CPointingMethod::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> CPointingMethod::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 PointingMethodMod::PointingMethod CPointingMethod::newPointingMethod ( const std::string &  name) [static]

Create a PointingMethod enumeration object by specifying its name.

static PointingMethodMod::PointingMethod CPointingMethod::newPointingMethod ( const std::string &  name) [static]

Create a PointingMethod enumeration object by specifying its name.

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

Return the revision as a string.

Returns:
a string
static std::string CPointingMethod::revision ( ) [static]

Return the revision as a string.

Returns:
a string
static unsigned int CPointingMethod::size ( ) [static]

Return the number of enumerators declared in PointingMethodMod::PointingMethod.

Returns:
an unsigned int.
static unsigned int CPointingMethod::size ( ) [static]

Return the number of enumerators declared in PointingMethodMod::PointingMethod.

Returns:
an unsigned int.
static std::string CPointingMethod::toString ( const PointingMethodMod::PointingMethod &  f) [inline, static]

Equivalent to the name method.

Definition at line 139 of file CPointingMethod.h.

static std::string CPointingMethod::toString ( const PointingMethodMod::PointingMethod &  f) [inline, static]

Equivalent to the name method.

Definition at line 139 of file CPointingMethod.h.

static int CPointingMethod::version ( ) [static]

Return the major version number as an int.

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

Return the major version number as an int.

Returns:
an int.

Member Data Documentation

static const std::string & CPointingMethod::sCIRCLE [static]

A const string equal to "CIRCLE".

Definition at line 104 of file CPointingMethod.h.

static const std::string & CPointingMethod::sCROSS [static]

A const string equal to "CROSS".

Definition at line 102 of file CPointingMethod.h.

static const std::string & CPointingMethod::sFIVE_POINT [static]

A const string equal to "FIVE_POINT".

Definition at line 100 of file CPointingMethod.h.

static const std::string & CPointingMethod::sFOUR_POINT [static]

A const string equal to "FOUR_POINT".

Definition at line 98 of file CPointingMethod.h.

static const std::string & CPointingMethod::sTHREE_POINT [static]

Enumerators as strings.

A const string equal to "THREE_POINT".

Definition at line 96 of file CPointingMethod.h.


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