Motor OpenGL
Cargando...
Buscando...
Nada coincide
Referencia de la plantilla de la clase detail::json_sax_dom_parser< BasicJsonType, InputAdapterType >

SAX implementation to create a JSON value from SAX events. Más...

#include <json.hpp>

Métodos públicos

 json_sax_dom_parser (BasicJsonType &r, const bool allow_exceptions_=true, lexer_t *lexer_=nullptr)

Descripción detallada

template<typename BasicJsonType, typename InputAdapterType>
class detail::json_sax_dom_parser< BasicJsonType, InputAdapterType >

SAX implementation to create a JSON value from SAX events.

This class implements the json_sax interface and processes the SAX events to create a JSON value which makes it basically a DOM parser. The structure or hierarchy of the JSON value is managed by the stack ref_stack which contains a pointer to the respective array or object for each recursion depth.

After successful parsing, the value that is passed by reference to the constructor contains the parsed value.

Parámetros de plantilla
BasicJsonTypethe JSON type

Documentación de constructores y destructores

◆ json_sax_dom_parser()

template<typename BasicJsonType, typename InputAdapterType>
detail::json_sax_dom_parser< BasicJsonType, InputAdapterType >::json_sax_dom_parser ( BasicJsonType & r,
const bool allow_exceptions_ = true,
lexer_t * lexer_ = nullptr )
inlineexplicit
Parámetros
[in,out]rreference to a JSON value that is manipulated while parsing
[in]allow_exceptions_whether parse errors yield exceptions