#include <FeedersRaster.h>
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::Raster > | m_currentRasterPtr |
std::vector< std::map < std::string, std::string > > | m_rInfos |
std::vector< std::string > | m_rTypes |
Definition at line 103 of file FeedersRaster.h.
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;.
rTypes | The name of the specific drivers to instantiate each raster. |
rInfos | The necessary information to instantiate each raster. |
Definition at line 104 of file FeedersRaster.cpp.
References reset(), and TERP_TRUE_OR_THROW.
te::rp::FeederConstRasterInfo::~FeederConstRasterInfo | ( | ) |
Definition at line 119 of file FeedersRaster.cpp.
|
protected |
Definition at line 114 of file FeedersRaster.cpp.
|
virtual |
Return the current sequence object.
Implements te::rp::FeederConstRaster.
Definition at line 123 of file FeedersRaster.cpp.
References m_currentRasterPtr.
|
virtual |
Return the index of the current object.
Implements te::rp::FeederConstRaster.
Definition at line 215 of file FeedersRaster.cpp.
References m_currentOffset.
|
virtual |
Return the total number of feeder objects.
Implements te::rp::FeederConstRaster.
Definition at line 210 of file FeedersRaster.cpp.
References m_rTypes.
|
virtual |
Advances to the next sequence obeject.
Implements te::rp::FeederConstRaster.
Definition at line 128 of file FeedersRaster.cpp.
References m_currentOffset, m_currentRasterPtr, m_rInfos, m_rTypes, te::rst::RasterFactory::open(), and te::common::RAccess.
|
virtual |
Jump to the given object index.
Implements te::rp::FeederConstRaster.
Definition at line 161 of file FeedersRaster.cpp.
References m_currentOffset, m_currentRasterPtr, m_rInfos, m_rTypes, te::rst::RasterFactory::open(), and te::common::RAccess.
|
virtual |
Reset the feeder to the first position (subsequent accesses will start from the first sequence obejct).
Implements te::rp::FeederConstRaster.
Definition at line 190 of file FeedersRaster.cpp.
References m_currentOffset, m_currentRasterPtr, m_rInfos, m_rTypes, te::rst::RasterFactory::open(), and te::common::RAccess.
Referenced by FeederConstRasterInfo().
|
protected |
Definition at line 128 of file FeedersRaster.h.
Referenced by getCurrentOffset(), moveNext(), moveTo(), and reset().
|
protected |
Definition at line 131 of file FeedersRaster.h.
Referenced by getCurrentObj(), moveNext(), moveTo(), and reset().
|
protected |
Definition at line 130 of file FeedersRaster.h.
Referenced by moveNext(), moveTo(), and reset().
|
protected |
Definition at line 129 of file FeedersRaster.h.
Referenced by getObjsCount(), moveNext(), moveTo(), and reset().