GeoTessCPP  2.0.0
Software to facilitate storage and retrieval of 3D information about the Earth.
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros
Public Member Functions | Static Public Member Functions | Static Public Attributes
geotess::DataType Class Reference

#include <DataType.h>

Inheritance diagram for geotess::DataType:
geotess::EnumType

List of all members.

Public Member Functions

virtual ~DataType ()
template<>
const DataTypegetDataType (double typ)
template<>
const DataTypegetDataType (float typ)
template<>
const DataTypegetDataType (LONG_INT typ)
template<>
const DataTypegetDataType (int typ)
template<>
const DataTypegetDataType (short typ)
template<>
const DataTypegetDataType (byte typ)
- Public Member Functions inherited from geotess::EnumType
virtual ~EnumType ()
string name () const
int ordinal () const
string toString () const

Static Public Member Functions

template<typename T >
static const DataTypegetDataType (T typ)
static int size ()
static const DataTypevalueOf (const string &s)
static DataType const *const *const values ()

Static Public Attributes

static const DataTypeaArray []
static const DataType BYTE
static const DataType DOUBLE
static const DataType FLOAT
static const DataType INT
static const DataType LONG
static const DataType NONE
static const DataType SHORT

Additional Inherited Members

- Protected Member Functions inherited from geotess::EnumType
 EnumType ()
 EnumType (const EnumType &et)
 EnumType (const string &name, int ordinal)
EnumTypeoperator= (const EnumType &et)
- Static Protected Member Functions inherited from geotess::EnumType
static const EnumTypevalueOf (const string &s, EnumType const *const *const array, int n)
- Protected Attributes inherited from geotess::EnumType
const string aName
const int aOrdinal

Detailed Description

Enumeration of supported DataType which includes DOUBLE, FLOAT, LONG, INT, SHORT and BYTE.


Constructor & Destructor Documentation

virtual geotess::DataType::~DataType ( )
inlinevirtual

Standard Destructor.


Member Function Documentation

template<typename T >
static const DataType& geotess::DataType::getDataType ( typ)
inlinestatic
template<>
const DataType& geotess::DataType::getDataType ( double  typ)
inline

Template specialization for getDataType()

template<>
const DataType& geotess::DataType::getDataType ( float  typ)
inline

Template specialization for getDataType()

template<>
const DataType& geotess::DataType::getDataType ( LONG_INT  typ)
inline

Template specialization for getDataType()

template<>
const DataType& geotess::DataType::getDataType ( int  typ)
inline

Template specialization for getDataType()

template<>
const DataType& geotess::DataType::getDataType ( short  typ)
inline

Template specialization for getDataType()

template<>
const DataType& geotess::DataType::getDataType ( byte  typ)
inline

Template specialization for getDataType()

static int geotess::DataType::size ( )
inlinestatic

Returns the total number of enums of this type.

static const DataType* geotess::DataType::valueOf ( const string &  s)
inlinestatic
    Assignment Operator.           

Returns a pointer to the enum whose string matches the input string. If no match is found null is returned.

Parameters:
sThe input string for which a match in array is returned (or null).
Returns:
The match of s in the names of array or null if one was not found.
static DataType const* const* const geotess::DataType::values ( )
inlinestatic

Returns the array of all enums for this type.


Member Data Documentation

const DataType* geotess::DataType::aArray[]
static

The array containing all enums declared above.

const DataType geotess::DataType::BYTE
static
const DataType geotess::DataType::DOUBLE
static

The actual enums for this type.

const DataType geotess::DataType::FLOAT
static
const DataType geotess::DataType::INT
static
const DataType geotess::DataType::LONG
static
const DataType geotess::DataType::NONE
static
const DataType geotess::DataType::SHORT
static

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