te::gdal::DataSet Class Reference

A GDAL data set gives access to a raster file. More...

#include <DataSet.h>

Inheritance diagram for te::gdal::DataSet:
te::da::DataSet

Public Member Functions

 DataSet (std::auto_ptr< te::da::DataSetType > dt, te::common::AccessPolicy rwRole, std::string uri="")
 Constructor. More...
 
te::common::AccessPolicy getAccessPolicy () const
 It returns the read and write permission associated to the dataset. More...
 
std::auto_ptr< te::dt::ArraygetArray (std::size_t) const
 Method for retrieving an array. More...
 
std::auto_ptr< te::dt::ArraygetArray (const std::string &) const
 Method for retrieving an array. More...
 
bool getBool (std::size_t) const
 Method for retrieving a boolean attribute value. More...
 
bool getBool (const std::string &) const
 Method for retrieving a boolean attribute value. More...
 
std::auto_ptr< te::dt::ByteArraygetByteArray (std::size_t) const
 Method for retrieving a byte array. More...
 
std::auto_ptr< te::dt::ByteArraygetByteArray (const std::string &) const
 Method for retrieving a byte array. More...
 
char getChar (std::size_t) const
 Method for retrieving a signed character attribute value (1 byte long). More...
 
char getChar (const std::string &) const
 Method for retrieving a signed character attribute value (1 byte long). More...
 
std::string getDatasetNameOfProperty (std::size_t pos) const
 It returns the underlying dataset name of the property at position pos. More...
 
std::auto_ptr< te::dt::DateTimegetDateTime (std::size_t) const
 Method for retrieving a date and time attribute value. More...
 
std::auto_ptr< te::dt::DateTimegetDateTime (const std::string &) const
 Method for retrieving a date and time attribute value. More...
 
double getDouble (std::size_t) const
 Method for retrieving a double attribute value. More...
 
double getDouble (const std::string &) const
 Method for retrieving a double attribute value. More...
 
std::auto_ptr< te::gm::EnvelopegetExtent (std::size_t i)
 It computes the bounding rectangle for a spatial property of the dataset. More...
 
float getFloat (std::size_t) const
 Method for retrieving a float attribute value. More...
 
float getFloat (const std::string &) const
 Method for retrieving a float attribute value. More...
 
std::auto_ptr< te::gm::GeometrygetGeometry (std::size_t) const
 Method for retrieving a geometric attribute value. More...
 
std::auto_ptr< te::gm::GeometrygetGeometry (const std::string &) const
 Method for retrieving a geometric attribute value. More...
 
boost::int16_t getInt16 (std::size_t) const
 Method for retrieving a 16-bit integer attribute value (2 bytes long). More...
 
boost::int16_t getInt16 (const std::string &) const
 Method for retrieving a 16-bit integer attribute value (2 bytes long). More...
 
boost::int32_t getInt32 (std::size_t) const
 Method for retrieving a 32-bit integer attribute value (4 bytes long). More...
 
boost::int32_t getInt32 (const std::string &) const
 Method for retrieving a 32-bit integer attribute value (4 bytes long). More...
 
boost::int64_t getInt64 (std::size_t) const
 Method for retrieving a 64-bit integer attribute value (8 bytes long). More...
 
boost::int64_t getInt64 (const std::string &) const
 Method for retrieving a 64-bit integer attribute value (8 bytes long). More...
 
std::string getNumeric (std::size_t) const
 Method for retrieving a numeric attribute value. More...
 
std::string getNumeric (const std::string &) const
 Method for retrieving a numeric attribute value. More...
 
std::size_t getNumProperties () const
 It returns the number of properties that composes an item of the dataset. More...
 
te::common::CharEncoding getPropertyCharEncoding (std::size_t i) const
 It returns the property character encoding at position pos. More...
 
int getPropertyDataType (std::size_t pos) const
 It returns the underlying data type of the property at position pos. More...
 
std::string getPropertyName (std::size_t pos) const
 It returns the property name at position pos. More...
 
