OpendTect
6.6
|
Adapter to use a qprocess as a stream. More...
Public Member Functions | |
qstreambuf (QIODevice &, bool isstderr, bool takeoverdevice) | |
~qstreambuf () | |
void | detachDevice (bool readall) |
virtual int | sync () |
virtual std::streambuf::int_type | underflow () |
virtual std::streamsize | xsputn (const char_type *, std::streamsize) |
Private Member Functions | |
void | readAll () |
Private Attributes | |
std::vector< char > | buffer_ |
QIODevice * | iodevice_ |
bool | isstderr_ |
bool | ownsdevice_ |
QProcess * | process_ |
QByteArray | readbuffer_ |
Adapter to use a qprocess as a stream.
Usage like:
qstreambuf fsb( QIODevice& ); std::istream strm( &fsb );
Tested for istream with char* only.
<>
qstreambuf::qstreambuf | ( | QIODevice & | , |
bool | isstderr, | ||
bool | takeoverdevice | ||
) |
qstreambuf::~qstreambuf | ( | ) |
void qstreambuf::detachDevice | ( | bool | readall | ) |
Don't use device after this call.
readall | true if device should be emptied for all pending messages before. |
|
private |
|
virtual |
|
virtual |
|
virtual |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2022