Orcus
Public Member Functions | List of all members
orcus::sax::parser_thread Class Reference

Public Member 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)
 
void start ()
 
bool next_tokens (parse_tokens_t &tokens)
 
void swap_string_pool (string_pool &pool)
 
void abort ()
 

Member Function Documentation

◆ next_tokens()

bool orcus::sax::parser_thread::next_tokens ( parse_tokens_t &  tokens)

Wait until new set of tokens becomes available.

Parameters
tokensnew 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.