Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
#include <elm/io/StreamPipe.h>
Public Member Functions | |
StreamPipe (InStream &in, OutStream &out, int buffer_size=1<< 16) | |
~StreamPipe (void) | |
int | proceed (void) |
string | lastErrorMessage (void) const |
A stream pipe allows to pipe together a string of input stream and a string of output stream. When the proceed() method is called, the input stream is read to the end and write back to the output stream.
StreamPipe | ( | InStream & | in, |
OutStream & | out, | ||
int | buffer_size = 1 << 16 |
||
) |
~StreamPipe | ( | void | ) |
Get the message associated with the last error.
References InStream::lastErrorMessage(), and OutStream::lastErrorMessage().
int proceed | ( | void | ) |
Perform the copy from input stream to output stream.
References InStream::ENDED, InStream::FAILED, InStream::read(), and OutStream::write().