diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2013-03-14 11:08:13 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2013-03-14 11:08:13 +0200 |
commit | dac3640ed08cf18eaa6eb26605a27e6c7387b2c2 (patch) | |
tree | c22798e70696a99e24c603ffff05473937efe4bf /cutl/xml/parser.hxx | |
parent | ce298ad2e8dbc3601d180c178bee9d606b8edab2 (diff) |
Add next_expect() functions to XML parser
Diffstat (limited to 'cutl/xml/parser.hxx')
-rw-r--r-- | cutl/xml/parser.hxx | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/cutl/xml/parser.hxx b/cutl/xml/parser.hxx index d7011af..5d1e9e5 100644 --- a/cutl/xml/parser.hxx +++ b/cutl/xml/parser.hxx @@ -131,6 +131,21 @@ namespace cutl } } + // Get the next event and make sure that it's what's expected. If it + // is not, then throw an appropriate parsing exception. + // + void + next_expect (event_type); + + void + next_expect (event_type, const qname_type& qname); + + void + next_expect (event_type, const std::string& name); + + void + next_expect (event_type, const std::string& ns, const std::string& name); + event_type peek () { @@ -283,4 +298,6 @@ namespace cutl } } +#include <cutl/xml/parser.ixx> + #endif // CUTL_XML_PARSER_HXX |