|
OpenEnroth cf228e9
|
#include <MemoryFileSystemOutputStream.h>
Public Member Functions | |
| MemoryFileSystemOutputStream (std::shared_ptr< MemoryFileData > data, std::string_view displayPath) | |
| ~MemoryFileSystemOutputStream () | |
Public Member Functions inherited from BlobOutputStream | |
| BlobOutputStream ()=default | |
| BlobOutputStream (Blob *target, std::string_view displayPath={}) | |
| virtual | ~BlobOutputStream () |
| void | open (Blob *target, std::string_view displayPath={}) |
Public Member Functions inherited from OutputStream | |
| virtual | ~OutputStream () |
| void | write (const void *data, size_t size) |
| void | write (std::string_view s) |
| void | write (const Blob &blob) |
| void | flush () |
| void | close () |
| bool | isOpen () const |
| size_t | position () const |
| size_t | size () const |
| const std::string & | displayPath () const |
Private Types | |
| using | base_type = BlobOutputStream |
Private Member Functions | |
| virtual void | _close (Buffer *buffer) override |
Private Attributes | |
| std::shared_ptr< MemoryFileData > | _data |
Additional Inherited Members | |
Public Types inherited from OutputStream | |
| using | Buffer = StreamBuffer< char > |
Protected Member Functions inherited from BlobOutputStream | |
| virtual void | _overflow (const void *data, size_t size, Buffer *buffer) override |
| virtual void | _flush (Buffer *buffer) override |
| virtual void | _close (Buffer *buffer) override |
Protected Member Functions inherited from OutputStream | |
| OutputStream ()=default | |
| void | open (Buffer buffer, std::string_view displayPath) |
| virtual void | _overflow (const void *data, size_t size, Buffer *buffer)=0 |
| virtual void | _flush (Buffer *buffer)=0 |
| virtual void | _close (Buffer *buffer)=0 |
Output stream for writing to a memory file system entry. Delegates all I/O to BlobOutputStream and manages writer counting on top.
|
private |
|
explicit |
| detail::MemoryFileSystemOutputStream::~MemoryFileSystemOutputStream | ( | ) |
|
overrideprivatevirtual |
Flushes any remaining buffered data and releases held resources.
Derived implementations should call OutputStream::_close() at the end.
| [in,out] | buffer | Current buffer state. |
| Exception | On error. |
Reimplemented from BlobOutputStream.
|
private |