Elm
1.0
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
#include <>>
Public Member Functions | |
WinOutStream (void *fd) | |
void * | fd (void) const |
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) |
Protected Attributes | |
void * | _fd |
Additional Inherited Members | |
Static Public Attributes inherited from elm::io::OutStream | |
static OutStream & | null = _null |
Output stream implementation using the Win low-level IO system (only on OSes supporting POSIX).
elm::io::WinOutStream::WinOutStream | ( | void * | fd | ) |
Build an Win output stream.
fd | File descriptor. |
Build a Win output stream using a file descriptor identifier.
_fd | File descriptor identifier. |
void* elm::io::WinOutStream::fd | ( | void | ) | const |
References _fd.
|
virtual |
Cause the current stream to dump its buffer to the medium.
Implements elm::io::OutStream.
|
virtual |
Return the last occured error message.
Reimplemented from elm::io::OutStream.
|
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 _fd, elm::io::err, and elm::io::out.