Base::IODeviceOStreambuf Class Reference

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
 

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

Constructor & Destructor Documentation

◆ IODeviceOStreambuf()

IODeviceOStreambuf::IODeviceOStreambuf ( QIODevice *  dev)

◆ ~IODeviceOStreambuf()

IODeviceOStreambuf::~IODeviceOStreambuf ( )

Member Function Documentation

◆ overflow()

std::streambuf::int_type IODeviceOStreambuf::overflow ( std::streambuf::int_type  v)
protectedvirtual

References device.

◆ seekoff()

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

References device.

Referenced by seekpos().

◆ seekpos()

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

References seekoff().

◆ xsputn()

std::streamsize IODeviceOStreambuf::xsputn ( const char *  s,
std::streamsize  num 
)
protectedvirtual

References device.

Member Data Documentation

◆ device

QIODevice* Base::IODeviceOStreambuf::device
protected

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


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