casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Static Public Member Functions | Static Public Attributes | Private Member Functions | Static Private Member Functions | List of all members
CPositionMethod Class Reference

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

#include <CPositionMethod.h>

Static Public Member Functions

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

Private Member Functions

 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)
 

Detailed Description

A helper class for the enumeration PositionMethod.

Definition at line 83 of file CPositionMethod.h.

Constructor & Destructor Documentation

CPositionMethod::CPositionMethod ( )
private
CPositionMethod::CPositionMethod ( const CPositionMethod )
private

Member Function Documentation

static std::string CPositionMethod::badInt ( unsigned int  i)
staticprivate
static std::string CPositionMethod::badString ( const std::string &  name)
staticprivate
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 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 PositionMethodMod::PositionMethod CPositionMethod::newPositionMethod ( const std::string &  name)
static

Create a PositionMethod enumeration object by specifying its name.

CPositionMethod& CPositionMethod::operator= ( const CPositionMethod )
private
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 std::string CPositionMethod::toString ( const PositionMethodMod::PositionMethod &  f)
inlinestatic

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.

Member Data Documentation

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.

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 file: