![]() |
Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
#include <>>
Inheritance diagram for UnixOutStream:Public Member Functions | |
| UnixOutStream (int fd) | |
| ~UnixOutStream () | |
| int | fd (void) const |
| int | write (const char *buffer, int size) override |
| int | flush () override |
| CString | lastErrorMessage () override |
| bool | supportsANSI () const override |
Public Member Functions inherited from OutStream | |
| virtual | ~OutStream (void) |
| virtual int | write (char byte) |
Protected Attributes | |
| int | _fd |
Additional Inherited Members | |
Static Public Attributes inherited from OutStream | |
| static OutStream & | null = _null |
Output stream implementation using the Unix low-level IO system (only on OSes supporting POSIX).
| UnixOutStream | ( | int | _fd | ) |
Build an Unix output stream.
| fd | File descriptor. |
Build a Unix output stream using a file descriptor identifier.
| _fd | File descriptor identifier. |
References UnixOutStream::fd().
| ~UnixOutStream | ( | ) |
Close an Unix output stream.
References UnixOutStream::_fd.
|
inline |
References UnixOutStream::_fd.
Referenced by UnixOutStream::UnixOutStream().
|
overridevirtual |
Cause the current stream to dump its buffer to the medium.
Implements OutStream.
|
overridevirtual |
Test if the current stream knows how to decode ANSI special codes. The default implementation returns false.
Reimplemented from OutStream.
References UnixOutStream::_fd.
|
overridevirtual |
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 OutStream.
References UnixOutStream::_fd, and elm::io::write().
|
protected |