Class input_stream_adapter
Defined in File json.hpp
Inheritance Relationships
Base Type
public nlohmann::detail::input_adapter_protocol
(Struct input_adapter_protocol)
Class Documentation
-
class input_stream_adapter : public nlohmann::detail::input_adapter_protocol
Input adapter for a (caching) istream. Ignores a UFT Byte Order Mark at beginning of input. Does not support changing the underlying std::streambuf in mid-input. Maintains underlying std::istream and std::streambuf to support subsequent use of standard std::istream operations to process any input characters following those used in parsing the JSON input. Clears the std::istream flags; any input errors (e.g., EOF) will be detected by the first subsequent call for input from the std::istream.
Public Types
-
using char_type = char
Public Functions
-
inline ~input_stream_adapter() override
-
inline explicit input_stream_adapter(std::istream &i)
-
input_stream_adapter(const input_stream_adapter&) = delete
-
input_stream_adapter &operator=(input_stream_adapter&) = delete
-
input_stream_adapter(input_stream_adapter&&) = delete
-
input_stream_adapter &operator=(input_stream_adapter&&) = delete
-
inline virtual std::char_traits<char>::int_type get_character() override
get a character [0,255] or std::char_traits<char>::eof().
-
inline ~input_stream_adapter()
-
inline explicit input_stream_adapter(std::istream &i)
-
input_stream_adapter(const input_stream_adapter&) = delete
-
input_stream_adapter &operator=(input_stream_adapter&) = delete
-
input_stream_adapter &operator=(input_stream_adapter &&rhs) = delete
-
inline input_stream_adapter(input_stream_adapter &&rhs) noexcept
-
inline virtual std::char_traits<char>::int_type get_character()
get a character [0,255] or std::char_traits<char>::eof().
-
using char_type = char