Public Member Functions
|Constructor which clears m_impl. |
|virtual bool||poll ()=0|
|Poll the input source for new data. |
|void||write (const void *data, unsigned int datalen)|
|Write input data to the first stage via a buffer. |
|class ExecPipeImpl *||m_impl|
|pointer to associated pipe. filled by ExecPipe::add_input_source() |
|association to the pipe implementation for write access to m_impl. |
Abstract class used as an input stream source for an ExecPipe.
Derived classes can be used in an ExecPipe to generate an input stream source. Data generated by this class is written to the first stage of the pipe.
When data is needed by the pipe the function poll() is called. This pure virtual function must generate data and push it into a buffer using the write() function. The input stream is terminated when poll() returns false.
|virtual bool stx::PipeSource::poll||(||)||
Poll the input source for new data.
The input stream is closed when this function returns false, otherwise it will be polled again.
|void stx::PipeSource::write||(||const void *||data,|
|friend class ExecPipeImpl