|
OpenEnroth 731eccc
|
#include <OutputStream.h>
Public Member Functions | |
| virtual | ~OutputStream () |
| virtual void | write (const void *data, size_t size)=0 |
| void | write (std::string_view s) |
| void | write (const Blob &blob) |
| virtual void | flush ()=0 |
| virtual void | close ()=0 |
| virtual std::string | displayPath () const =0 |
Abstract base class for all data output streams.
Compared to std::ostream it is:
tellg and other bullshit.
|
inlinevirtual |
|
pure virtual |
Closes this output stream. Writing into or flushing a closed stream will result in undefined behavior.
Does nothing if the stream is already closed.
| Exception | On error. |
Implemented in detail::MemoryFileSystemOutputStream, BlobOutputStream, FileOutputStream, and StringOutputStream.
|
pure virtual |
Implemented in BlobOutputStream, FileOutputStream, and StringOutputStream.
|
pure virtual |
Flushes this output stream if it provides any kind of buffering.
| Exception | On error. |
Implemented in BlobOutputStream, FileOutputStream, and StringOutputStream.
|
inline |
|
pure virtual |
Writes provided data into the output stream.
| data | Pointer to the data to write. |
| size | Data size. |
| Exception | On error. |
Implemented in FileOutputStream, StringOutputStream, FileOutputStream, and StringOutputStream.
|
inline |
Writes provided string into the output stream.
| s | String to write. |
| Exception | On error. |