Go to the documentation of this file.
25 #ifndef __TERRALIB_RP_INTERNAL_RASTERHANDLER_H
26 #define __TERRALIB_RP_INTERNAL_RASTERHANDLER_H
30 #include "../dataaccess/datasource/DataSource.h"
31 #include "../dataaccess/datasource/DataSourceTransactor.h"
32 #include "../dataaccess/dataset/DataSet.h"
33 #include "../raster/Raster.h"
35 #include <boost/noncopyable.hpp>
140 std::unique_ptr< te::da::DataSource >& dataSourcePtr,
141 std::unique_ptr< te::da::DataSourceTransactor >& transactorPtr,
142 std::unique_ptr< te::da::DataSet >& dataSetPtr,
143 std::unique_ptr< te::rst::Raster >& rasterPtr );
164 #endif // __TERRALIB_RP_INTERNAL_RASTERHANDLER_H
An abstract class for raster data strucutures.
te::rst::Raster * getRasterPtr()
Returns a pointer the the handled raster instance or NULL if no instance is handled.
A DataSourceTransactor can be viewed as a connection to the data source for reading/writing things in...
RasterHandler(te::da::DataSource *dataSourcePtr, te::da::DataSourceTransactor *transactorPtr, te::da::DataSet *dataSetPtr, te::rst::Raster *rasterPtr)
Build a instance using the given naked pointers.
void reset(te::da::DataSource *dataSourcePtr, te::da::DataSourceTransactor *transactorPtr, te::da::DataSet *dataSetPtr, te::rst::Raster *rasterPtr)
Reset the internal state (all pointed objects are deleted).
std::unique_ptr< te::da::DataSource > m_dataSourcePtr
A pointer to a datasource instance.
void reset(te::da::DataSourceTransactor *transactorPtr, te::da::DataSet *dataSetPtr, te::rst::Raster *rasterPtr)
Reset the internal state (all pointed objects are deleted).
#define TERPEXPORT
You can use this macro in order to export/import classes and functions from this module.
std::unique_ptr< te::rst::Raster > m_rasterPtr
A pointer to a raster instance related to the data set instance pointed by m_dataSetPtr.
void release(RasterHandler &other)
Relase the internal state and give the ownership to the given external handler instance.
std::unique_ptr< te::da::DataSet > m_dataSetPtr
A pointer to a data set instance related to the transactor instance pointed by m_transactorPtr.
void release(std::unique_ptr< te::da::DataSource > &dataSourcePtr, std::unique_ptr< te::da::DataSourceTransactor > &transactorPtr, std::unique_ptr< te::da::DataSet > &dataSetPtr, std::unique_ptr< te::rst::Raster > &rasterPtr)
Relase the internal state and give the ownership to the given pointers.
void reset()
Reset the internal state (all internal pointed objects are deleted).
An abstract class for data providers like a DBMS, Web Services or a regular file.
A dataset is the unit of information manipulated by the data access module of TerraLib.
Proxy configuration file for TerraView (see terraview_config.h).
void reset(te::rst::Raster *rasterPtr)
Reset the internal state (all pointed objects are deleted).
RasterHandler(te::da::DataSourceTransactor *transactorPtr, te::da::DataSet *dataSetPtr, te::rst::Raster *rasterPtr)
Build a instance using the given naked pointers.
RasterHandler(te::rst::Raster *rasterPtr)
Build a instance using the given raster naked pointer.
std::unique_ptr< te::da::DataSourceTransactor > m_transactorPtr
A pointer to a transactor instance that may or may not be related to data source instance pointed by ...