32 #ifndef _QORE_STREAMPIPE_H 33 #define _QORE_STREAMPIPE_H 36 #include "qore/InputStream.h" 37 #include "qore/OutputStream.h" 55 std::vector<unsigned char> buffer;
80 DLLLOCAL
void finishClose();
81 DLLLOCAL
void reportError(
const QoreHashNode* ex) { pipe->reportError(ex); }
82 DLLLOCAL
virtual const char *
getName()
override {
83 return "PipeInputStream";
104 DLLLOCAL
void reportError(
const QoreHashNode* ex) { pipe->reportError(ex); }
108 DLLLOCAL
virtual const char *
getName()
override {
109 return "PipeInputStream";
119 #endif // _QORE_STREAMPIPE_H This is the hash or associative list container type in Qore, dynamically allocated only...
Definition: QoreHashNode.h:50
the base class for all data to be used as private data of Qore objects
Definition: AbstractPrivateData.h:44
Private data for the Qore::PipeOutputStream class.
Definition: StreamPipe.h:96
a thread condition class implementing a wrapper for pthread_cond_t
Definition: QoreCondition.h:45
Interface for private data of output streams.
Definition: OutputStream.h:44
Private data for the Qore::StreamPipe class.
Definition: StreamPipe.h:44
container for holding Qore-language exception information and also for registering a "thread_exit" ca...
Definition: ExceptionSink.h:46
DLLLOCAL void write(const void *ptr, int64 count, ExceptionSink *xsink) override
Writes bytes to the output stream.
DLLLOCAL bool isClosed() override
Returns true is the stream has been closed.
Definition: StreamPipe.h:105
long long int64
64bit integer type, cannot use int64_t here since it breaks the API on some 64-bit systems due to equ...
Definition: common.h:260
provides a mutually-exclusive thread lock
Definition: QoreThreadLock.h:47
DLLLOCAL void close(ExceptionSink *xsink) override
Flushes any buffered (unwritten) bytes, closes the output stream and releases resources.
virtual DLLLOCAL const char * getName() override
Returns the name of the class.
Definition: StreamPipe.h:108