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);
125 std::size_t getNumProperties()
const;
130 const std::vector<std::string>& getPropertyNames()
const;
135 const std::vector<int>& getPropertyTypes()
const;
140 int getPropertyDataType(std::size_t pos)
const;
145 const std::string& getPropertyName(std::size_t pos)
const;
150 std::size_t getPropertyPos(
const std::string& name)
const;
155 char getChar(std::size_t i)
const;
160 unsigned char getUChar(std::size_t i)
const;
165 boost::int16_t getInt16(std::size_t i)
const;
170 boost::int32_t getInt32(std::size_t i)
const;
175 boost::int64_t getInt64(std::size_t i)
const;
180 bool getBool(std::size_t i)
const;
185 float getFloat(std::size_t i)
const;
190 double getDouble(std::size_t i)
const;
195 std::string getNumeric(std::size_t i)
const;
200 std::string getString(std::size_t i)
const;
205 std::unique_ptr<te::dt::ByteArray> getByteArray(std::size_t i)
const;
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;
230 bool isNull(std::size_t i)
const;
236 boost::ptr_vector<boost::nullable<te::dt::AbstractData> >
m_data;
241 #endif // __TERRALIB_DATAACCESS_INTERNAL_DATASETITEM_H A class that models the description of a dataset.
std::vector< std::string > m_vecNames
Vector containing the names of the attributes of the dataSet item.
std::vector< int > m_vecTypes
Vector containing the types of the attributes of the dataSet item.
A dataset is the unit of information manipulated by the data access module of TerraLib.
boost::ptr_vector< boost::nullable< te::dt::AbstractData > > m_data
The data values of the.
#define TEDATAACCESSEXPORT
You can use this macro in order to export/import classes and functions from this module.
An implementation of the DatasetItem class for the TerraLib In-Memory Data Access driver...