GeoTessCPP
2.2
Software to facilitate storage and retrieval of 3D information about the Earth.
|
The base class for all "enum" types. More...
#include <GeoTessEnumType.h>
Public Member Functions | |
virtual | ~GeoTessEnumType () |
Standard destructor. More... | |
string | name () const |
Returns this Enums name. More... | |
int | ordinal () const |
Returns this Enums ordinal. More... | |
string | toString () const |
Returns this Enums name. More... | |
Protected Member Functions | |
GeoTessEnumType () | |
Private default constructor. More... | |
GeoTessEnumType (const GeoTessEnumType &et) | |
Private copy constructor. More... | |
GeoTessEnumType (const string &name, int ordinal) | |
Standard constuctor. More... | |
GeoTessEnumType & | operator= (const GeoTessEnumType &et) |
Private assignment operator. More... | |
Static Protected Member Functions | |
static const GeoTessEnumType * | valueOf (const string &s, GeoTessEnumType const *const *const array, int n) |
Returns the EnumType from the input array whose name matches the input string. More... | |
Protected Attributes | |
const string | aName |
The string name of this enum. More... | |
const int | aOrdinal |
The ordinal of this enum. More... | |
Friends | |
bool | operator!= (const GeoTessEnumType &x, const GeoTessEnumType &y) |
Not equals operator. More... | |
bool | operator== (const GeoTessEnumType &x, const GeoTessEnumType &y) |
Equals operator. More... | |
The base class for all "enum" types.
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 (!=).
|
inlineprotected |
Private default constructor.
Not used.
|
inlineprotected |
Private copy constructor.
Not used.
|
inlineprotected |
Standard constuctor.
Protected so that only derived types (public enums) which inherit this object can actually create one.
|
inlinevirtual |
Standard destructor.
|
inline |
Returns this Enums name.
|
inlineprotected |
Private assignment operator.
Not used.
|
inline |
Returns this Enums ordinal.
|
inline |
Returns this Enums name.
|
staticprotected |
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. |
|
friend |
Not equals operator.
|
friend |
Equals operator.
|
protected |
The string name of this enum.
|
protected |
The ordinal of this enum.