GPC  v1.0.0-2516
Gorman Print Control
nlohmann::detail::input_stream_adapter Class Reference
Inheritance diagram for nlohmann::detail::input_stream_adapter:
Collaboration diagram for nlohmann::detail::input_stream_adapter:

Public Member Functions

 input_stream_adapter (std::istream &i)
 
 input_stream_adapter (const input_stream_adapter &)=delete
 
input_stream_adapteroperator= (input_stream_adapter &)=delete
 
std::char_traits< char >::int_type get_character () override
 get a character [0,255] or std::char_traits<char>::eof(). More...
 
void unget_character () override
 restore the last non-eof() character to input More...
 

Detailed Description

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.

Member Function Documentation

◆ get_character()

std::char_traits<char>::int_type nlohmann::detail::input_stream_adapter::get_character ( )
inlineoverridevirtual

get a character [0,255] or std::char_traits<char>::eof().

Implements nlohmann::detail::input_adapter_protocol.

◆ unget_character()

void nlohmann::detail::input_stream_adapter::unget_character ( )
inlineoverridevirtual

restore the last non-eof() character to input

Implements nlohmann::detail::input_adapter_protocol.