threaded_sax_token_parser¶
Defined in header: <orcus/threaded_sax_token_parser.hpp>
-
template<typename _Handler>
class threaded_sax_token_parser¶ -
Public Functions
-
threaded_sax_token_parser(const char *p, size_t n, const tokens &tks, xmlns_context &ns_cxt, handler_type &hdl, size_t min_token_size)¶
Constructor.
- Parameters:
p – pointer to a string stream containing XML content.
n – size of the stream.
tks – XML token map instance.
ns_cxt – namespace context instance.
hdl – handler class instance.
min_token_size – minimum size of the internal token buffer.
-
threaded_sax_token_parser(const char *p, size_t n, const tokens &tks, xmlns_context &ns_cxt, handler_type &hdl, size_t min_token_size, size_t max_token_size)¶
Constructor.
- Parameters:
p – pointer to a string stream containing XML content.
n – size of the stream.
tks – XML token map instance.
ns_cxt – namespace context instance.
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.
-
void swap_string_pool(string_pool &pool)¶
-
threaded_sax_token_parser(const char *p, size_t n, const tokens &tks, xmlns_context &ns_cxt, handler_type &hdl, size_t min_token_size)¶