26 #ifndef __TERRALIB_MEMORY_INTERNAL_DATASETITEM_H 27 #define __TERRALIB_MEMORY_INTERNAL_DATASETITEM_H 33 namespace te {
namespace dt {
class AbstractData;
class Array;
class ByteArray;
class DateTime; } }
34 namespace te {
namespace gm {
class Geometry; } }
35 namespace te {
namespace rst {
class Raster; } }
70 explicit DataSetItem(
const std::size_t& nproperties);
99 std::unique_ptr<DataSetItem> clone()
const;
111 std::size_t getNumProperties()
const;
116 int getPropertyDataType(std::size_t pos)
const;
121 std::string getPropertyName(std::size_t pos)
const;
126 char getChar(std::size_t i)
const;
131 void setChar(std::size_t i,
char value);
136 void setChar(
const std::string& name,
char value);
141 unsigned char getUChar(std::size_t i)
const;
146 void setUChar(std::size_t i,
unsigned char value);
151 void setUChar(
const std::string& name,
unsigned char value);
156 boost::int16_t getInt16(std::size_t i)
const;
161 void setInt16(std::size_t i, boost::int16_t value);
166 void setInt16(
const std::string& name, boost::int16_t value);
171 boost::int32_t getInt32(std::size_t i)
const;
176 void setInt32(std::size_t i, boost::int32_t value);
181 void setInt32(
const std::string& name, boost::int32_t value);
186 boost::int64_t getInt64(std::size_t i)
const;
191 void setInt64(std::size_t i, boost::int64_t value);
196 void setInt64(
const std::string& name, boost::int64_t value);
201 bool getBool(std::size_t i)
const;
206 void setBool(std::size_t i,
bool value);
211 void setBool(
const std::string& name,
bool value);
216 float getFloat(std::size_t i)
const;
221 void setFloat(std::size_t i,
float value);
226 void setFloat(
const std::string& name,
float value);
231 double getDouble(std::size_t i)
const;
236 void setDouble(std::size_t i,
double value);
241 void setDouble(
const std::string& name,
double value);
246 std::string getNumeric(std::size_t i)
const;
251 void setNumeric(std::size_t i,
const std::string& value);
256 void setNumeric(
const std::string& name,
const std::string& value);
261 std::string getString(std::size_t i)
const;
266 void setString(std::size_t i,
const std::string& value);
271 void setString(
const std::string& name,
const std::string& value);
276 std::unique_ptr<te::dt::ByteArray> getByteArray(std::size_t i)
const;
295 std::unique_ptr<te::gm::Geometry> getGeometry(std::size_t i)
const;
314 std::unique_ptr<te::rst::Raster> getRaster(std::size_t i)
const;
331 std::unique_ptr<te::dt::DateTime> getDateTime(std::size_t i)
const;
350 std::unique_ptr<te::dt::AbstractData> getValue(std::size_t i)
const;
367 bool isNull(std::size_t i)
const;
372 boost::ptr_vector<boost::nullable<te::dt::AbstractData> >
m_data;
378 #endif // __TERRALIB_MEMORY_INTERNAL_DATASETITEM_H #define TEMEMORYEXPORT
You can use this macro in order to export/import classes and functions from this module.
const te::da::DataSet * m_parent
The parent dataset, if the item is associated to one.
Configuration flags for the TerraLib In-memory Data Access driver.
Implementation of a random-access dataset class for the TerraLib In-Memory Data Access driver...
An abstract class for raster data strucutures.
boost::ptr_vector< boost::nullable< te::dt::AbstractData > > m_data
The data values of the dataset item.
A base class for values that can be retrieved from the data access module.
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
An implementation of the DatasetItem class for the TerraLib In-Memory Data Access driver...
A dataset is the unit of information manipulated by the data access module of TerraLib.
A class for representing binary data.