14 #include "msdevstudio/MSconfig.h"
32 : m_tagname ( tagname ),
35 m_controller ( controller )
59 std::list < XmlElement * > & nodelist )
XmlElement * createElement()
Creates a new element node.
virtual const std::string & tagName() const
Returns the tag name used by this class.
virtual XmlElement * createElement(const std::string &tagName)=0
Creates a new DOM element wrapper object and returns a pointer to it.
XmlDocument class interface.
XmlController class interface.
const std::string m_tagname
The tag name used for elements created by this class.
const XmlElement * getNode(const XmlElement *element) const
Returns the single child node of element of the type that can be handled by this object.
A pure virtual base class of XML element wrapper.
void fillNodeList(const XmlElement *element, std::list< XmlElement * > &nodelist)
Fills the nodelist with immediate child nodes of element with nodes that can be handled by this objec...
virtual XmlElement * getNode(const std::string &tagName) const =0
Returns the single direct child element node with name tagName.
void setId(XmlElement &tag, int id)
Sets the unique identification of the object.
const std::string m_id
The attribute name for the identification of the object.
virtual ~BaseXML()
The destructor.
BaseXML(const BaseXML &)
A private copy constructor in order to avoid copying.
virtual void fillNodeList(const std::string &tagName, std::list< XmlElement * > &nodeList) const =0
Fills the nodeList with elements with tag name tagName.
XmlElement class interface.
static XmlDocument * m_xml_doc
The current document being generated or read.
A base class that is the interface between GUI and the XML serialization and deserialization.
virtual void setAttribute(const std::string &name, bool value)=0
Sets attribute named name to the int value value.