diff options
| author | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2014-03-06 11:50:53 +0000 | 
|---|---|---|
| committer | andreas <andreas@daaaf23c-2e50-4459-9457-1e69db5a47bf> | 2014-03-06 11:50:53 +0000 | 
| commit | 247945811adbfb5ddaa1ba4e1f3dfc20cd7eb058 (patch) | |
| tree | cad76062be455d4324d03f5ce38c9b599f6b7e25 /src/xml/XmlReader.hpp | |
| parent | 36a1402be747136711edc19f7bce45f36a625eb4 (diff) | |
added attribute handler
git-svn-id: file:///var/local/svn/basicwriter@28 daaaf23c-2e50-4459-9457-1e69db5a47bf
Diffstat (limited to 'src/xml/XmlReader.hpp')
| -rw-r--r-- | src/xml/XmlReader.hpp | 13 | 
1 files changed, 11 insertions, 2 deletions
| 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 <functional> +#include <map>  #include <memory> +#include <string>  #include <vector>  #include <model/GraphNode.hpp> @@ -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<model::domain::Domain> 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<XmlElementHandler> &handlers); +	/** +	 * Used internally to parse the current argument map. +	 */ +	bool parseArguments(std::map<std::string, XmlAttributeHandler> &handlers); +  public:  	/** | 
