Simple class to read data directly from Qt's QIODevice. More...
#include <Stream.h>
Public Member Functions | |
IODeviceIStreambuf (QIODevice *dev) | |
~IODeviceIStreambuf () | |
Protected Member Functions | |
virtual pos_type | seekoff (std::streambuf::off_type off, std::ios_base::seekdir way, std::ios_base::openmode which=std::ios::in|std::ios::out) |
virtual pos_type | seekpos (std::streambuf::pos_type sp, std::ios_base::openmode which=std::ios::in|std::ios::out) |
virtual int_type | underflow () |
Protected Attributes | |
char | buffer [bufSize+pbSize] |
QIODevice * | device |
Static Protected Attributes | |
static const int | bufSize = 1024 |
static const int | pbSize = 4 |
Simple class to read data directly from Qt's QIODevice.
This class can only be used for readihg but not writing purposes.
IODeviceIStreambuf::IODeviceIStreambuf | ( | QIODevice * | dev | ) |
References pbSize.
IODeviceIStreambuf::~IODeviceIStreambuf | ( | ) |
|
protectedvirtual |
|
protectedvirtual |
References seekoff().
|
protectedvirtual |
|
staticprotected |
|
protected |
Referenced by seekoff(), and underflow().
|
staticprotected |
Referenced by IODeviceIStreambuf(), and underflow().