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

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

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

Static Public Attributes

static const std::string & sDELAY_FITTING
 Enumerators as strings.
static const std::string & sPHASE_FITTING

Private Member Functions

 CPositionMethod ()
 CPositionMethod (const CPositionMethod &)
CPositionMethodoperator= (const CPositionMethod &)
 CPositionMethod ()
 CPositionMethod (const CPositionMethod &)
CPositionMethodoperator= (const CPositionMethod &)

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

Definition at line 83 of file CPositionMethod.h.


Constructor & Destructor Documentation


Member Function Documentation

static std::string CPositionMethod::badInt ( unsigned int  i) [static, private]
static std::string CPositionMethod::badInt ( unsigned int  i) [static, private]
static std::string CPositionMethod::badString ( const std::string &  name) [static, private]
static std::string CPositionMethod::badString ( const std::string &  name) [static, private]
static PositionMethodMod::PositionMethod CPositionMethod::from_int ( unsigned int  i) [static]

Return a PositionMethod's enumerator given an unsigned int.

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

Return a PositionMethod's enumerator given an unsigned int.

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

Return a PositionMethod's enumerator given a string.

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

Return a PositionMethod's enumerator given a string.

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

Returns an enumerator as a string.

Parameters:
ean enumerator of PositionMethodMod::PositionMethod.
Returns:
a string.
static std::string CPositionMethod::name ( const PositionMethodMod::PositionMethod &  e) [static]

Returns an enumerator as a string.

Parameters:
ean enumerator of PositionMethodMod::PositionMethod.
Returns:
a string.
static const std::vector<std::string> CPositionMethod::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> CPositionMethod::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 PositionMethodMod::PositionMethod CPositionMethod::newPositionMethod ( const std::string &  name) [static]

Create a PositionMethod enumeration object by specifying its name.

static PositionMethodMod::PositionMethod CPositionMethod::newPositionMethod ( const std::string &  name) [static]

Create a PositionMethod enumeration object by specifying its name.

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

Return the revision as a string.

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

Return the revision as a string.

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

Return the number of enumerators declared in PositionMethodMod::PositionMethod.

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

Return the number of enumerators declared in PositionMethodMod::PositionMethod.

Returns:
an unsigned int.
static std::string CPositionMethod::toString ( const PositionMethodMod::PositionMethod &  f) [inline, static]

Equivalent to the name method.

Definition at line 127 of file CPositionMethod.h.

static std::string CPositionMethod::toString ( const PositionMethodMod::PositionMethod &  f) [inline, static]

Equivalent to the name method.

Definition at line 127 of file CPositionMethod.h.

static int CPositionMethod::version ( ) [static]

Return the major version number as an int.

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

Return the major version number as an int.

Returns:
an int.

Member Data Documentation

static const std::string & CPositionMethod::sDELAY_FITTING [static]

Enumerators as strings.

A const string equal to "DELAY_FITTING".

Definition at line 90 of file CPositionMethod.h.

static const std::string & CPositionMethod::sPHASE_FITTING [static]

A const string equal to "PHASE_FITTING".

Definition at line 92 of file CPositionMethod.h.


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