std::auto_ptr< te::rst::RastergetRaster (std::size_t i) const
 Method for retrieving a raster attribute value. More...
 
std::auto_ptr< te::rst::RastergetRaster (const std::string &name) const
 Method for retrieving a raster attribute value. More...
 
std::string getString (std::size_t) const
 Method for retrieving a string value attribute. More...
 
std::string getString (const std::string &) const
 Method for retrieving a string attribute value. More...
 
te::common::TraverseType getTraverseType () const
 It returns the traverse type associated to the dataset. More...
 
unsigned char getUChar (std::size_t) const
 Method for retrieving an unsigned character attribute value (1 byte long). More...
 
unsigned char getUChar (const std::string &) const
 Method for retrieving an unsigned character attribute value (1 byte long). More...
 
std::auto_ptr< te::dt::AbstractDatagetValue (std::size_t) const
 Method for retrieving any other type of data value stored in the data source. More...
 
std::auto_ptr< te::dt::AbstractDatagetValue (const std::string &) const
 Method for retrieving any other type of data value stored in the data source. More...
 
bool isAfterEnd () const
 It tells if the dataset internal pointer is on the sentinel position after the last element of the collection or not. More...
 
bool isAtBegin () const
 It tells if the dataset internal pointer is on the first element of the collection or not. More...
 
bool isAtEnd () const
 It tells if the dataset internal pointer is on the last element of the collection. More...
 
bool isBeforeBegin () const
 It tells if the dataset internal pointer is in a position before the first element of the collection or not. More...
 
bool isConnected () const
 It returns true if the dataset is connected and false if it is disconnected. A dataset can be connected or disconnected. A connected dataset, after its creation through the data source transactor, continues to depend on the connection given by its associated data source. Differently, a disconnected dataset, after its creation, no more depends of the connection given by the data source, and it continues to live after the connection has been released to the data source. More...
 
bool isEmpty () const
 It returns true if the collection is empty. More...
 
bool isNull (std::size_t i) const
 It checks if the attribute value is NULL. More...
 
bool isNull (const std::string &) const
 It checks if the attribute value is NULL. More...
 
bool move (std::size_t i)
 It moves the dataset internal pointer to a given position. More...
 
bool moveBeforeFirst ()
 It moves the internal pointer to a position before the first item in the collection. More...
 
bool moveFirst ()
 It moves the internal pointer to the first item in the collection. More...
 
bool moveLast ()
 It sets the dataset internal pointer to the last item in the collection. More...
 
bool moveNext ()
 It moves the internal pointer to the next item of the collection. More...
 
bool movePrevious ()
 It moves the internal pointer to the previous item of the collection. More...
 
void setURI (const std::string &uri)
 
std::size_t size () const
 It returns the collection size, if it is known. More...
 
 ~DataSet ()
 Destructor. More...
 
DataSet Element Properties

Methods for retrieving/setting the dataset item component values without the need to explicitly instantiate an item via getItem method.

virtual std::string getAsString (std::size_t i, int precision=0) const
 Method for retrieving a data value as a string plain representation. More...
 
virtual std::string getAsString (const std::string &name, int precision=0) const
 Method for retrieving a data value as a string plain representation. More...
 

Private Member Functions

void loadTypeInfo ()
 

Private Attributes

std::auto_ptr< te::da::DataSetTypem_dsType
 It describes the dataset. More...
 
int m_i
 Just to indicate the internal pointer movement. More...
 
te::common::AccessPolicy m_rwRole
 Access role. More...
 
int m_size
 For GDAL driver this will be constant: 1. More...
 
std::string m_uri
 

Detailed Description

A GDAL data set gives access to a raster file.

Definition at line 50 of file DataSet.h.

Constructor & Destructor Documentation

te::gdal::DataSet::DataSet ( std::auto_ptr< te::da::DataSetType dt,
te::common::AccessPolicy  rwRole,
std::string  uri = "" 
)

Constructor.

