A base class for values that can be retrieved from the data access module. More...
#include <AbstractData.h>
Public Member Functions | |
AbstractData () | |
Constructor. More... | |
virtual AbstractData * | clone () const =0 |
It returns a clone of this object. More... | |
virtual int | getTypeCode () const =0 |
It returns the data type code associated to the data value. More... | |
virtual std::string | toString () const =0 |
It returns the data value in a string notation. More... | |
virtual | ~AbstractData () |
Virtual destructor. More... | |
A base class for values that can be retrieved from the data access module.
This class provides the basic extensibility for data types in the data access module. Through implementing this abstract class you can add new data types to the system and then you can register it in the data source driver.
Definition at line 57 of file AbstractData.h.
|
inline |
Constructor.
Definition at line 62 of file AbstractData.h.
|
inlinevirtual |
Virtual destructor.
Definition at line 65 of file AbstractData.h.
|
pure virtual |
It returns a clone of this object.
Implemented in te::dt::ByteArray, te::dt::SimpleData< T *, typeCode >, te::dt::DatePeriod, te::dt::TimePeriod, te::dt::TimeDuration, te::dt::Date, te::dt::TimeInstant, te::dt::TimePeriodTZ, te::dt::OrdinalPeriod, te::dt::Array, te::idl::IdlRaster, te::gm::LineString, te::mem::ExpansibleRaster, te::gm::CircularString, te::dt::TimeInstantTZ, te::gm::PointKd, te::dt::DateDuration, te::gm::CompoundCurve, te::gm::LinearRing, te::gm::MultiPolygon, te::dt::CompositeData, te::gm::PointZM, te::mem::CachedRaster, te::gm::PointM, te::gm::PointZ, te::gm::Line, te::gm::Point, te::dt::OrdinalInstant, te::gm::CurvePolygon, te::gm::GeometryCollection, te::gdal::Raster, te::gm::PolyhedralSurface, te::gm::Polygon, te::gm::MultiLineString, te::gm::MultiPoint, te::rst::SynchronizedRaster, te::gm::MultiSurface, te::dt::SimpleData< T, typeCode >, te::dt::SimpleData< boost::int64_t, INT64_TYPE >, te::gm::MultiCurve, te::rst::ProxyRaster, te::grib::Raster, te::mem::Raster, and terralib4::Raster.
Referenced by te::rst::PolygonIterator< T >::decompose(), and te::dt::new_clone().
|
pure virtual |
It returns the data type code associated to the data value.
Implemented in te::gm::Geometry, te::rst::Raster, te::dt::ByteArray, te::dt::SimpleData< T *, typeCode >, te::dt::Array, te::dt::CompositeData, te::dt::SimpleData< T, typeCode >, te::dt::SimpleData< boost::int64_t, INT64_TYPE >, and te::dt::DateTime.
Referenced by te::qt::widgets::CompareHistogramInterval::operator()().
|
pure virtual |
It returns the data value in a string notation.
Implemented in te::gm::Geometry, te::rst::Raster, te::dt::ByteArray, te::dt::SimpleData< T *, typeCode >, te::dt::DatePeriod, te::dt::TimePeriod, te::dt::TimeDuration, te::dt::Date, te::dt::TimeInstant, te::dt::TimePeriodTZ, te::dt::OrdinalPeriod, te::dt::Array, te::dt::CompositeData, te::dt::TimeInstantTZ, te::dt::DateDuration, te::dt::OrdinalInstant, te::dt::SimpleData< T, typeCode >, and te::dt::SimpleData< boost::int64_t, INT64_TYPE >.