OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
BlobOutputStream Class Reference

#include <BlobOutputStream.h>

Inheritance diagram for BlobOutputStream:
Embedded< std::string > StringOutputStream OutputStream detail::MemoryFileSystemOutputStream

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
 

Member Typedef Documentation

◆ base_type

Constructor & Destructor Documentation

◆ BlobOutputStream() [1/2]

BlobOutputStream::BlobOutputStream ( )

◆ BlobOutputStream() [2/2]

BlobOutputStream::BlobOutputStream ( Blob target,
std::string_view  displayPath = {} 
)
explicit

◆ ~BlobOutputStream()

BlobOutputStream::~BlobOutputStream ( )
virtual

Member Function Documentation

◆ close()

void BlobOutputStream::close ( )
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.

Exceptions
ExceptionOn error.

Reimplemented from StringOutputStream.

Reimplemented in detail::MemoryFileSystemOutputStream.

◆ closeInternal()

void BlobOutputStream::closeInternal ( )
private

◆ displayPath()

std::string BlobOutputStream::displayPath ( ) const
overridevirtual
Returns
Path to the file or resource being written, to be used for debugging and error reporting.

Reimplemented from StringOutputStream.

◆ flush()

void BlobOutputStream::flush ( )
overridevirtual

Flushes this output stream if it provides any kind of buffering.

Exceptions
ExceptionOn error.

Reimplemented from StringOutputStream.

◆ open()

void BlobOutputStream::open ( Blob target,
std::string_view  displayPath = {} 
)

Member Data Documentation

◆ _displayPath

std::string BlobOutputStream::_displayPath
private

◆ _target

Blob* BlobOutputStream::_target = nullptr
private

The documentation for this class was generated from the following files: