aboutsummaryrefslogtreecommitdiff
path: root/cutl/xml/parser.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'cutl/xml/parser.hxx')
-rw-r--r--cutl/xml/parser.hxx17
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