Parameters
dtThe dataset type. DataSet will take its ownership.
rwRoleThe access policy of the dataset.
te::gdal::DataSet::~DataSet ( )
virtual

Destructor.

Reimplemented from te::da::DataSet.

Member Function Documentation

te::common::AccessPolicy te::gdal::DataSet::getAccessPolicy ( ) const
inlinevirtual

It returns the read and write permission associated to the dataset.

Returns
The read and write permission associated to the dataset.

Implements te::da::DataSet.

Definition at line 66 of file DataSet.h.

std::auto_ptr<te::dt::Array> te::gdal::DataSet::getArray ( std::size_t  i) const
inlinevirtual

Method for retrieving an array.

Parameters
iThe attribute index.

Implements te::da::DataSet.

Definition at line 148 of file DataSet.h.

std::auto_ptr<te::dt::Array> te::gdal::DataSet::getArray ( const std::string &  name) const
inlinevirtual

Method for retrieving an array.

Parameters
nameThe attribute name.
Returns
An array. The caller will take its ownership.

Reimplemented from te::da::DataSet.

Definition at line 151 of file DataSet.h.

virtual std::string te::da::DataSet::getAsString ( std::size_t  i,
int  precision = 0 
) const
virtualinherited

Method for retrieving a data value as a string plain representation.

Parameters
iThe attribute index.
precisionThe precision in the conversion.
Returns
The attribute value in a string format.
Note
It is safe to call this method for any data type, the data source implementation will take care of how to convert the internal representation to a string.
virtual std::string te::da::DataSet::getAsString ( const std::string &  name,
int  precision = 0 
) const
virtualinherited

Method for retrieving a data value as a string plain representation.

Parameters
nameThe attribute name.
precisionThe precision in the conversion.
Returns
The attribute value in a string format.
Note
It is safe to call this method for any data type, the data source implementation will take care of how to convert the internal representation to a string.
bool te::gdal::DataSet::getBool ( std::size_t  i) const
inlinevirtual

Method for retrieving a boolean attribute value.

Parameters
iThe attribute index.
Returns
The boolean attribute value in the given position.

Implements te::da::DataSet.

Definition at line 111 of file DataSet.h.

bool te::gdal::DataSet::getBool ( const std::string &  name) const
inlinevirtual

Method for retrieving a boolean attribute value.

Parameters
nameThe attribute name.
Returns
The boolean attribute value with the given name.

Reimplemented from te::da::DataSet.

Definition at line 112 of file DataSet.h.

std::auto_ptr<te::dt::ByteArray> te::gdal::DataSet::getByteArray ( std::size_t  i) const
inlinevirtual

Method for retrieving a byte array.

You can use this method in order to retrieve a BLOB data.

Parameters
iThe attribute index.
Returns
The byte array attribute.

Implements te::da::DataSet.

Definition at line 126 of file DataSet.h.

std::auto_ptr<te::dt::ByteArray> te::gdal::DataSet::getByteArray ( const std::string &  name) const
inlinevirtual

Method for retrieving a byte array.

You can use this method in order to retrieve a BLOB data.

Parameters
nameThe attribute name.
Returns
The byte array attribute.

Reimplemented from te::da::DataSet.

Definition at line 129 of file DataSet.h.

char te::gdal::DataSet::getChar ( std::size_t  i) const
inlinevirtual

Method for retrieving a signed character attribute value (1 byte long).

Parameters
iThe attribute index.
Returns
The signed character attribute value (1 byte long) in the given position.

Implements te::da::DataSet.

Definition at line 96 of file DataSet.h.

char te::gdal::DataSet::getChar ( const std::string &  name) const
inlinevirtual

Method for retrieving a signed character attribute value (1 byte long).

Parameters
nameThe attribute name.
Returns
The signed character attribute value (1 byte long) with the given name.

Reimplemented from te::da::DataSet.

Definition at line 97 of file DataSet.h.

