#include <FeedersRaster.h>
Public Member Functions | |
| FeederConstRasterInfoAndVector (const std::vector< const te::rst::Raster * > rastersPtrsVec, 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... | |
| ~FeederConstRasterInfoAndVector () | |
Protected Member Functions | |
| FeederConstRasterInfoAndVector () | |
Protected Attributes | |
| std::unique_ptr< te::rst::Raster > | m_currentRasterHandler |
| te::rst::Raster const * | m_currentRasterNakedPtr |
| std::vector< const te::rst::Raster * >::size_type | m_CurrentRasterOffset |
| std::vector< const te::rst::Raster * > | m_rasters |
| std::vector< std::map< std::string, std::string > > | m_rInfos |
| std::vector< std::string > | m_rTypes |
Definition at line 140 of file FeedersRaster.h.
| te::rp::FeederConstRasterInfoAndVector::FeederConstRasterInfoAndVector | ( | const std::vector< const te::rst::Raster * > | rastersPtrsVec, |
| 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. |
| rastersPtrsVec | Input vector of rasters pointers. |
Definition at line 221 of file FeedersRaster.cpp.
References reset(), and TERP_TRUE_OR_THROW.
|
default |
Referenced by FeederConstRasterInfoAndVector().
|
protected |
Definition at line 237 of file FeedersRaster.cpp.
References ~FeederConstRasterInfoAndVector().
|
virtual |
Return the current sequence object.
Implements te::rp::FeederConstRaster.
Definition at line 246 of file FeedersRaster.cpp.
References m_currentRasterNakedPtr.
|
virtual |
Return the index of the current object.
Implements te::rp::FeederConstRaster.
Definition at line 308 of file FeedersRaster.cpp.
References m_CurrentRasterOffset.
|
virtual |
Return the total number of feeder objects.
Implements te::rp::FeederConstRaster.
Definition at line 303 of file FeedersRaster.cpp.
|
virtual |
Advances to the next sequence obeject.
Implements te::rp::FeederConstRaster.
Definition at line 251 of file FeedersRaster.cpp.
References m_CurrentRasterOffset, and moveTo().
Jump to the given object index.
Implements te::rp::FeederConstRaster.
Definition at line 256 of file FeedersRaster.cpp.
References m_currentRasterHandler, m_currentRasterNakedPtr, m_CurrentRasterOffset, m_rasters, m_rInfos, m_rTypes, te::rst::RasterFactory::open(), and te::common::RAccess.
Referenced by moveNext(), and reset().
|
virtual |
Reset the feeder to the first position (subsequent accesses will start from the first sequence obejct).
Implements te::rp::FeederConstRaster.
Definition at line 294 of file FeedersRaster.cpp.
References m_currentRasterHandler, m_currentRasterNakedPtr, m_CurrentRasterOffset, and moveTo().
Referenced by FeederConstRasterInfoAndVector().
|
protected |
Definition at line 174 of file FeedersRaster.h.
|
protected |
Definition at line 169 of file FeedersRaster.h.
Referenced by getCurrentObj(), moveTo(), and reset().
|
protected |
Definition at line 168 of file FeedersRaster.h.
Referenced by getCurrentOffset(), moveNext(), moveTo(), and reset().
|
protected |
Definition at line 171 of file FeedersRaster.h.
Referenced by getObjsCount(), and moveTo().
|
protected |
Definition at line 173 of file FeedersRaster.h.
Referenced by moveTo().
|
protected |
Definition at line 172 of file FeedersRaster.h.
Referenced by getObjsCount(), and moveTo().