Elm
1.0
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
#include <elm/io/BufferedOutStream.h>
Public Member Functions | |
BufferedOutStream (OutStream &output, size_t size=default_size) | |
virtual | ~BufferedOutStream (void) |
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) |
Static Public Attributes | |
static const int | default_size = 4096 |
Static Public Attributes inherited from elm::io::OutStream | |
static OutStream & | null = _null |
This stream provides buffered action for a given output stream.
elm::io::BufferedOutStream::BufferedOutStream | ( | OutStream & | output, |
size_t | size = default_size |
||
) |
Build a buffer out stream.
output | Output stream to buffer in. |
size | Size of the buffeR. |
|
virtual |
References flush().
|
virtual |
Cause the current stream to dump its buffer to the medium.
Implements elm::io::OutStream.
References elm::io::OutStream::write().
Referenced by write(), and ~BufferedOutStream().
|
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 flush(), and elm::io::OutStream::write().
|
static |