std::string te::gdal::DataSet::getDatasetNameOfProperty ( std::size_t  i) const
virtual

It returns the underlying dataset name of the property at position pos.

Parameters
iThe property position of interest.
Returns
The underlying dataset name of the property at position pos.

Implements te::da::DataSet.

std::auto_ptr<te::dt::DateTime> te::gdal::DataSet::getDateTime ( std::size_t  i) const
inlinevirtual

Method for retrieving a date and time attribute value.

Parameters
iThe attribute index.
Returns
The date and time attribute value in the given position.

Implements te::da::DataSet.

Definition at line 142 of file DataSet.h.

std::auto_ptr<te::dt::DateTime> te::gdal::DataSet::getDateTime ( const std::string &  name) const
inlinevirtual

Method for retrieving a date and time attribute value.

Parameters
nameThe attribute name.
Returns
The date and time attribute value with the given name.

Reimplemented from te::da::DataSet.

Definition at line 145 of file DataSet.h.

double te::gdal::DataSet::getDouble ( std::size_t  i) const
inlinevirtual

Method for retrieving a double attribute value.

Parameters
iThe attribute index.
Returns
The double attribute value in the given position.

Implements te::da::DataSet.

Definition at line 117 of file DataSet.h.

double te::gdal::DataSet::getDouble ( const std::string &  name) const
inlinevirtual

Method for retrieving a double attribute value.

Parameters
nameThe attribute name.
Returns
The double attribute value with the given name.

Reimplemented from te::da::DataSet.

Definition at line 118 of file DataSet.h.

std::auto_ptr<te::gm::Envelope> te::gdal::DataSet::getExtent ( std::size_t  i)
virtual

It computes the bounding rectangle for a spatial property of the dataset.

Parameters
iThe position of a spatial property to get its bounding box.
Precondition
The position i must be associated to a spatial property of the dataset.
Exceptions
ExceptionIt throws an exception if something goes wrong during MBR search.
Returns
The spatial property bounding rectangle, or an invalid box, if none is found.

Implements te::da::DataSet.

float te::gdal::DataSet::getFloat ( std::size_t  i) const
inlinevirtual

Method for retrieving a float attribute value.

Parameters
iThe attribute index.
Returns
The float attribute value in the given position.

Implements te::da::DataSet.

Definition at line 114 of file DataSet.h.

float te::gdal::DataSet::getFloat ( const std::string &  name) const
inlinevirtual

Method for retrieving a float attribute value.

Parameters
nameThe attribute name.
Returns
The float attribute value with the given name.

Reimplemented from te::da::DataSet.

Definition at line 115 of file DataSet.h.

std::auto_ptr<te::gm::Geometry> te::gdal::DataSet::getGeometry ( std::size_t  i) const
inlinevirtual

Method for retrieving a geometric attribute value.

Parameters
iThe attribute index.
Returns
The geometric attribute value in the given position.

Implements te::da::DataSet.

Definition at line 132 of file DataSet.h.

std::auto_ptr<te::gm::Geometry> te::gdal::DataSet::getGeometry ( const std::string &  name) const
inlinevirtual

Method for retrieving a geometric attribute value.

Parameters
nameThe attribute name.
Returns
The geometric attribute value with the given name.

Reimplemented from te::da::DataSet.

Definition at line 135 of file DataSet.h.

boost::int16_t te::gdal::DataSet::getInt16 ( std::size_t  i) const
inlinevirtual

Method for retrieving a 16-bit integer attribute value (2 bytes long).

Parameters
iThe attribute index.
Returns
The 16-bit integer attribute value (2 bytes long) in the given position.

Implements te::da::DataSet.

Definition at line 102 of file DataSet.h.

boost::int16_t te::gdal::DataSet::getInt16 ( const std::string &  name) const
inlinevirtual

Method for retrieving a 16-bit integer attribute value (2 bytes long).

Parameters
nameThe attribute name.
Returns
The 16-bit integer attribute value (2 bytes long) with the given name.

Reimplemented from te::da::DataSet.

