83 virtual void clear(
void) = 0;
85 virtual std::string
classname(
void)
const = 0;
86 virtual int size(
void)
const;
92 virtual void remove(
const int& index);
93 virtual void reserve(
const int& num);
99 virtual int elements(
const std::string& name)
const;
107 const int& index)
const;
108 virtual void write(
GUrl& url,
const int& indent)
const = 0;
111 const int& indent = 0)
const = 0;
Abstract XML node base class.
GXmlNode * parent(void) const
Return parent XML node.
GXmlNode & operator=(const GXmlNode &node)
Assignment operator.
GFilename filename(void) const
Return filename of XML file.
std::vector< GXmlNode * > m_nodes
Pointer to child nodes.
virtual GXmlNode * set(const int &index, const GXmlNode &node)
Set XML child node.
void init_members(void)
Initialise class members.
virtual int elements(void) const
Return number of GXMLElement children of node.
void free_members(void)
Delete class members.
virtual void clear(void)=0
Clear object.
virtual void extend(const GXmlNode &node)
Append all XML child nodes from another XML node.
virtual GXmlNode * insert(const int &index, const GXmlNode &node)
Insert XML child node.
Abstract URL base class interface definition.
virtual int size(void) const
Return number of child nodes.
virtual GXmlNode * clone(void) const =0
Clones object.
virtual void reserve(const int &num)
Reserve space for child nodes.
virtual NodeType type(void) const =0
GXmlNode * m_parent
Pointer on parent node.
void copy_members(const GXmlNode &node)
Copy class members.
virtual std::string classname(void) const =0
Return class name.
virtual std::string print(const GChatter &chatter=NORMAL, const int &indent=0) const =0
virtual GXmlElement * element(const int &index)
Return pointer to GXMLElement child.
virtual void write(GUrl &url, const int &indent) const =0
GXmlNode * operator[](const int &index)
Return pointer to XML child node.
virtual bool is_empty(void) const
Signals if node has no child nodes.
int extract_index(std::string &tag) const
Extract index from tag.
Definition of interface for container classes.
virtual GXmlNode * append(const GXmlNode &node)
Append XML child node.
GXmlNode(void)
Void constructor.
Interface class for container classes.
Filename class interface definition.
virtual ~GXmlNode(void)
Destructor.