OpendTect
7.0
|
Adapter to use a qprocess as a stream. More...
Public Member Functions | |
qstreambuf (QIODevice &, bool isstderr, bool takeoverdevice) | |
~qstreambuf () | |
void | detachDevice (bool readall) |
int | sync () override |
std::streambuf::int_type | underflow () override |
std::streamsize | xsputn (const char_type *, std::streamsize) override |
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 |
|
override |
|
override |
|
override |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024