|
| FormattedTextInputStream ()=default |
|
| FormattedTextInputStream (const Path &textFilePath) |
| Take a file as stream.
|
|
| FormattedTextInputStream (std::string textString) |
| Take a string as stream.
|
|
| FormattedTextInputStream (FormattedTextInputStream &&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 | readAll (std::string *out_allText) |
| Read all remaining text. All contents are preserved. All original input contents are preserved (including any line endings such as CRLF, LF), no matter what platform the stream is operating on.
|
|
void | readAllTightly (std::string *out_allText) |
| Read all remaining text without any whitespaces.
|
|
FormattedTextInputStream & | operator= (FormattedTextInputStream &&rhs)=default |
|
| StdInputStream ()=default |
|
| StdInputStream (std::unique_ptr< std::istream > stream) |
|
| StdInputStream (StdInputStream &&other) noexcept |
|
void | read (std::size_t numBytes, std::byte *out_bytes) override |
| Read specific number of raw bytes in one go. The method does not return before finishing the reading process.
|
|
void | readString (std::string *out_string, char delimiter) override |
| Read a string in one go. Note the EOF is also considered a delimiter (the final one).
|
|
void | seekGet (std::size_t pos) override |
| Set the input position of the stream. The unit of the position is defined by the implementation.
|
|
std::optional< std::size_t > | tellGet () override |
| Get the current input position of the stream. The unit of the position is defined by the implementation.
|
|
| operator bool () const override |
|
std::size_t | readSome (std::size_t numBytes, std::byte *out_bytes) override |
| Read some data in the form of raw bytes. The method may return before finish reading all bytes. In such case, the method returns how many bytes were actually read.
|
|
std::istream * | getStream () const |
|
StdInputStream & | operator= (StdInputStream &&rhs) noexcept |
|
void | readLine (std::string *out_string) |
| Read a line. Equivalent to calling readString(std::string*, char) with '
' as the delimiter.
|
|
virtual | ~IDataStream ()=default |
|
Read text with basic auto formatting applied.