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

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

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

Static Public Attributes

static const std::string & sAMPLITUDE
 Enumerators as strings. More...
 
static const std::string & sPHASE
 
static const std::string & sUNDEFINED
 

Private Member Functions

 CCalCurveType ()
 
 CCalCurveType (const CCalCurveType &)
 
CCalCurveTypeoperator= (const CCalCurveType &)
 

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

Definition at line 85 of file CCalCurveType.h.

Constructor & Destructor Documentation

CCalCurveType::CCalCurveType ( )
private
CCalCurveType::CCalCurveType ( const CCalCurveType )
private

Member Function Documentation

static std::string CCalCurveType::badInt ( unsigned int  i)
staticprivate
static std::string CCalCurveType::badString ( const std::string &  name)
staticprivate
static CalCurveTypeMod::CalCurveType CCalCurveType::from_int ( unsigned int  i)
static

Return a CalCurveType's enumerator given an unsigned int.

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

Return a CalCurveType's enumerator given a string.

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

Returns an enumerator as a string.

Parameters
ean enumerator of CalCurveTypeMod::CalCurveType.
Returns
a string.
static const std::vector<std::string> CCalCurveType::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 CalCurveTypeMod::CalCurveType CCalCurveType::newCalCurveType ( const std::string &  name)
static

Create a CalCurveType enumeration object by specifying its name.

CCalCurveType& CCalCurveType::operator= ( const CCalCurveType )
private
static std::string CCalCurveType::revision ( )
static

Return the revision as a string.

Returns
a string
static unsigned int CCalCurveType::size ( )
static

Return the number of enumerators declared in CalCurveTypeMod::CalCurveType.

Returns
an unsigned int.
static std::string CCalCurveType::toString ( const CalCurveTypeMod::CalCurveType &  f)
inlinestatic

Equivalent to the name method.

Definition at line 131 of file CCalCurveType.h.

static int CCalCurveType::version ( )
static

Return the major version number as an int.

Returns
an int.

Member Data Documentation

const std::string& CCalCurveType::sAMPLITUDE
static

Enumerators as strings.

A const string equal to "AMPLITUDE".

Definition at line 92 of file CCalCurveType.h.

const std::string& CCalCurveType::sPHASE
static

A const string equal to "PHASE".

Definition at line 94 of file CCalCurveType.h.

const std::string& CCalCurveType::sUNDEFINED
static

A const string equal to "UNDEFINED".

Definition at line 96 of file CCalCurveType.h.


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