26#ifndef __TERRALIB_DATAACCESS_INTERNAL_DATASETITEM_H
27#define __TERRALIB_DATAACCESS_INTERNAL_DATASETITEM_H
32#include <boost/cstdint.hpp>
33#include <boost/noncopyable.hpp>
34#include <boost/ptr_container/ptr_vector.hpp>
35#include <boost/shared_ptr.hpp>
68 explicit DataSetItem(
const std::vector<std::string>& vecNames,
const std::vector<int>& vecTypes);
210 std::unique_ptr<te::gm::Geometry>
getGeometry(std::size_t i)
const;
215 std::unique_ptr<te::rst::Raster>
getRaster(std::size_t i)
const;
220 std::unique_ptr<te::dt::DateTime>
getDateTime(std::size_t i)
const;
225 std::unique_ptr<te::dt::AbstractData>
getValue(std::size_t i)
const;
236 boost::ptr_vector<boost::nullable<te::dt::AbstractData> >
m_data;
An implementation of the DatasetItem class for the TerraLib In-Memory Data Access driver.
const std::vector< std::string > & getPropertyNames() const
It returns the name of properties.
boost::ptr_vector< boost::nullable< te::dt::AbstractData > > m_data
The data values of the.
static te::da::DataSetItem * createFromCurrent(const te::da::DataSet *dataSet)
Creates a dataSetItem based on the current row of the givem DataSet.
bool isNull(std::size_t i) const
Checks if the value in the given index is null.
virtual ~DataSetItem()
Destructor.
std::vector< std::string > m_vecNames
Vector containing the names of the attributes of the dataSet item.
float getFloat(std::size_t i) const
It returns the value of the i-th property.
std::size_t getPropertyPos(const std::string &name) const
It returns the name of the pos-th property.
std::unique_ptr< te::dt::ByteArray > getByteArray(std::size_t i) const
It returns the value of the i-th property.
char getChar(std::size_t i) const
It returns the value of the i-th property.
DataSetItem(const std::vector< std::string > &vecNames, const std::vector< int > &vecTypes)
It creates a new item having the same schema as the given column names and types.
bool getBool(std::size_t i) const
It returns the value of the i-th property.
std::vector< int > m_vecTypes
Vector containing the types of the attributes of the dataSet item.
boost::int32_t getInt32(std::size_t i) const
It returns the value of the i-th property.
DataSetItem(const te::da::DataSet *dataSet)
It creates a new item having the same schema as the parent dataset.
std::string getString(std::size_t i) const
It returns the value of the i-th property.
DataSetItem(const DataSetItem &rhs)
It creates a new item by cloning the values in the source item (rhs).
const std::string & getPropertyName(std::size_t pos) const
It returns the name of the pos-th property.
std::unique_ptr< te::dt::AbstractData > getValue(std::size_t i) const
It returns the value of the i-th property.
boost::int16_t getInt16(std::size_t i) const
It returns the value of the i-th property.
double getDouble(std::size_t i) const
It returns the value of the i-th property.
std::unique_ptr< te::rst::Raster > getRaster(std::size_t i) const
It returns the value of the i-th property.
std::size_t getNumProperties() const
It returns the number of properties.
std::string getNumeric(std::size_t i) const
It returns the value of the i-th property.
std::unique_ptr< te::gm::Geometry > getGeometry(std::size_t i) const
It returns the value of the i-th property.
unsigned char getUChar(std::size_t i) const
It returns the value of the i-th property.
DataSetItem(const te::da::DataSetType *dataSetType)
It creates a new item having the same schema as the dataset type.
const std::vector< int > & getPropertyTypes() const
It returns the types of properties.
virtual DataSetItem * clone() const
It returns a clone of the DataSetItem.
boost::int64_t getInt64(std::size_t i) const
It returns the value of the i-th property.
std::unique_ptr< te::dt::DateTime > getDateTime(std::size_t i) const
It returns the value of the i-th property.
DataSetItem & operator=(const DataSetItem &rhs)
Assignment operator.
int getPropertyDataType(std::size_t pos) const
It returns the type of the pos-th property.
A class that models the description of a dataset.
A dataset is the unit of information manipulated by the data access module of TerraLib.
A base class for values that can be retrieved from the data access module.
The type for variable-length multidimensional arrays.
A class for representing binary data.
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
An abstract class for raster data strucutures.
Namespace for the DataAccess API of TerraLib.
Namespace for the Data Type module of TerraLib.
Namespace for the Vector Geometry module of TerraLib.
Namespace for the Raster module of TerraLib.
Configuration flags for the Data Access module of TerraLib.
#define TEDATAACCESSEXPORT
You can use this macro in order to export/import classes and functions from this module.