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

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

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

Static Public Attributes

static const std::string & sNOSB
 Enumerators as strings.
static const std::string & sLSB
static const std::string & sUSB
static const std::string & sDSB

Private Member Functions

 CNetSideband ()
 CNetSideband (const CNetSideband &)
CNetSidebandoperator= (const CNetSideband &)
 CNetSideband ()
 CNetSideband (const CNetSideband &)
CNetSidebandoperator= (const CNetSideband &)

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

Definition at line 87 of file CNetSideband.h.


Constructor & Destructor Documentation

CNetSideband::CNetSideband ( const CNetSideband ) [private]
CNetSideband::CNetSideband ( const CNetSideband ) [private]

Member Function Documentation

static std::string CNetSideband::badInt ( unsigned int  i) [static, private]
static std::string CNetSideband::badInt ( unsigned int  i) [static, private]
static std::string CNetSideband::badString ( const std::string &  name) [static, private]
static std::string CNetSideband::badString ( const std::string &  name) [static, private]
static NetSidebandMod::NetSideband CNetSideband::from_int ( unsigned int  i) [static]

Return a NetSideband's enumerator given an unsigned int.

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

Return a NetSideband's enumerator given an unsigned int.

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

Return a NetSideband's enumerator given a string.

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

Return a NetSideband's enumerator given a string.

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

Returns an enumerator as a string.

Parameters:
ean enumerator of NetSidebandMod::NetSideband.
Returns:
a string.
static std::string CNetSideband::name ( const NetSidebandMod::NetSideband &  e) [static]

Returns an enumerator as a string.

Parameters:
ean enumerator of NetSidebandMod::NetSideband.
Returns:
a string.
static const std::vector<std::string> CNetSideband::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> CNetSideband::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 NetSidebandMod::NetSideband CNetSideband::newNetSideband ( const std::string &  name) [static]

Create a NetSideband enumeration object by specifying its name.

static NetSidebandMod::NetSideband CNetSideband::newNetSideband ( const std::string &  name) [static]

Create a NetSideband enumeration object by specifying its name.

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

Return the revision as a string.

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

Return the revision as a string.

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

Return the number of enumerators declared in NetSidebandMod::NetSideband.

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

Return the number of enumerators declared in NetSidebandMod::NetSideband.

Returns:
an unsigned int.
static std::string CNetSideband::toString ( const NetSidebandMod::NetSideband &  f) [inline, static]

Equivalent to the name method.

Definition at line 135 of file CNetSideband.h.

static std::string CNetSideband::toString ( const NetSidebandMod::NetSideband &  f) [inline, static]

Equivalent to the name method.

Definition at line 135 of file CNetSideband.h.

static int CNetSideband::version ( ) [static]

Return the major version number as an int.

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

Return the major version number as an int.

Returns:
an int.

Member Data Documentation

static const std::string & CNetSideband::sDSB [static]

A const string equal to "DSB".

Definition at line 100 of file CNetSideband.h.

static const std::string & CNetSideband::sLSB [static]

A const string equal to "LSB".

Definition at line 96 of file CNetSideband.h.

static const std::string & CNetSideband::sNOSB [static]

Enumerators as strings.

A const string equal to "NOSB".

Definition at line 94 of file CNetSideband.h.

static const std::string & CNetSideband::sUSB [static]

A const string equal to "USB".

Definition at line 98 of file CNetSideband.h.


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