String output stream.
More...
◆ StringOutputStream()
catapult::io::StringOutputStream::StringOutputStream |
( |
size_t |
capacity | ) |
|
|
inlineexplicit |
Creates string output stream with reserved capacity.
◆ flush()
void catapult::io::StringOutputStream::flush |
( |
| ) |
|
|
inlineoverridevirtual |
◆ str()
const std::string& catapult::io::StringOutputStream::str |
( |
| ) |
const |
|
inline |
Returns underlying string.
◆ write()
void catapult::io::StringOutputStream::write |
( |
const RawBuffer & |
buffer | ) |
|
|
inlineoverridevirtual |
Writes data pointed to by buffer to this stream.
- Exceptions
-
catapult_file_io_error | if proper amount of data could not be written. |
Implements catapult::io::OutputStream.
◆ m_output
std::string catapult::io::StringOutputStream::m_output |
|
private |
The documentation for this class was generated from the following file: