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

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

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

Static Public Attributes

static const std::string & sCAL_AMPLI
 Enumerators as strings. More...
 
static const std::string & sCAL_ATMOSPHERE
 
static const std::string & sCAL_BANDPASS
 
static const std::string & sCAL_CURVE
 
static const std::string & sCAL_DELAY
 
static const std::string & sCAL_FLUX
 
static const std::string & sCAL_FOCUS
 
static const std::string & sCAL_FOCUS_MODEL
 
static const std::string & sCAL_GAIN
 
static const std::string & sCAL_HOLOGRAPHY
 
static const std::string & sCAL_PHASE
 
static const std::string & sCAL_POINTING
 
static const std::string & sCAL_POINTING_MODEL
 
static const std::string & sCAL_POSITION
 
static const std::string & sCAL_PRIMARY_BEAM
 
static const std::string & sCAL_SEEING
 
static const std::string & sCAL_WVR
 
static const std::string & sCAL_APPPHASE
 

Private Member Functions

 CCalType ()
 
 CCalType (const CCalType &)
 
CCalTypeoperator= (const CCalType &)
 

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

Definition at line 115 of file CCalType.h.

Constructor & Destructor Documentation

CCalType::CCalType ( )
private
CCalType::CCalType ( const CCalType )
private

Member Function Documentation

static std::string CCalType::badInt ( unsigned int  i)
staticprivate
static std::string CCalType::badString ( const std::string &  name)
staticprivate
static CalTypeMod::CalType CCalType::from_int ( unsigned int  i)
static

Return a CalType's enumerator given an unsigned int.

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

Return a CalType's enumerator given a string.

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

Returns an enumerator as a string.

Parameters
ean enumerator of CalTypeMod::CalType.
Returns
a string.
static const std::vector<std::string> CCalType::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 CalTypeMod::CalType CCalType::newCalType ( const std::string &  name)
static

Create a CalType enumeration object by specifying its name.

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

Return the revision as a string.

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

Return the number of enumerators declared in CalTypeMod::CalType.

Returns
an unsigned int.
static std::string CCalType::toString ( const CalTypeMod::CalType &  f)
inlinestatic

Equivalent to the name method.

Definition at line 191 of file CCalType.h.

static int CCalType::version ( )
static

Return the major version number as an int.

Returns
an int.

Member Data Documentation

const std::string& CCalType::sCAL_AMPLI
static

Enumerators as strings.

A const string equal to "CAL_AMPLI".

Definition at line 122 of file CCalType.h.

const std::string& CCalType::sCAL_APPPHASE
static

A const string equal to "CAL_APPPHASE".

Definition at line 156 of file CCalType.h.

const std::string& CCalType::sCAL_ATMOSPHERE
static

A const string equal to "CAL_ATMOSPHERE".

Definition at line 124 of file CCalType.h.

const std::string& CCalType::sCAL_BANDPASS
static

A const string equal to "CAL_BANDPASS".

Definition at line 126 of file CCalType.h.

const std::string& CCalType::sCAL_CURVE
static

A const string equal to "CAL_CURVE".

Definition at line 128 of file CCalType.h.

const std::string& CCalType::sCAL_DELAY
static

A const string equal to "CAL_DELAY".

Definition at line 130 of file CCalType.h.

const std::string& CCalType::sCAL_FLUX
static

A const string equal to "CAL_FLUX".

Definition at line 132 of file CCalType.h.

const std::string& CCalType::sCAL_FOCUS
static

A const string equal to "CAL_FOCUS".

Definition at line 134 of file CCalType.h.

const std::string& CCalType::sCAL_FOCUS_MODEL
static

A const string equal to "CAL_FOCUS_MODEL".

Definition at line 136 of file CCalType.h.

const std::string& CCalType::sCAL_GAIN
static

A const string equal to "CAL_GAIN".

Definition at line 138 of file CCalType.h.

const std::string& CCalType::sCAL_HOLOGRAPHY
static

A const string equal to "CAL_HOLOGRAPHY".

Definition at line 140 of file CCalType.h.

const std::string& CCalType::sCAL_PHASE
static

A const string equal to "CAL_PHASE".

Definition at line 142 of file CCalType.h.

const std::string& CCalType::sCAL_POINTING
static

A const string equal to "CAL_POINTING".

Definition at line 144 of file CCalType.h.

const std::string& CCalType::sCAL_POINTING_MODEL
static

A const string equal to "CAL_POINTING_MODEL".

Definition at line 146 of file CCalType.h.

const std::string& CCalType::sCAL_POSITION
static

A const string equal to "CAL_POSITION".

Definition at line 148 of file CCalType.h.

const std::string& CCalType::sCAL_PRIMARY_BEAM
static

A const string equal to "CAL_PRIMARY_BEAM".

Definition at line 150 of file CCalType.h.

const std::string& CCalType::sCAL_SEEING
static

A const string equal to "CAL_SEEING".

Definition at line 152 of file CCalType.h.

const std::string& CCalType::sCAL_WVR
static

A const string equal to "CAL_WVR".

Definition at line 154 of file CCalType.h.


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