te::rp::RasterHandler Class Reference

RasterHandler. More...

#include <RasterHandler.h>

Inheritance diagram for te::rp::RasterHandler:

Public Member Functions

te::rst::RastergetRasterPtr ()
 Returns a pointer the the handled raster instance or NULL if no instance is handled. More...
 
 RasterHandler ()
 
 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. More...
 
 RasterHandler (te::da::DataSourceTransactor *transactorPtr, te::da::DataSet *dataSetPtr, te::rst::Raster *rasterPtr)
 Build a instance using the given naked pointers. More...
 
 RasterHandler (te::rst::Raster *rasterPtr)
 Build a instance using the given raster naked pointer. More...
 
void release (RasterHandler &other)
 Relase the internal state and give the ownership to the given external handler instance. More...
 
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. More...
 
void reset ()
 Reset the internal state (all internal pointed objects are deleted). More...
 
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). More...
 
void reset (te::da::DataSourceTransactor *transactorPtr, te::da::DataSet *dataSetPtr, te::rst::Raster *rasterPtr)
 Reset the internal state (all pointed objects are deleted). More...
 
void reset (te::rst::Raster *rasterPtr)
 Reset the internal state (all pointed objects are deleted). More...
 
 ~RasterHandler ()
 

Protected Attributes

std::unique_ptr< te::da::DataSetm_dataSetPtr
 A pointer to a data set instance related to the transactor instance pointed by m_transactorPtr. More...
 
std::unique_ptr< te::da::DataSourcem_dataSourcePtr
 A pointer to a datasource instance. More...
 
std::unique_ptr< te::rst::Rasterm_rasterPtr
 A pointer to a raster instance related to the data set instance pointed by m_dataSetPtr.
More...
 
std::unique_ptr< te::da::DataSourceTransactorm_transactorPtr
 A pointer to a transactor instance that may or may not be related to data source instance pointed by m_dataSourcePtr. More...
 

Detailed Description

RasterHandler.

Definition at line 47 of file RasterHandler.h.

Constructor & Destructor Documentation

◆ RasterHandler() [1/4]

te::rp::RasterHandler::RasterHandler ( )

◆ ~RasterHandler()

te::rp::RasterHandler::~RasterHandler ( )

◆ RasterHandler() [2/4]

te::rp::RasterHandler::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.

Parameters
dataSourcePtrData source pointer.
transactorPtrA pointer to a transactor instance related to the data source pointed by dataSourcePtr.
dataSetPtrA pointer to a data set instance related to the instance pointed by persistencePtr.
rasterPtrA pointer to a raster instance related to the instance pointed by rasterPtr.
Note
All given pionters will be acquired and their respective objects will be deleted at desctruction time.

◆ RasterHandler() [3/4]

te::rp::RasterHandler::RasterHandler ( te::da::DataSourceTransactor transactorPtr,
te::da::DataSet dataSetPtr,
te::rst::Raster rasterPtr 
)

Build a instance using the given naked pointers.

Parameters
transactorPtrTransactor pointer.
dataSetPtrA pointer to a data set instance related to the instance pointed by persistencePtr.
rasterPtrA pointer to a raster instance related to the instance pointed by rasterPtr.
Note
All given pionters will be acquired and their respective objects will be deleted at desctruction time.

◆ RasterHandler() [4/4]

te::rp::RasterHandler::RasterHandler ( te::rst::Raster rasterPtr)

Build a instance using the given raster naked pointer.

Parameters
rasterPtrA pointer to a raster instance.
Note
All given pionters will be acquired and their respective objects will be deleted at desctruction time.

Member Function Documentation

◆ getRasterPtr()

te::rst::Raster* te::rp::RasterHandler::getRasterPtr ( )

Returns a pointer the the handled raster instance or NULL if no instance is handled.

Returns
Returns a pointer the the handled raster instance or NULL if no instance is handled.

◆ release() [1/2]

void te::rp::RasterHandler::release ( RasterHandler other)

Relase the internal state and give the ownership to the given external handler instance.

Parameters
otherThe external handler instance.

◆ release() [2/2]

void te::rp::RasterHandler::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.

Parameters
dataSourcePtrData source pointer.
transactorPtrA pointer to a transactor instance related to the data source pointed by dataSourcePtr.
dataSetPtrA pointer to a data set instance related to the instance pointed by persistencePtr.
rasterPtrA pointer to a raster instance related to the instance pointed by rasterPtr.

◆ reset() [1/4]

void te::rp::RasterHandler::reset ( )

Reset the internal state (all internal pointed objects are deleted).

◆ reset() [2/4]

void te::rp::RasterHandler::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).

Parameters
dataSourcePtrData source pointer.
transactorPtrA pointer to a transactor instance related to the data source pointed by dataSourcePtr.
dataSetPtrA pointer to a data set instance related to the instance pointed by persistencePtr.
rasterPtrA pointer to a raster instance related to the instance pointed by rasterPtr.
Note
All given pionters will be acquired and their respective objects will be deleted at desctruction time.

◆ reset() [3/4]

void te::rp::RasterHandler::reset ( te::da::DataSourceTransactor transactorPtr,
te::da::DataSet dataSetPtr,
te::rst::Raster rasterPtr 
)

Reset the internal state (all pointed objects are deleted).

Parameters
transactorPtrA pointer to a transactor instance related to the data source pointed by dataSourcePtr.
dataSetPtrA pointer to a data set instance related to the instance pointed by persistencePtr.
rasterPtrA pointer to a raster instance related to the instance pointed by rasterPtr.
Note
All given pionters will be acquired and their respective objects will be deleted at desctruction time.

◆ reset() [4/4]

void te::rp::RasterHandler::reset ( te::rst::Raster rasterPtr)

Reset the internal state (all pointed objects are deleted).

Parameters
rasterPtrA pointer to a raster instance.
Note
All given pionters will be acquired and their respective objects will be deleted at desctruction time.

Member Data Documentation

◆ m_dataSetPtr

std::unique_ptr< te::da::DataSet > te::rp::RasterHandler::m_dataSetPtr
mutableprotected

A pointer to a data set instance related to the transactor instance pointed by m_transactorPtr.

Definition at line 157 of file RasterHandler.h.

◆ m_dataSourcePtr

std::unique_ptr< te::da::DataSource > te::rp::RasterHandler::m_dataSourcePtr
mutableprotected

A pointer to a datasource instance.

Definition at line 153 of file RasterHandler.h.

◆ m_rasterPtr

std::unique_ptr< te::rst::Raster > te::rp::RasterHandler::m_rasterPtr
mutableprotected

A pointer to a raster instance related to the data set instance pointed by m_dataSetPtr.

Definition at line 159 of file RasterHandler.h.

◆ m_transactorPtr

std::unique_ptr< te::da::DataSourceTransactor > te::rp::RasterHandler::m_transactorPtr
mutableprotected

A pointer to a transactor instance that may or may not be related to data source instance pointed by m_dataSourcePtr.

Definition at line 155 of file RasterHandler.h.


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