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.
Definition at line 209 of file Stream.h.
IODeviceIStreambuf::IODeviceIStreambuf | ( | QIODevice * | dev | ) |
Definition at line 440 of file Stream.cpp.
IODeviceIStreambuf::~IODeviceIStreambuf | ( | ) |
Definition at line 447 of file Stream.cpp.
std::streambuf::pos_type IODeviceIStreambuf::seekoff | ( | std::streambuf::off_type | off, | |
std::ios_base::seekdir | way, | |||
std::ios_base::openmode | which = std::ios::in | std::ios::out | |||
) | [protected, virtual] |
Definition at line 497 of file Stream.cpp.
References device, and Sketcher::end.
Referenced by seekpos().
std::streambuf::pos_type IODeviceIStreambuf::seekpos | ( | std::streambuf::pos_type | sp, | |
std::ios_base::openmode | which = std::ios::in | std::ios::out | |||
) | [protected, virtual] |
Definition at line 530 of file Stream.cpp.
References seekoff().
std::streambuf::int_type IODeviceIStreambuf::underflow | ( | ) | [protected, virtual] |
char Base::IODeviceIStreambuf::buffer[bufSize+pbSize] [protected] |
Definition at line 233 of file Stream.h.
Referenced by IODeviceIStreambuf(), and underflow().
const int Base::IODeviceIStreambuf::bufSize = 1024 [static, protected] |
Definition at line 232 of file Stream.h.
Referenced by underflow().
QIODevice* Base::IODeviceIStreambuf::device [protected] |
Definition at line 226 of file Stream.h.
Referenced by seekoff(), and underflow().
const int Base::IODeviceIStreambuf::pbSize = 4 [static, protected] |
Definition at line 231 of file Stream.h.
Referenced by IODeviceIStreambuf(), and underflow().