|
OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
Allows one to adapt any input stream to be block aligned for any read it will internally read overlapping blocks filling the request. More...
#include <BlockIStream.h>
Public Member Functions | |
| BlockIStream (std::shared_ptr< ossim::istream > adaptStream, ossim_uint64 blockSize=4096) | |
| Constructor must be initialized with an inputstream. More... | |
| virtual | ~BlockIStream () |
| Destructor will set any shared pointer to 0. More... | |
| BlockIStream (std::shared_ptr< ossim::istream > adaptStream, ossim_uint64 blockSize=4096) | |
| Constructor must be initialized with an inputstream. More... | |
| virtual | ~BlockIStream () |
| Destructor will set any shared pointer to 0. More... | |
Public Attributes | |
| std::shared_ptr< ossim::istream > | m_adaptStream |
| Maintain a shared pointer to the stream we are adapting to be block aligned. More... | |
| BlockStreamBuffer | m_blockStreamBuffer |
| The buffer where all the block align implementation resides. More... | |
Allows one to adapt any input stream to be block aligned for any read it will internally read overlapping blocks filling the request.
Example:
This will read a block of data from 0-4095 and then fill the buffer with 100 bytes of data.
if another call to: reader->read(buf, 10) it will not reload the block but instead read from memory
Definition at line 29 of file BlockIStream.h.
|
inline |
Constructor must be initialized with an inputstream.
| adaptStream | Currenlty a required parameter and is initialized on construction. Takes an input istream to force block aligned requests |
| blockSize | Specify the block size to use |
Definition at line 40 of file BlockIStream.h.
|
inlinevirtual |
Destructor will set any shared pointer to 0.
Definition at line 51 of file BlockIStream.h.
References m_adaptStream.
|
inline |
Constructor must be initialized with an inputstream.
| adaptStream | Currenlty a required parameter and is initialized on construction. Takes an input istream to force block aligned requests |
| blockSize | Specify the block size to use |
Definition at line 40 of file ossimBlockIStream.h.
|
inlinevirtual |
Destructor will set any shared pointer to 0.
Definition at line 51 of file ossimBlockIStream.h.
References m_adaptStream.
| std::shared_ptr< ossim::istream > ossim::BlockIStream::m_adaptStream |
Maintain a shared pointer to the stream we are adapting to be block aligned.
Definition at line 59 of file BlockIStream.h.
Referenced by ~BlockIStream().
| BlockStreamBuffer ossim::BlockIStream::m_blockStreamBuffer |
The buffer where all the block align implementation resides.
Definition at line 66 of file BlockIStream.h.
1.8.14