Elm
1.0
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
#include <elm/io/TeeOutStream.h>
Public Member Functions | |
TeeOutStream (OutStream &out1, OutStream &out2) | |
virtual int | write (const char *buffer, int size) |
virtual int | flush (void) |
virtual cstring | lastErrorMessage (void) |
Public Member Functions inherited from elm::io::OutStream | |
virtual | ~OutStream (void) |
virtual int | write (char byte) |
Additional Inherited Members | |
Static Public Attributes inherited from elm::io::OutStream | |
static OutStream & | null = _null |
This class allows to divert the byte stream to two different outputs. This may be useful to perform an output while performing a parallel processing of the streamed data: size computation, checksumming, etc.
|
virtual |
Cause the current stream to dump its buffer to the medium.
Implements elm::io::OutStream.
References elm::io::OutStream::flush().
|
virtual |
Return a message for the last error.
Reimplemented from elm::io::OutStream.
References elm::io::OutStream::lastErrorMessage().
|
virtual |
This is the main method of an output stream: the given buffer is put on the stream.
buffer | Byte buffer to write. |
size | Size of the byte buffer. |
Implements elm::io::OutStream.
References elm::io::OutStream::write().