Base::IODeviceOStreambuf Class Reference

Simple class to write data directly into Qt's QIODevice. More...

#include <Stream.h>

List of all members.

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

Detailed Description

Simple class to write data directly into Qt's QIODevice.

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

Author:
Werner Mayer

Definition at line 184 of file Stream.h.


Constructor & Destructor Documentation

IODeviceOStreambuf::IODeviceOStreambuf ( QIODevice *  dev  ) 

Definition at line 373 of file Stream.cpp.

IODeviceOStreambuf::~IODeviceOStreambuf (  ) 

Definition at line 377 of file Stream.cpp.


Member Function Documentation

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.


Member Data Documentation

QIODevice* Base::IODeviceOStreambuf::device [protected]

Definition at line 201 of file Stream.h.

Referenced by overflow(), seekoff(), and xsputn().


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