te::rp::FeederConstRasterInfo Class Reference

#include <FeedersRaster.h>

Inheritance diagram for te::rp::FeederConstRasterInfo:
te::rp::FeederConstRaster te::rp::AbstractFeeder< const te::rst::Raster >

Public Member Functions

 FeederConstRasterInfo (const std::vector< std::string > &rTypes, const std::vector< std::map< std::string, std::string > > &rInfos)
 Constructor from a vector of input rasters infos;. More...
 
te::rst::Raster const * getCurrentObj () const
 Return the current sequence object. More...
 
unsigned int getCurrentOffset () const
 Return the index of the current object. More...
 
unsigned int getObjsCount () const
 Return the total number of feeder objects. More...
 
bool moveNext ()
 Advances to the next sequence obeject. More...
 
bool moveTo (const unsigned int index)
 Jump to the given object index. More...
 
void reset ()
 Reset the feeder to the first position (subsequent accesses will start from the first sequence obejct). More...
 
 ~FeederConstRasterInfo ()
 

Protected Member Functions

 FeederConstRasterInfo ()
 

Protected Attributes

std::vector< std::string >::size_type m_currentOffset
 
std::auto_ptr< te::rst::Rasterm_currentRasterPtr
 
std::vector< std::map< std::string, std::string > > m_rInfos
 
std::vector< std::string > m_rTypes
 

Detailed Description

Definition at line 103 of file FeedersRaster.h.

Constructor & Destructor Documentation

te::rp::FeederConstRasterInfo::FeederConstRasterInfo ( const std::vector< std::string > &  rTypes,
const std::vector< std::map< std::string, std::string > > &  rInfos 
)

Constructor from a vector of input rasters infos;.

Parameters
rTypesThe name of the specific drivers to instantiate each raster.
rInfosThe necessary information to instantiate each raster.
Note
The given rasters must always be avaliable.
te::rp::FeederConstRasterInfo::~FeederConstRasterInfo ( )
te::rp::FeederConstRasterInfo::FeederConstRasterInfo ( )
protected

Member Function Documentation

te::rst::Raster const* te::rp::FeederConstRasterInfo::getCurrentObj ( ) const
virtual

Return the current sequence object.

Returns
A pointer to the current object or a null pointer if there are no object to return.

Implements te::rp::FeederConstRaster.

unsigned int te::rp::FeederConstRasterInfo::getCurrentOffset ( ) const
virtual

Return the index of the current object.

Returns
The index of the current object.

Implements te::rp::FeederConstRaster.

unsigned int te::rp::FeederConstRasterInfo::getObjsCount ( ) const
virtual

Return the total number of feeder objects.

Returns
The total number of feeder objects.

Implements te::rp::FeederConstRaster.

bool te::rp::FeederConstRasterInfo::moveNext ( )
virtual

Advances to the next sequence obeject.

Returns
true if the advance was completed or false if the objects sequence end was reached.
Note
This method can invalidate any pointer returned by getCurrentObj.

Implements te::rp::FeederConstRaster.

bool te::rp::FeederConstRasterInfo::moveTo ( const unsigned int  index)
virtual

Jump to the given object index.

Returns
true if the jump was completed or false on errors.
Note
This method can invalidate any pointer returned by getCurrentObj.

Implements te::rp::FeederConstRaster.

void te::rp::FeederConstRasterInfo::reset ( )
virtual

Reset the feeder to the first position (subsequent accesses will start from the first sequence obejct).

Note
This method can invalidate any pointer returned by getCurrentObj.

Implements te::rp::FeederConstRaster.

Member Data Documentation

std::vector< std::string >::size_type te::rp::FeederConstRasterInfo::m_currentOffset
protected

Definition at line 128 of file FeedersRaster.h.

std::auto_ptr< te::rst::Raster > te::rp::FeederConstRasterInfo::m_currentRasterPtr
protected

Definition at line 131 of file FeedersRaster.h.

std::vector< std::map< std::string, std::string > > te::rp::FeederConstRasterInfo::m_rInfos
protected

Definition at line 130 of file FeedersRaster.h.

std::vector< std::string > te::rp::FeederConstRasterInfo::m_rTypes
protected

Definition at line 129 of file FeedersRaster.h.


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