OpenEnroth 73e68f7
|
#include <BlobOutputStream.h>
Public Member Functions | |
BlobOutputStream () | |
BlobOutputStream (Blob *target, std::string_view displayPath={}) | |
virtual | ~BlobOutputStream () |
void | open (Blob *target, std::string_view displayPath={}) |
virtual void | flush () override |
virtual void | close () override |
virtual std::string | displayPath () const override |
Public Member Functions inherited from StringOutputStream | |
StringOutputStream ()=default | |
StringOutputStream (std::string *target, std::string_view displayPath={}) | |
virtual | ~StringOutputStream () |
void | open (std::string *target, std::string_view displayPath={}) |
virtual void | write (const void *data, size_t size) override |
virtual void | flush () override |
virtual void | close () override |
virtual std::string | displayPath () const override |
virtual void | write (const void *data, size_t size)=0 |
void | write (std::string_view s) |
void | write (const Blob &blob) |
Public Member Functions inherited from OutputStream | |
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 |
Private Types | |
using | base_type = StringOutputStream |
Private Member Functions | |
void | closeInternal () |
Private Member Functions inherited from Embedded< std::string > | |
Embedded (Args &&...args) | |
std::string & | get () |
const std::string & | get () const |
Private Attributes | |
Blob * | _target = nullptr |
std::string | _displayPath |
|
private |
BlobOutputStream::BlobOutputStream | ( | ) |
|
explicit |
|
virtual |
|
overridevirtual |
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. |
Reimplemented from StringOutputStream.
Reimplemented in detail::MemoryFileSystemOutputStream.
|
private |
|
overridevirtual |
Reimplemented from StringOutputStream.
|
overridevirtual |
Flushes this output stream if it provides any kind of buffering.
Exception | On error. |
Reimplemented from StringOutputStream.
void BlobOutputStream::open | ( | Blob * | target, |
std::string_view | displayPath = {} |
||
) |
|
private |
|
private |