36 #ifndef GEO_DATA_OBJECT_H
37 #define GEO_DATA_OBJECT_H
59 class GeoTessMetaData;
62 template<
typename T>
class GeoTessDataArray;
63 template<
typename T>
class GeoTessDataValue;
82 static int aClassCount;
381 template <
typename T>
382 void fill(T fillValue) {
for (
int i=0; i<size(); ++i) setValue(i,fillValue);}
#define ABSTRACT
Global constant used to make pure virtual functions readable.
Abstract base class that manages the data values attached to a single grid point.
virtual GeoTessData & setValue(int attributeIndex, double v)
virtual GeoTessData & setValue(int attributeIndex, LONG_INT v)
virtual int class_size() const
static GeoTessData * getData(double values[], const int &size)
virtual LONG_INT getMemory()
virtual void getValue(int attributeIndex, byte &val) const
static GeoTessData * getData(byte values[], const int &size)
static GeoTessData * getData(const vector< short > &values)
virtual byte getByte(int attributeIndex) const
virtual GeoTessData & setValue(int attributeIndex, byte v)
virtual void getValues(byte values[], const int &n)
static GeoTessData * getData(float values[], const int &size)
static GeoTessData * getData(const GeoTessDataType &dataType, int nAttributes)
virtual float getFloat(int attributeIndex) const
virtual void getValues(short values[], const int &n)
static GeoTessData * getData(const vector< int > &values)
static GeoTessData * getData(const vector< LONG_INT > &values)
virtual double getDouble(int attributeIndex) const
virtual const GeoTessDataType & getDataType() const
virtual void getValue(int attributeIndex, LONG_INT &val) const
static GeoTessData * getData(const vector< double > &values)
virtual void getValue(int attributeIndex, int &val) const
virtual GeoTessData & setValue(int attributeIndex, short v)
static string class_name()
virtual LONG_INT getLong(int attributeIndex) const
static GeoTessData * getData(const vector< float > &values)
virtual void getValues(float values[], const int &n)
static GeoTessData * getData(short values[], const int &size)
virtual void getValue(int attributeIndex, short &val) const
virtual GeoTessData & setValue(int attributeIndex, int v)
virtual void getValue(int attributeIndex, float &val) const
virtual int getInt(int attributeIndex) const
virtual bool isNaN(int attributeIndex) const
virtual void getValues(double values[], const int &n)
virtual void getValues(LONG_INT values[], const int &n)
static GeoTessData * getData(const vector< byte > &values)
static GeoTessData * getData(LONG_INT values[], const int &size)
virtual GeoTessData & setValue(int attributeIndex, float v)
static GeoTessData * getData(int values[], const int &size)
virtual void getValue(int attributeIndex, double &val) const
virtual void getValues(int values[], const int &n)
virtual short getShort(int attributeIndex) const
Enumeration of supported DataType including DOUBLE, FLOAT, LONG, INT, SHORT and BYTE.
Opens ascii file for read and write access.
Opens a file for binary read and write access.