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 (std::auto_ptr< te::da::DataSource > &dataSourcePtr, std::auto_ptr< te::da::DataSourceTransactor > &transactorPtr, std::auto_ptr< te::da::DataSet > &dataSetPtr, std::auto_ptr< te::rst::Raster > &rasterPtr)
 Relase the internal state and give the ownership to the given pointers. More...
 
void release (RasterHandler &other)
 Relase the internal state and give the ownership to the given external handler instance. 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::auto_ptr< te::da::DataSetm_dataSetPtr
 A pointer to a data set instance related to the transactor instance pointed by m_transactorPtr. More...
 
std::auto_ptr< te::da::DataSourcem_dataSourcePtr
 A pointer to a datasource instance. More...
 
std::auto_ptr< te::rst::Rasterm_rasterPtr
 A pointer to a raster instance related to the data set instance pointed by m_dataSetPtr. More...
 
std::auto_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

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

Definition at line 31 of file RasterHandler.cpp.

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

Definition at line 63 of file RasterHandler.cpp.

References reset().

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.

Definition at line 35 of file RasterHandler.cpp.

References m_dataSetPtr, m_dataSourcePtr, m_rasterPtr, and m_transactorPtr.

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.

Definition at line 47 of file RasterHandler.cpp.

References m_dataSetPtr, m_rasterPtr, and m_transactorPtr.

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.

Definition at line 58 of file RasterHandler.cpp.

References m_rasterPtr.

Member Function Documentation

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.

Definition at line 109 of file RasterHandler.cpp.

References m_rasterPtr.

Referenced by te::rp::Copy2DiskRaster(), and te::rp::SequenceMosaic::createRasterDataSet().

void te::rp::RasterHandler::release ( std::auto_ptr< te::da::DataSource > &  dataSourcePtr,
std::auto_ptr< te::da::DataSourceTransactor > &  transactorPtr,
std::auto_ptr< te::da::DataSet > &  dataSetPtr,
std::auto_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.

Definition at line 114 of file RasterHandler.cpp.

References m_dataSetPtr, m_dataSourcePtr, m_rasterPtr, and m_transactorPtr.

Referenced by te::rp::CreateNewRaster().

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.

Definition at line 126 of file RasterHandler.cpp.

References m_dataSetPtr, m_dataSourcePtr, m_rasterPtr, and m_transactorPtr.

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

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

Definition at line 68 of file RasterHandler.cpp.

References m_dataSetPtr, m_dataSourcePtr, m_rasterPtr, and m_transactorPtr.

Referenced by te::rp::CreateNewGdalRaster(), te::rp::CreateNewRaster(), reset(), and ~RasterHandler().

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.

Definition at line 77 of file RasterHandler.cpp.

References m_dataSetPtr, m_dataSourcePtr, m_rasterPtr, m_transactorPtr, and reset().

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.

Definition at line 91 of file RasterHandler.cpp.

References m_dataSetPtr, m_rasterPtr, m_transactorPtr, and reset().

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.

Definition at line 103 of file RasterHandler.cpp.

References m_rasterPtr, and reset().

Member Data Documentation

std::auto_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.

Referenced by RasterHandler(), release(), and reset().

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

A pointer to a datasource instance.

Definition at line 153 of file RasterHandler.h.

Referenced by RasterHandler(), release(), and reset().

std::auto_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.

Referenced by getRasterPtr(), RasterHandler(), release(), and reset().

std::auto_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.

Referenced by RasterHandler(), release(), and reset().


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