threaded_json_parser
Defined in header: <orcus/threaded_json_parser.hpp>
-
template<typename _Handler>
class threaded_json_parser -
Public Functions
-
threaded_json_parser(std::string_view s, handler_type &hdl, size_t min_token_size)
Constructor.
- Parameters:
s – String stream containing JSON string.
hdl – Handler class instance.
min_token_size – Minimum size of the internal token buffer.
-
threaded_json_parser(std::string_view s, handler_type &hdl, size_t min_token_size, size_t max_token_size)
Constructor.
- Parameters:
s – String stream containing JSON string.
hdl – Handler class instance.
min_token_size – Minimum size of the internal token buffer.
max_token_size – Maximum size of the internal token buffer.
-
void parse()
Call this method to start parsing.
-
json::parser_stats get_stats() const
Get statistics on the parsing session. Call this only after the parsing has finished.
- Returns:
structure containing statistics of the parsing session.
-
void swap_string_pool(string_pool &pool)
-
threaded_json_parser(std::string_view s, handler_type &hdl, size_t min_token_size)