|
OXY API 1.0
OXY API Library Documentation
|
Function object to create a stream from various input types. More...
#include <stream.hpp>
Public Member Functions | |
| contents_t | operator() (char const *buffer, const size_t size) const |
| contents_t | operator() (commit_t const &item) const |
| contents_t | operator() (index_t const &item) const |
| contents_t | operator() (std::ifstream &in) const |
| contents_t | operator() (std::istringstream const &stream) const |
| contents_t | operator() (std::string const &stream) const |
| contents_t | operator() (std::string_view const &stream) const |
Function object to create a stream from various input types.
This functor provides overloads for creating a stream from different input types, including string views, strings, input streams, and commit/index objects. It returns a contents_t object representing the stream contents.
|
inline |
| buffer | A pointer to a character buffer representing the input stream. |
| size | The size of the character buffer. |
|
inline |
| item | A commit object representing the input stream. |
References oxy::dumps().
|
inline |
| item | An index object representing the input stream. |
References oxy::dumps().
|
inline |
| in | An input file stream representing the input stream. |
|
inline |
| stream | An input string stream representing the input stream. |
|
inline |
| stream | A string representing the input stream. |
|
inline |
| stream | A string view representing the input stream. |