An implementation of the DatasetItem class for the TerraLib In-Memory Data Access driver. More...
#include <DataSetItem.h>
Public Member Functions | |
virtual DataSetItem * | clone () const |
It returns a clone of the DataSetItem. More... | |
DataSetItem (const DataSetItem &rhs) | |
It creates a new item by cloning the values in the source item (rhs). More... | |
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. More... | |
DataSetItem (const te::da::DataSet *dataSet) | |
It creates a new item having the same schema as the parent dataset. More... | |
DataSetItem (const te::da::DataSetType *dataSetType) | |
It creates a new item having the same schema as the dataset type. More... | |
bool | getBool (std::size_t i) const |
It returns the value of the i-th property. More... | |
std::unique_ptr< te::dt::ByteArray > | getByteArray (std::size_t i) const |
It returns the value of the i-th property. More... | |
char | getChar (std::size_t i) const |
It returns the value of the i-th property. More... | |
std::unique_ptr< te::dt::DateTime > | getDateTime (std::size_t i) const |
It returns the value of the i-th property. More... | |
double | getDouble (std::size_t i) const |
It returns the value of the i-th property. More... | |
float | getFloat (std::size_t i) const |
It returns the value of the i-th property. More... | |
std::unique_ptr< te::gm::Geometry > | getGeometry (std::size_t i) const |
It returns the value of the i-th property. More... | |
boost::int16_t | getInt16 (std::size_t i) const |
It returns the value of the i-th property. More... | |
boost::int32_t | getInt32 (std::size_t i) const |
It returns the value of the i-th property. More... | |
boost::int64_t | getInt64 (std::size_t i) const |
It returns the value of the i-th property. More... | |
std::string | getNumeric (std::size_t i) const |
It returns the value of the i-th property. More... | |
std::size_t | getNumProperties () const |
It returns the number of properties. More... | |
int | getPropertyDataType (std::size_t pos) const |
It returns the type of the pos-th property. More... | |
const std::string & | getPropertyName (std::size_t pos) const |
It returns the name of the pos-th property. More... | |
const std::vector< std::string > & | getPropertyNames () const |
It returns the name of properties. More... | |
std::size_t | getPropertyPos (const std::string &name) const |
It returns the name of the pos-th property. More... | |
const std::vector< int > & | getPropertyTypes () const |
It returns the types of properties. More... | |
std::unique_ptr< te::rst::Raster > | getRaster (std::size_t i) const |
It returns the value of the i-th property. More... | |
std::string | getString (std::size_t i) const |
It returns the value of the i-th property. More... | |
unsigned char | getUChar (std::size_t i) const |
It returns the value of the i-th property. More... | |
std::unique_ptr< te::dt::AbstractData > | getValue (std::size_t i) const |
It returns the value of the i-th property. More... | |
bool | isNull (std::size_t i) const |
Checks if the value in the given index is null. More... | |
DataSetItem & | operator= (const DataSetItem &rhs) |
Assignment operator. More... | |
virtual | ~DataSetItem () |
Destructor. More... | |
Static Public Member Functions | |
static te::da::DataSetItem * | createFromCurrent (const te::da::DataSet *dataSet) |
Creates a dataSetItem based on the current row of the givem DataSet. More... | |
Protected Attributes | |
boost::ptr_vector< boost::nullable< te::dt::AbstractData > > | m_data |
The data values of the. More... | |
std::vector< std::string > | m_vecNames |
Vector containing the names of the attributes of the dataSet item. More... | |
std::vector< int > | m_vecTypes |
Vector containing the types of the attributes of the dataSet item. More... | |
An implementation of the DatasetItem class for the TerraLib In-Memory Data Access driver.
Definition at line 58 of file DataSetItem.h.
|
explicit |
It creates a new item having the same schema as the given column names and types.
vecNames | The names of the properties of this item |
vecTypes | The types of the properties of this item |
|
explicit |
It creates a new item having the same schema as the parent dataset.
parent | The dataset to which this item is associated. |
|
explicit |
It creates a new item having the same schema as the dataset type.
parent | The dataset to which this item is associated. |
|
explicit |
It creates a new item by cloning the values in the source item (rhs).
rhs | The right-hand-side object to copy its values. |
|
virtual |
Destructor.
Reimplemented in te::mem::DataSetItem.
|
virtual |
It returns a clone of the DataSetItem.
Reimplemented in te::mem::DataSetItem, and te::vp::Feature.
|
static |
Creates a dataSetItem based on the current row of the givem DataSet.
bool te::da::DataSetItem::getBool | ( | std::size_t | i | ) | const |
It returns the value of the i-th property.
std::unique_ptr< te::dt::ByteArray > te::da::DataSetItem::getByteArray | ( | std::size_t | i | ) | const |
It returns the value of the i-th property.
char te::da::DataSetItem::getChar | ( | std::size_t | i | ) | const |
It returns the value of the i-th property.
std::unique_ptr< te::dt::DateTime > te::da::DataSetItem::getDateTime | ( | std::size_t | i | ) | const |
It returns the value of the i-th property.
double te::da::DataSetItem::getDouble | ( | std::size_t | i | ) | const |
It returns the value of the i-th property.
float te::da::DataSetItem::getFloat | ( | std::size_t | i | ) | const |
It returns the value of the i-th property.
std::unique_ptr< te::gm::Geometry > te::da::DataSetItem::getGeometry | ( | std::size_t | i | ) | const |
It returns the value of the i-th property.
boost::int16_t te::da::DataSetItem::getInt16 | ( | std::size_t | i | ) | const |
It returns the value of the i-th property.
boost::int32_t te::da::DataSetItem::getInt32 | ( | std::size_t | i | ) | const |
It returns the value of the i-th property.
boost::int64_t te::da::DataSetItem::getInt64 | ( | std::size_t | i | ) | const |
It returns the value of the i-th property.
std::string te::da::DataSetItem::getNumeric | ( | std::size_t | i | ) | const |
It returns the value of the i-th property.
std::size_t te::da::DataSetItem::getNumProperties | ( | ) | const |
It returns the number of properties.
int te::da::DataSetItem::getPropertyDataType | ( | std::size_t | pos | ) | const |
It returns the type of the pos-th property.
const std::string & te::da::DataSetItem::getPropertyName | ( | std::size_t | pos | ) | const |
It returns the name of the pos-th property.
const std::vector< std::string > & te::da::DataSetItem::getPropertyNames | ( | ) | const |
It returns the name of properties.
std::size_t te::da::DataSetItem::getPropertyPos | ( | const std::string & | name | ) | const |
It returns the name of the pos-th property.
const std::vector< int > & te::da::DataSetItem::getPropertyTypes | ( | ) | const |
It returns the types of properties.
std::unique_ptr< te::rst::Raster > te::da::DataSetItem::getRaster | ( | std::size_t | i | ) | const |
It returns the value of the i-th property.
std::string te::da::DataSetItem::getString | ( | std::size_t | i | ) | const |
It returns the value of the i-th property.
unsigned char te::da::DataSetItem::getUChar | ( | std::size_t | i | ) | const |
It returns the value of the i-th property.
std::unique_ptr< te::dt::AbstractData > te::da::DataSetItem::getValue | ( | std::size_t | i | ) | const |
It returns the value of the i-th property.
bool te::da::DataSetItem::isNull | ( | std::size_t | i | ) | const |
Checks if the value in the given index is null.
DataSetItem & te::da::DataSetItem::operator= | ( | const DataSetItem & | rhs | ) |
Assignment operator.
It copies the values from the rhs item.
rhs | The right-hand-side ibject to copy its values. |
|
protected |
The data values of the.
Definition at line 236 of file DataSetItem.h.
|
protected |
Vector containing the names of the attributes of the dataSet item.
Definition at line 234 of file DataSetItem.h.
|
protected |
Vector containing the types of the attributes of the dataSet item.
Definition at line 235 of file DataSetItem.h.