Definition at line 103 of file DataSet.h.

boost::int32_t te::gdal::DataSet::getInt32 ( std::size_t  i) const
inlinevirtual

Method for retrieving a 32-bit integer attribute value (4 bytes long).

Parameters
iThe attribute index.
Returns
The 32-bit integer attribute value in the given position.

Implements te::da::DataSet.

Definition at line 105 of file DataSet.h.

boost::int32_t te::gdal::DataSet::getInt32 ( const std::string &  name) const
inlinevirtual

Method for retrieving a 32-bit integer attribute value (4 bytes long).

Parameters
nameThe attribute name.
Returns
The 32-bit integer attribute value with the given name.

Reimplemented from te::da::DataSet.

Definition at line 106 of file DataSet.h.

boost::int64_t te::gdal::DataSet::getInt64 ( std::size_t  i) const
inlinevirtual

Method for retrieving a 64-bit integer attribute value (8 bytes long).

Parameters
iThe attribute index.
Returns
The 64-bit integer attribute value in the given position.

Implements te::da::DataSet.

Definition at line 108 of file DataSet.h.

boost::int64_t te::gdal::DataSet::getInt64 ( const std::string &  name) const
inlinevirtual

Method for retrieving a 64-bit integer attribute value (8 bytes long).

Parameters
nameThe attribute name.
Returns
The 64-bit integer attribute value with the given name.

Reimplemented from te::da::DataSet.

Definition at line 109 of file DataSet.h.

std::string te::gdal::DataSet::getNumeric ( std::size_t  i) const
inlinevirtual

Method for retrieving a numeric attribute value.

Parameters
iThe attribute index.
Returns
The numeric attribute value in the given position.

Implements te::da::DataSet.

Definition at line 120 of file DataSet.h.

std::string te::gdal::DataSet::getNumeric ( const std::string &  name) const
inlinevirtual

Method for retrieving a numeric attribute value.

Parameters
nameThe attribute name.
Returns
The numeric attribute value with the given name.

Reimplemented from te::da::DataSet.

Definition at line 121 of file DataSet.h.

std::size_t te::gdal::DataSet::getNumProperties ( ) const
virtual

It returns the number of properties that composes an item of the dataset.

Returns
The number of properties that composes an item of the dataset.

Implements te::da::DataSet.

te::common::CharEncoding te::gdal::DataSet::getPropertyCharEncoding ( std::size_t  i) const
inlinevirtual

It returns the property character encoding at position pos.

Parameters
iThe property the position of interest.
Returns
The property character encoding.
Note
The property at position pos must be a textual property.
Exceptions
ExceptionIt throws an exception if the property at position pos is not a textual property.

Implements te::da::DataSet.

Definition at line 76 of file DataSet.h.

References te::common::UNKNOWN_CHAR_ENCODING.

int te::gdal::DataSet::getPropertyDataType ( std::size_t  i) const
virtual

It returns the underlying data type of the property at position pos.

Parameters
iThe property position of interest.
Returns
The underlying data type of the property at position pos.

Implements te::da::DataSet.

std::string te::gdal::DataSet::getPropertyName ( std::size_t  i) const
virtual

It returns the property name at position pos.

Parameters
iThe property name at the position of interest.
Returns
The property name at position pos.

Implements te::da::DataSet.

std::auto_ptr<te::rst::Raster> te::gdal::DataSet::getRaster ( std::size_t  i) const
virtual

Method for retrieving a raster attribute value.

Parameters
iThe attribute index.
Returns
The raster attribute value in the given position.
Exceptions
ExceptionIt can throw an exception if:
  • something goes wrong during the data retrieval
  • the maximum number of simultaneous accesses has been reached

Implements te::da::DataSet.

std::auto_ptr<te::rst::Raster> te::gdal::DataSet::getRaster ( const std::string &  name) const
virtual

Method for retrieving a raster attribute value.

