Orcus
Public Types | Public Member Functions | List of all members
orcus::threaded_sax_token_parser< _Handler > Class Template Reference

Public Types

typedef _Handler handler_type
 

Public Member 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)
 
 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)
 
void parse ()
 
void swap_string_pool (string_pool &pool)
 

Constructor & Destructor Documentation

◆ threaded_sax_token_parser() [1/2]

template<typename _Handler >
orcus::threaded_sax_token_parser< _Handler >::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
ppointer to a string stream containing XML content.
nsize of the stream.
tksXML token map instance.
ns_cxtnamespace context instance.
hdlhandler class instance.
min_token_sizeminimum size of the internal token buffer.

◆ threaded_sax_token_parser() [2/2]

template<typename _Handler >
orcus::threaded_sax_token_parser< _Handler >::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
ppointer to a string stream containing XML content.
nsize of the stream.
tksXML token map instance.
ns_cxtnamespace context instance.
hdlhandler class instance.
min_token_sizeminimum size of the internal token buffer.
max_token_sizemaximum size of the internal token buffer.

Member Function Documentation

◆ parse()

template<typename _Handler >
void orcus::threaded_sax_token_parser< _Handler >::parse ( )

Call this method to start parsing.