#include <StringOutputStream.h>
◆ StringOutputStream() [1/2]
StringOutputStream::StringOutputStream |
( |
| ) |
|
|
default |
◆ StringOutputStream() [2/2]
StringOutputStream::StringOutputStream |
( |
std::string * |
target, |
|
|
std::string_view |
displayPath = {} |
|
) |
| |
|
explicit |
◆ ~StringOutputStream()
StringOutputStream::~StringOutputStream |
( |
| ) |
|
|
virtual |
◆ close()
void StringOutputStream::close |
( |
| ) |
|
|
overridevirtual |
◆ displayPath()
std::string StringOutputStream::displayPath |
( |
| ) |
const |
|
overridevirtual |
- Returns
- Path to the file or resource being written, to be used for debugging and error reporting.
Implements OutputStream.
Reimplemented in BlobOutputStream.
◆ flush()
void StringOutputStream::flush |
( |
| ) |
|
|
overridevirtual |
◆ open()
void StringOutputStream::open |
( |
std::string * |
target, |
|
|
std::string_view |
displayPath = {} |
|
) |
| |
◆ write() [1/4]
void OutputStream::write |
( |
const Blob & |
blob | ) |
|
|
inline |
Writes provided Blob
into the output stream.
- Parameters
-
- Exceptions
-
◆ write() [2/4]
void StringOutputStream::write |
( |
const void * |
data, |
|
|
size_t |
size |
|
) |
| |
|
overridevirtual |
Writes provided data into the output stream.
- Parameters
-
data | Pointer to the data to write. |
size | Data size. |
- Exceptions
-
Implements OutputStream.
◆ write() [3/4]
virtual void OutputStream::write |
( |
const void * |
data, |
|
|
size_t |
size |
|
) |
| |
|
virtual |
Writes provided data into the output stream.
- Parameters
-
data | Pointer to the data to write. |
size | Data size. |
- Exceptions
-
Implements OutputStream.
◆ write() [4/4]
void OutputStream::write |
( |
std::string_view |
s | ) |
|
|
inline |
Writes provided string into the output stream.
- Parameters
-
- Exceptions
-
◆ _displayPath
std::string StringOutputStream::_displayPath |
|
private |
◆ _target
std::string* StringOutputStream::_target = nullptr |
|
private |
The documentation for this class was generated from the following files: