Circus 0.0.1-alpha
C++ Serialization Framework
|
Utility class to read contents from input streams into a string. More...
#include <reader.hpp>
Public Member Functions | |
reader__ () | |
Default constructor initializes an empty content buffer. | |
std::string | operator() (std::istream &is) |
Reads entire contents of the provided input stream into internal buffer. | |
std::size_t | size () const noexcept |
Get the size in bytes of the stored content. | |
const std::string & | get_file_contents () const noexcept |
Provides read-only access to the stored file contents. |
Utility class to read contents from input streams into a string.
Provides an interface to load the entire contents of an std::istream into an internal string buffer for later access.
|
inlinenodiscardnoexcept |
Provides read-only access to the stored file contents.
|
inline |
Reads entire contents of the provided input stream into internal buffer.
is | Input stream to read from. |
|
inlinenodiscardnoexcept |
Get the size in bytes of the stored content.