Simple class to write data directly into Qt's QIODevice. More...
#include <Stream.h>
Public Member Functions | |
IODeviceOStreambuf (QIODevice *dev) | |
~IODeviceOStreambuf () | |
Protected Member Functions | |
virtual int_type | overflow (std::streambuf::int_type v) |
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 std::streamsize | xsputn (const char *s, std::streamsize num) |
Protected Attributes | |
QIODevice * | device |
Simple class to write data directly into Qt's QIODevice.
This class can only be used for writing but not reading purposes.
Definition at line 184 of file Stream.h.
IODeviceOStreambuf::IODeviceOStreambuf | ( | QIODevice * | dev | ) |
Definition at line 373 of file Stream.cpp.
IODeviceOStreambuf::~IODeviceOStreambuf | ( | ) |
Definition at line 377 of file Stream.cpp.
std::streambuf::int_type IODeviceOStreambuf::overflow | ( | std::streambuf::int_type | v | ) | [protected, virtual] |
Definition at line 382 of file Stream.cpp.
References device.
std::streambuf::pos_type IODeviceOStreambuf::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 399 of file Stream.cpp.
References device, and Sketcher::end.
Referenced by seekpos().
std::streambuf::pos_type IODeviceOStreambuf::seekpos | ( | std::streambuf::pos_type | sp, | |
std::ios_base::openmode | which = std::ios::in | std::ios::out | |||
) | [protected, virtual] |
Definition at line 432 of file Stream.cpp.
References seekoff().
std::streamsize IODeviceOStreambuf::xsputn | ( | const char * | s, | |
std::streamsize | num | |||
) | [protected, virtual] |
Definition at line 393 of file Stream.cpp.
References device.
QIODevice* Base::IODeviceOStreambuf::device [protected] |
Definition at line 201 of file Stream.h.
Referenced by overflow(), seekoff(), and xsputn().