Parameters
nameThe attribute name.
Returns
The raster attribute value with the given name.
Exceptions
ExceptionIt can throw an exception if:
  • something goes wrong during the data retrieval
  • the maximum number of simultaneous accesses has been reached

Reimplemented from te::da::DataSet.

std::string te::gdal::DataSet::getString ( std::size_t  i) const
inlinevirtual

Method for retrieving a string value attribute.

Parameters
iThe attribute index.
Returns
The string attribute value in the given position.

Implements te::da::DataSet.

Definition at line 123 of file DataSet.h.

std::string te::gdal::DataSet::getString ( const std::string &  name) const
inlinevirtual

Method for retrieving a string attribute value.

Parameters
nameThe attribute name.
Returns
The string attribute value with the given name.

Reimplemented from te::da::DataSet.

Definition at line 124 of file DataSet.h.

te::common::TraverseType te::gdal::DataSet::getTraverseType ( ) const
inlinevirtual

It returns the traverse type associated to the dataset.

Returns
The traverse type associated to the dataset.

Implements te::da::DataSet.

Definition at line 64 of file DataSet.h.

References te::common::FORWARDONLY.

unsigned char te::gdal::DataSet::getUChar ( std::size_t  i) const
inlinevirtual

Method for retrieving an unsigned character attribute value (1 byte long).

Parameters
iThe attribute index.
Returns
The unsigned character attribute value (1 byte long) in the given position.

Implements te::da::DataSet.

Definition at line 99 of file DataSet.h.

unsigned char te::gdal::DataSet::getUChar ( const std::string &  name) const
inlinevirtual

Method for retrieving an unsigned character attribute value (1 byte long).

Parameters
nameThe attribute name.
Returns
The unsigned character attribute value (1 byte long) with the given name.

Reimplemented from te::da::DataSet.

Definition at line 100 of file DataSet.h.

std::auto_ptr<te::dt::AbstractData> te::gdal::DataSet::getValue ( std::size_t  i) const
inlinevirtual

Method for retrieving any other type of data value stored in the data source.

This method can be use for extensible datatypes.

Parameters
iThe attribute index.
Returns
A pointer to the data value.

Reimplemented from te::da::DataSet.

Definition at line 154 of file DataSet.h.

std::auto_ptr<te::dt::AbstractData> te::gdal::DataSet::getValue ( const std::string &  name) const
inlinevirtual

Method for retrieving any other type of data value stored in the data source.

This method can be use for extensible datatypes.

Parameters
nameThe attribute name.
Returns
A pointer to the data value.

Reimplemented from te::da::DataSet.

Definition at line 157 of file DataSet.h.

bool te::gdal::DataSet::isAfterEnd ( ) const
virtual

It tells if the dataset internal pointer is on the sentinel position after the last element of the collection or not.

Returns
True, if the dataset internal pointer is on the sentinel position after the last element otherwise it returns false.

Implements te::da::DataSet.

bool te::gdal::DataSet::isAtBegin ( ) const
virtual

It tells if the dataset internal pointer is on the first element of the collection or not.

Returns
True if the dataset internal pointer is on the first element otherwise it returns false.

Implements te::da::DataSet.

bool te::gdal::DataSet::isAtEnd ( ) const
virtual

It tells if the dataset internal pointer is on the last element of the collection.

Returns
True, if the dataset internal pointer is on the last element otherwise it returns false.

Implements te::da::DataSet.

bool te::gdal::DataSet::isBeforeBegin ( ) const
virtual

It tells if the dataset internal pointer is in a position before the first element of the collection or not.

Returns
True, if the dataset internal pointer is in a position before the first element otherwise it returns false.

Implements te::da::DataSet.

bool te::gdal::DataSet::isConnected ( ) const
inlinevirtual

It returns true if the dataset is connected and false if it is disconnected. A dataset can be connected or disconnected. A connected dataset, after its creation through the data source transactor, continues to depend on the connection given by its associated data source. Differently, a disconnected dataset, after its creation, no more depends of the connection given by the data source, and it continues to live after the connection has been released to the data source.

