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

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

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

Static Public Attributes

static const std::string & sATM_MODEL
 Enumerators as strings. More...
 
static const std::string & sEMPIRICAL
 

Private Member Functions

 CWVRMethod ()
 
 CWVRMethod (const CWVRMethod &)
 
CWVRMethodoperator= (const CWVRMethod &)
 

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

Definition at line 83 of file CWVRMethod.h.

Constructor & Destructor Documentation

CWVRMethod::CWVRMethod ( )
private
CWVRMethod::CWVRMethod ( const CWVRMethod )
private

Member Function Documentation

static std::string CWVRMethod::badInt ( unsigned int  i)
staticprivate
static std::string CWVRMethod::badString ( const std::string &  name)
staticprivate
static WVRMethodMod::WVRMethod CWVRMethod::from_int ( unsigned int  i)
static

Return a WVRMethod's enumerator given an unsigned int.

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

Return a WVRMethod's enumerator given a string.

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

Returns an enumerator as a string.

Parameters
ean enumerator of WVRMethodMod::WVRMethod.
Returns
a string.
static const std::vector<std::string> CWVRMethod::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 WVRMethodMod::WVRMethod CWVRMethod::newWVRMethod ( const std::string &  name)
static

Create a WVRMethod enumeration object by specifying its name.

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

Return the revision as a string.

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

Return the number of enumerators declared in WVRMethodMod::WVRMethod.

Returns
an unsigned int.
static std::string CWVRMethod::toString ( const WVRMethodMod::WVRMethod &  f)
inlinestatic

Equivalent to the name method.

Definition at line 127 of file CWVRMethod.h.

static int CWVRMethod::version ( )
static

Return the major version number as an int.

Returns
an int.

Member Data Documentation

const std::string& CWVRMethod::sATM_MODEL
static

Enumerators as strings.

A const string equal to "ATM_MODEL".

Definition at line 90 of file CWVRMethod.h.

const std::string& CWVRMethod::sEMPIRICAL
static

A const string equal to "EMPIRICAL".

Definition at line 92 of file CWVRMethod.h.


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