#include <ContainerImplementations.h>
Inherits std::streambuf.
A std::vector<char> is used for internal buffering. A chunk size is specified that is how much data should be pulled through the DIDataResource at one time.
You should not use this class directly, instead use DataResourceIStream.
Protected Member Functions | |
| void | ChangeDataResource (DIDataResource *pDataResource) |
| Function that changes the data source. | |
| void | RefreshBuffer () |
| Function that fills m_localBuffer with data from m_pDataResource. | |
Overridden functions from std::streambuf | |
| int | uflow () |
| int | underflow () |
| std::streambuf::pos_type | seekoff (std::streambuf::off_type off, std::ios_base::seekdir way, std::ios_base::openmode which) |
| std::streambuf::pos_type | seekpos (std::streambuf::pos_type sp, std::ios_base::openmode which) |
Protected Attributes | |
| DIDataResource * | m_pDataResource |
| The data source. | |
| std::vector< char > | m_localBuffer |
| Storage buffer for data extracted from m_pDataResource. | |
| const unsigned int | m_bufferChunkSize |
| Size of m_localBuffer. | |
Private Member Functions | |
| DataResourceStreambuf (DIDataResource *pDataResource, unsigned int bufferChunkSize) | |
| Constructor used by DataResourceIStream. | |
Friends | |
| class | DataResourceIStream |
| DigitalSpaces::DataResourceStreambuf::DataResourceStreambuf | ( | DIDataResource * | pDataResource, | |
| unsigned int | bufferChunkSize | |||
| ) | [private] |
Constructor used by DataResourceIStream.
| int DigitalSpaces::DataResourceStreambuf::uflow | ( | ) | [protected] |
| int DigitalSpaces::DataResourceStreambuf::underflow | ( | ) | [protected] |
| std::streambuf::pos_type DigitalSpaces::DataResourceStreambuf::seekoff | ( | std::streambuf::off_type | off, | |
| std::ios_base::seekdir | way, | |||
| std::ios_base::openmode | which | |||
| ) | [protected] |
| std::streambuf::pos_type DigitalSpaces::DataResourceStreambuf::seekpos | ( | std::streambuf::pos_type | sp, | |
| std::ios_base::openmode | which | |||
| ) | [protected] |
| void DigitalSpaces::DataResourceStreambuf::ChangeDataResource | ( | DIDataResource * | pDataResource | ) | [protected] |
Function that changes the data source.
| void DigitalSpaces::DataResourceStreambuf::RefreshBuffer | ( | ) | [protected] |
Function that fills m_localBuffer with data from m_pDataResource.
friend class DataResourceIStream [friend] |
The data source.
std::vector<char> DigitalSpaces::DataResourceStreambuf::m_localBuffer [protected] |
Storage buffer for data extracted from m_pDataResource.
const unsigned int DigitalSpaces::DataResourceStreambuf::m_bufferChunkSize [protected] |
Size of m_localBuffer.
1.5.6