From 247945811adbfb5ddaa1ba4e1f3dfc20cd7eb058 Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Thu, 6 Mar 2014 11:50:53 +0000 Subject: added attribute handler git-svn-id: file:///var/local/svn/basicwriter@28 daaaf23c-2e50-4459-9457-1e69db5a47bf --- src/xml/XmlReader.hpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'src/xml/XmlReader.hpp') diff --git a/src/xml/XmlReader.hpp b/src/xml/XmlReader.hpp index d8f30a7..f9b949b 100644 --- a/src/xml/XmlReader.hpp +++ b/src/xml/XmlReader.hpp @@ -19,8 +19,9 @@ #ifndef _OUSIA_XML_XML_READER_HPP_ #define _OUSIA_XML_XML_READER_HPP_ -#include +#include #include +#include #include #include @@ -32,6 +33,7 @@ namespace ousia { namespace xml { class XmlElementHandler; +class XmlAttributeHandler; /** * The XmlReader class is responsible for parsing the ousia XML documents and @@ -52,10 +54,17 @@ private: std::shared_ptr readDomain(); /** - * Used internally in order to conveniently expect one of a set of elements. + * Used internally in order to conveniently expect one xml tag in a set of + * elements. Returns true if there was an error while waiting for the tag, + * false otherwise. */ bool expectOneOf(std::vector &handlers); + /** + * Used internally to parse the current argument map. + */ + bool parseArguments(std::map &handlers); + public: /** -- cgit v1.2.3