Returns
True, if the dataset is connected, or false if it is disconnected.

Implements te::da::DataSet.

Definition at line 166 of file DataSet.h.

bool te::gdal::DataSet::isEmpty ( ) const
inlinevirtual

It returns true if the collection is empty.

Returns
True, if the collection is empty.

Implements te::da::DataSet.

Definition at line 80 of file DataSet.h.

bool te::gdal::DataSet::isNull ( std::size_t  i) const
inlinevirtual

It checks if the attribute value is NULL.

Parameters
iThe attribute index.
Returns
True if the attribute value is NULL.

Implements te::da::DataSet.

Definition at line 160 of file DataSet.h.

bool te::gdal::DataSet::isNull ( const std::string &  name) const
inlinevirtual

It checks if the attribute value is NULL.

Parameters
nameThe attribute name.
Returns
True if the attribute value is NULL.

Reimplemented from te::da::DataSet.

Definition at line 162 of file DataSet.h.

void te::gdal::DataSet::loadTypeInfo ( )
private
bool te::gdal::DataSet::move ( std::size_t  i)
virtual

It moves the dataset internal pointer to a given position.

Parameters
iThe position the dataset internal pointer must be set up.
Returns
True, if it was possible to move the dataset reading to the given position.
Note
The first item in the collection starts at address 0.

Implements te::da::DataSet.

bool te::gdal::DataSet::moveBeforeFirst ( )
virtual

It moves the internal pointer to a position before the first item in the collection.

Returns
True, if it was possible to move to a sentinel position before the first item in the collection.
Note
This method is not supported by FORWARDONLY datasets.

Implements te::da::DataSet.

bool te::gdal::DataSet::moveFirst ( )
virtual

It moves the internal pointer to the first item in the collection.

Returns
True, if it was possible to move to the first item in the collection.
Note
This method is not supported by FORWARDONLY datasets.

Implements te::da::DataSet.

bool te::gdal::DataSet::moveLast ( )
virtual

It sets the dataset internal pointer to the last item in the collection.

Returns
True, if it was possible to move to the last item in the collection.

Implements te::da::DataSet.

bool te::gdal::DataSet::moveNext ( )
virtual

It moves the internal pointer to the next item of the collection.

You always has to call this method in order to move the internal pointer to the first item in the collection. This method can be used to traverse a dataset.

Returns
True if the internal pointer is on a valid item, or false otherwise.
Note
All dataset types support this method: FORWARDONLY, BIDIRECTIONAL and RANDOM.

Implements te::da::DataSet.

bool te::gdal::DataSet::movePrevious ( )
virtual

It moves the internal pointer to the previous item of the collection.

Returns
True, if the internal pointer (cursor position) is on a valid item, or false otherwise.
Note
This method is not supported by FORWARDONLY datasets.

Implements te::da::DataSet.

void te::gdal::DataSet::setURI ( const std::string &  uri)
std::size_t te::gdal::DataSet::size ( ) const
inlinevirtual

It returns the collection size, if it is known.

It may return std::string::npos if the size is not known, or it would be too costly to compute it.

Returns
The size of the collection, if it is known.

Implements te::da::DataSet.

Definition at line 82 of file DataSet.h.

Member Data Documentation

std::auto_ptr<te::da::DataSetType> te::gdal::DataSet::m_dsType
private

It describes the dataset.

Definition at line 174 of file DataSet.h.

int te::gdal::DataSet::m_i
private

Just to indicate the internal pointer movement.

Definition at line 178 of file DataSet.h.

te::common::AccessPolicy te::gdal::DataSet::m_rwRole
private

Access role.

Definition at line 176 of file DataSet.h.

int te::gdal::DataSet::m_size
private

For GDAL driver this will be constant: 1.

Definition at line 177 of file DataSet.h.

std::string te::gdal::DataSet::m_uri
private

Definition at line 175 of file DataSet.h.


The documentation for this class was generated from the following file: