TerraForge3D  2.3.1
3D Terrain And Landscape Generator

◆ parser()

template<typename BasicJsonType , typename InputAdapterType >
nlohmann::detail::parser< BasicJsonType, InputAdapterType >::parser ( InputAdapterType &&  adapter,
const parser_callback_t< BasicJsonType >  cb = nullptr,
const bool  allow_exceptions_ = true,
const bool  skip_comments = false 
)
inlineexplicit

a parser reading from an input adapter

Definition at line 11066 of file json.hpp.

11070 : callback(cb)
11071 , m_lexer(std::move(adapter), skip_comments)
11072 , allow_exceptions(allow_exceptions_)
11073 {
11074 // read first token
11075 get_token();
11076 }
lexer_t m_lexer
the lexer
Definition: json.hpp:11506
token_type get_token()
get next token from lexer
Definition: json.hpp:11465
const parser_callback_t< BasicJsonType > callback
callback function
Definition: json.hpp:11502
const bool allow_exceptions
whether to throw exceptions in case of errors
Definition: json.hpp:11508