Base::ByteArrayOStreambuf Class Reference

This class implements the streambuf interface to write data to a QByteArray. More...

#include <Stream.h>

List of all members.

Public Member Functions

 ByteArrayOStreambuf (QByteArray &ba)
 ~ByteArrayOStreambuf ()

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)

Detailed Description

This class implements the streambuf interface to write data to a QByteArray.

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

Author:
Werner Mayer

Definition at line 129 of file Stream.h.


Constructor & Destructor Documentation

ByteArrayOStreambuf::ByteArrayOStreambuf ( QByteArray &  ba  )  [explicit]

Definition at line 230 of file Stream.cpp.

ByteArrayOStreambuf::~ByteArrayOStreambuf (  ) 

Definition at line 235 of file Stream.cpp.


Member Function Documentation

std::streambuf::int_type ByteArrayOStreambuf::overflow ( std::streambuf::int_type  v  )  [protected, virtual]

Definition at line 242 of file Stream.cpp.

std::streambuf::pos_type ByteArrayOStreambuf::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 259 of file Stream.cpp.

References Sketcher::end.

Referenced by seekpos().

std::streambuf::pos_type ByteArrayOStreambuf::seekpos ( std::streambuf::pos_type  sp,
std::ios_base::openmode  which = std::ios::in | std::ios::out 
) [protected, virtual]

Definition at line 292 of file Stream.cpp.

References seekoff().

std::streamsize ByteArrayOStreambuf::xsputn ( const char *  s,
std::streamsize  num 
) [protected, virtual]

Definition at line 253 of file Stream.cpp.


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

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