|
GeoTessCPP
2.0.0
Software to facilitate storage and retrieval of 3D information about the Earth.
|
#include <EnumType.h>
Public Member Functions | |
| virtual | ~EnumType () |
| string | toString () const |
| string | name () const |
| int | ordinal () const |
Protected Member Functions | |
| EnumType () | |
| EnumType (const EnumType &et) | |
| EnumType & | operator= (const EnumType &et) |
| EnumType (const string &name, int ordinal) | |
Static Protected Member Functions | |
| static const EnumType * | valueOf (const string &s, EnumType const *const *const array, int n) |
Protected Attributes | |
| const string | aName |
| const int | aOrdinal |
Friends | |
| bool | operator== (const EnumType &x, const EnumType &y) |
| bool | operator!= (const EnumType &x, const EnumType &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 (!=).
|
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.
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. |
|
protected |
The string name of this enum.
|
protected |
The ordinal of this enum.
1.8.1.1