Base::IODeviceIStreambuf Class Reference

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

#include <Stream.h>

List of all members.

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

Definition at line 209 of file Stream.h.


Constructor & Destructor Documentation

IODeviceIStreambuf::IODeviceIStreambuf ( QIODevice *  dev  ) 

Definition at line 440 of file Stream.cpp.

References buffer, and pbSize.

IODeviceIStreambuf::~IODeviceIStreambuf (  ) 

Definition at line 447 of file Stream.cpp.


Member Function Documentation

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]

Definition at line 452 of file Stream.cpp.

References buffer, bufSize, device, and pbSize.


Member Data Documentation

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().


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

Generated on Wed Nov 23 19:01:47 2011 for FreeCAD by  doxygen 1.6.1