|
| FormattedTextOutputStream ()=default |
|
| FormattedTextOutputStream (const Path &filePath) |
| Output to a file as stream.
|
|
| FormattedTextOutputStream (std::string initialStrContent) |
| Output to a string as stream.
|
|
| FormattedTextOutputStream (FormattedTextOutputStream &&other)=default |
|
std::string | acquireName () const override |
| Access to the stream's name. This method is not meant to be used in a high performance context, unless otherwise stated by the overridder. Stream name is not always available.
|
|
void | writeChar (char ch) |
| Write a single char to the stream.
|
|
void | writeNewLine () |
| Write newline to the stream.
|
|
template<typename... Args> |
void | writeString (std::format_string< Args... > strFormat, Args &&... args) |
| Write formatted string to the stream.
|
|
std::string | getString () const |
| Get the string that was written.
|
|
FormattedTextOutputStream & | operator= (FormattedTextOutputStream &&rhs)=default |
|
void | writeString (std::string_view str) override |
| Write a string in one go.
|
|
| StdOutputStream ()=default |
|
| StdOutputStream (std::unique_ptr< std::ostream > stream) |
|
| StdOutputStream (StdOutputStream &&other) noexcept |
|
void | write (std::size_t numBytes, const std::byte *bytes) override |
| Write data in the form of raw bytes in one go. The method does not return before finishing the writing process.
|
|
void | writeString (std::string_view str) override |
| Write a string in one go.
|
|
void | seekPut (std::size_t pos) override |
| Set the output position of the stream. The unit of the position is defined by the implementation.
|
|
std::optional< std::size_t > | tellPut () override |
| Get the current output position of the stream. The unit of the position is defined by the implementation.
|
|
| operator bool () const override |
|
std::ostream * | getStream () const |
|
StdOutputStream & | operator= (StdOutputStream &&rhs) noexcept |
|
virtual std::size_t | writeSome (std::size_t numBytes, const std::byte *bytes) |
| Write some data in the form of raw bytes. The method may return before finish writing all bytes. In such case, the method returns how many bytes were actually written.
|
|
void | writeLine (std::string_view str) |
| Write a line. Equivalent to calling writeString(std::string_view) with '
' as an extra character.
|
|
virtual | ~IDataStream ()=default |
|