Base::IODeviceIStreambuf Class Reference

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
 

Detailed Description

Simple class to read data directly from Qt's QIODevice.

This class can only be used for readihg but not writing purposes.

Author
Werner Mayer

Constructor & Destructor Documentation

◆ IODeviceIStreambuf()

IODeviceIStreambuf::IODeviceIStreambuf ( QIODevice *  dev)

References pbSize.

◆ ~IODeviceIStreambuf()

IODeviceIStreambuf::~IODeviceIStreambuf ( )

Member Function Documentation

◆ seekoff()

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 
)
protectedvirtual

References device.

Referenced by seekpos().

◆ seekpos()

std::streambuf::pos_type IODeviceIStreambuf::seekpos ( std::streambuf::pos_type  sp,
std::ios_base::openmode  which = std::ios::in | std::ios::out 
)
protectedvirtual

References seekoff().

◆ underflow()

std::streambuf::int_type IODeviceIStreambuf::underflow ( )
protectedvirtual

References device, and pbSize.

Member Data Documentation

◆ buffer

char Base::IODeviceIStreambuf::buffer[bufSize+pbSize]
protected

◆ bufSize

const int Base::IODeviceIStreambuf::bufSize = 1024
staticprotected

◆ device

QIODevice* Base::IODeviceIStreambuf::device
protected

Referenced by seekoff(), and underflow().

◆ pbSize

const int Base::IODeviceIStreambuf::pbSize = 4
staticprotected

Referenced by IODeviceIStreambuf(), and underflow().


The documentation for this class was generated from the following files: