32#ifndef API_MIP_XML_READER_H_
33#define API_MIP_XML_READER_H_
77 virtual bool GetName(std::string& name)
const = 0;
93 virtual bool GetValue(std::string& value)
const = 0;
115 virtual bool GetAttribute(
const std::string& attributeName, std::string& attribute)
const = 0;
XmlReader abstraction class.
virtual std::string GetAncestors() const =0
Returns current node ancestors (for debug text), in the following purpose <node grand parent attribut...
virtual bool GetName(std::string &name) const =0
Returns if name was found.
virtual bool GetValue(std::string &value) const =0
Returns if value was found.
virtual bool Skip()=0
Skips current node until it finds a non empty node.
virtual bool MoveToFirstAttribute()=0
Move to first attribute.
virtual bool MoveToElement()=0
Move from attribute to element.
virtual bool HasAttributes() const =0
Returns whether the current node has attributes.
virtual std::string DumpNode()=0
Method returns all node elements in an unmodified way from the original xml.
virtual XmlNodeType GetNodeType() const =0
Get current node type.
virtual std::string GetName() const =0
Returns the name if found, exception otherwise.
virtual bool GetAttribute(const std::string &attributeName, std::string &attribute) const =0
Returns true if attributes was found.
virtual bool Read()=0
Reads the next node of the element.
virtual bool MoveToNextAttribute()=0
Move to Next attribute.
virtual bool IsEmptyElement() const =0
Returns whether the current node as an empty element.
XmlNodeType
Constants for the different types of xml elements nodes.
Contains XmlNode interface definition used to interact with xml parsers.