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

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

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

Static Public Attributes

static const std::string & sCROSS_DATA
 Enumerators as strings.
static const std::string & sAUTO_DATA
static const std::string & sZERO_LAGS
static const std::string & sACTUAL_TIMES
static const std::string & sACTUAL_DURATIONS
static const std::string & sWEIGHTS
static const std::string & sFLAGS

Private Member Functions

 CDataContent ()
 CDataContent (const CDataContent &)
CDataContentoperator= (const CDataContent &)
 CDataContent ()
 CDataContent (const CDataContent &)
CDataContentoperator= (const CDataContent &)

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

Definition at line 93 of file CDataContent.h.


Constructor & Destructor Documentation

CDataContent::CDataContent ( const CDataContent ) [private]
CDataContent::CDataContent ( const CDataContent ) [private]

Member Function Documentation

static std::string CDataContent::badInt ( unsigned int  i) [static, private]
static std::string CDataContent::badInt ( unsigned int  i) [static, private]
static std::string CDataContent::badString ( const std::string &  name) [static, private]
static std::string CDataContent::badString ( const std::string &  name) [static, private]
static DataContentMod::DataContent CDataContent::from_int ( unsigned int  i) [static]

Return a DataContent's enumerator given an unsigned int.

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

Return a DataContent's enumerator given an unsigned int.

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

Return a DataContent's enumerator given a string.

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

Return a DataContent's enumerator given a string.

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

Returns an enumerator as a string.

Parameters:
ean enumerator of DataContentMod::DataContent.
Returns:
a string.
static std::string CDataContent::name ( const DataContentMod::DataContent &  e) [static]

Returns an enumerator as a string.

Parameters:
ean enumerator of DataContentMod::DataContent.
Returns:
a string.
static const std::vector<std::string> CDataContent::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> CDataContent::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 DataContentMod::DataContent CDataContent::newDataContent ( const std::string &  name) [static]

Create a DataContent enumeration object by specifying its name.

static DataContentMod::DataContent CDataContent::newDataContent ( const std::string &  name) [static]

Create a DataContent enumeration object by specifying its name.

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

Return the revision as a string.

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

Return the revision as a string.

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

Return the number of enumerators declared in DataContentMod::DataContent.

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

Return the number of enumerators declared in DataContentMod::DataContent.

Returns:
an unsigned int.
static std::string CDataContent::toString ( const DataContentMod::DataContent &  f) [inline, static]

Equivalent to the name method.

Definition at line 147 of file CDataContent.h.

static std::string CDataContent::toString ( const DataContentMod::DataContent &  f) [inline, static]

Equivalent to the name method.

Definition at line 147 of file CDataContent.h.

static int CDataContent::version ( ) [static]

Return the major version number as an int.

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

Return the major version number as an int.

Returns:
an int.

Member Data Documentation

static const std::string & CDataContent::sACTUAL_DURATIONS [static]

A const string equal to "ACTUAL_DURATIONS".

Definition at line 108 of file CDataContent.h.

static const std::string & CDataContent::sACTUAL_TIMES [static]

A const string equal to "ACTUAL_TIMES".

Definition at line 106 of file CDataContent.h.

static const std::string & CDataContent::sAUTO_DATA [static]

A const string equal to "AUTO_DATA".

Definition at line 102 of file CDataContent.h.

static const std::string & CDataContent::sCROSS_DATA [static]

Enumerators as strings.

A const string equal to "CROSS_DATA".

Definition at line 100 of file CDataContent.h.

static const std::string & CDataContent::sFLAGS [static]

A const string equal to "FLAGS".

Definition at line 112 of file CDataContent.h.

static const std::string & CDataContent::sWEIGHTS [static]

A const string equal to "WEIGHTS".

Definition at line 110 of file CDataContent.h.

static const std::string & CDataContent::sZERO_LAGS [static]

A const string equal to "ZERO_LAGS".

Definition at line 104 of file CDataContent.h.


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