parser_thread

Defined in header: <orcus/sax_token_parser_thread.hpp>

class parser_thread

Public Functions

parser_thread(const char *p, size_t n, const orcus::tokens &tks, xmlns_context &ns_cxt, size_t min_token_size)
parser_thread(const char *p, size_t n, const orcus::tokens &tks, xmlns_context &ns_cxt, size_t min_token_size, size_t max_token_size)
~parser_thread()
void start()
bool next_tokens(parse_tokens_t &tokens)

Wait until new set of tokens becomes available.

Parameters:

tokens – new set of tokens.

Returns:

true if the parsing is still in progress (therefore more tokens to come), false if it’s done i.e. this is the last token set.

void swap_string_pool(string_pool &pool)
void abort()