GeoTessCPP
2.0.0
Software to facilitate storage and retrieval of 3D information about the Earth.
|
#include <GeoTessEnumType.h>
Public Member Functions | |
virtual | ~GeoTessEnumType () |
string | name () const |
int | ordinal () const |
string | toString () const |
Protected Member Functions | |
GeoTessEnumType () | |
GeoTessEnumType (const GeoTessEnumType &et) | |
GeoTessEnumType (const string &name, int ordinal) | |
GeoTessEnumType & | operator= (const GeoTessEnumType &et) |
Static Protected Member Functions | |
static const GeoTessEnumType * | valueOf (const string &s, GeoTessEnumType const *const *const array, int n) |
Protected Attributes | |
const string | aName |
const int | aOrdinal |
Friends | |
bool | operator!= (const GeoTessEnumType &x, const GeoTessEnumType &y) |
bool | operator== (const GeoTessEnumType &x, const GeoTessEnumType &y) |
The base class for all "enum" types. Contains the name string and ordinal of the enum and functions to return those attributes. Also defines operator overloads for equality (==) and non-equality (!=).
geotess::GeoTessEnumType::GeoTessEnumType | ( | ) | [inline, protected] |
Private default constructor. Not used.
geotess::GeoTessEnumType::GeoTessEnumType | ( | const GeoTessEnumType & | et | ) | [inline, protected] |
Private copy constructor. Not used.
geotess::GeoTessEnumType::GeoTessEnumType | ( | const string & | name, |
int | ordinal | ||
) | [inline, protected] |
Standard constuctor. Protected so that only derived types (public enums) which inherit this object can actually create one.
virtual geotess::GeoTessEnumType::~GeoTessEnumType | ( | ) | [inline, virtual] |
Standard destructor.
string geotess::GeoTessEnumType::name | ( | ) | const [inline] |
Returns this Enums name.
GeoTessEnumType& geotess::GeoTessEnumType::operator= | ( | const GeoTessEnumType & | et | ) | [inline, protected] |
Private assignment operator. Not used.
int geotess::GeoTessEnumType::ordinal | ( | ) | const [inline] |
Returns this Enums ordinal.
string geotess::GeoTessEnumType::toString | ( | ) | const [inline] |
Returns this Enums name.
static const GeoTessEnumType* geotess::GeoTessEnumType::valueOf | ( | const string & | s, |
GeoTessEnumType const *const *const | array, | ||
int | n | ||
) | [static, protected] |
Returns the EnumType from the input array whose name matches the input string. Null is returned if no match is found.
s | The input string for which a match in array is returned (or null). |
array | The array from which a match for s will be sought. |
n | The size of the input array. |
bool operator!= | ( | const GeoTessEnumType & | x, |
const GeoTessEnumType & | y | ||
) | [friend] |
Not equals operator.
bool operator== | ( | const GeoTessEnumType & | x, |
const GeoTessEnumType & | y | ||
) | [friend] |
Equals operator.
const string geotess::GeoTessEnumType::aName [protected] |
The string name of this enum.
const int geotess::GeoTessEnumType::aOrdinal [protected] |
The ordinal of this enum.