26 #ifndef __TERRALIB_DATAACCESS_INTERNAL_DATASETITEM_H 
   27 #define __TERRALIB_DATAACCESS_INTERNAL_DATASETITEM_H 
   30 #include "../Config.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> 
   41 namespace te { 
namespace dt { 
class AbstractData;  
class Array; 
class ByteArray; 
class DateTime; } }
 
   42 namespace te { 
namespace gm { 
class Geometry; } }
 
   43 namespace te { 
namespace rst { 
class Raster; } }
 
   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.
 
boost::ptr_vector< boost::nullable< te::dt::AbstractData > > m_data
The data values of the.
 
std::unique_ptr< te::rst::Raster > getRaster(std::size_t i) const
It returns the value of the i-th property.
 
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.
 
const std::vector< int > & getPropertyTypes() const
It returns the types of properties.
 
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).
 
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::size_t getNumProperties() const
It returns the number of properties.
 
std::unique_ptr< te::dt::DateTime > getDateTime(std::size_t i) const
It returns the value of the i-th property.
 
std::string getNumeric(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 & operator=(const DataSetItem &rhs)
Assignment operator.
 
virtual DataSetItem * clone() const
It returns a clone of the DataSetItem.
 
DataSetItem(const te::da::DataSetType *dataSetType)
It creates a new item having the same schema as the dataset type.
 
const std::string & getPropertyName(std::size_t pos) const
It returns the name of the pos-th property.
 
const std::vector< std::string > & getPropertyNames() const
It returns the name of properties.
 
boost::int64_t getInt64(std::size_t i) const
It returns the value of the i-th property.
 
std::unique_ptr< te::dt::AbstractData > getValue(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.
 
int getPropertyDataType(std::size_t pos) const
It returns the type of the pos-th property.
 
static te::da::DataSetItem * createFromCurrent(const te::da::DataSet *dataSet)
Creates a dataSetItem based on the current row of the givem DataSet.
 
A class that models the description of a dataset.
 
A dataset is the unit of information manipulated by the data access module of TerraLib.
 
#define TEDATAACCESSEXPORT
You can use this macro in order to export/import classes and functions from this module.