32#ifndef _QORE_STREAMPIPE_H
33#define _QORE_STREAMPIPE_H
36#include "qore/InputStream.h"
37#include "qore/OutputStream.h"
54 std::vector<unsigned char> buffer;
78 DLLLOCAL
void finishClose();
79 DLLLOCAL
void reportError(
const QoreHashNode* ex) { pipe->reportError(ex); }
80 DLLLOCAL
virtual const char *
getName()
override {
81 return "PipeInputStream";
101 DLLLOCAL
void reportError(
const QoreHashNode* ex) { pipe->reportError(ex); }
105 DLLLOCAL
virtual const char *
getName()
override {
106 return "PipeInputStream";
the base class for all data to be used as private data of Qore objects
Definition: AbstractPrivateData.h:44
container for holding Qore-language exception information and also for registering a "thread_exit" ca...
Definition: ExceptionSink.h:50
Interface for private data of output streams.
Definition: OutputStream.h:44
Private data for the Qore::PipeOutputStream class.
Definition: StreamPipe.h:94
DLLLOCAL bool isClosed() override
Returns true is the stream has been closed.
Definition: StreamPipe.h:102
DLLLOCAL void write(const void *ptr, int64 count, ExceptionSink *xsink) override
Writes bytes to the output stream.
virtual DLLLOCAL const char * getName() override
Returns the name of the class.
Definition: StreamPipe.h:105
DLLLOCAL void close(ExceptionSink *xsink) override
Flushes any buffered (unwritten) bytes, closes the output stream and releases resources.
a thread condition class implementing a wrapper for pthread_cond_t
Definition: QoreCondition.h:45
This is the hash or associative list container type in Qore, dynamically allocated only,...
Definition: QoreHashNode.h:50
provides a mutually-exclusive thread lock
Definition: QoreThreadLock.h:49
a templated class to manage a reference count of an object that can throw a Qore-language exception w...
Definition: ReferenceHolder.h:52
manages a reference count of a pointer to a class that takes a simple "deref()" call with no argument...
Definition: ReferenceHolder.h:127
Private data for the Qore::StreamPipe class.
Definition: StreamPipe.h:44
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