Elm  2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
ParentNode.h
1 /*
2  * $Id$
3  * Copyright (c) 2006, IRIT UPS.
4  *
5  * elm/xom/ParentNode.h -- XOM ParentNode class interface.
6  */
7 #ifndef ELM_XOM_PARENT_NODE_H
8 #define ELM_XOM_PARENT_NODE_H
9 
10 #include <elm/xom/Node.h>
11 
12 namespace elm { namespace xom {
13 
14 // ParentNode class
15 class ParentNode: public Node {
16 protected:
17  inline ParentNode(void * node): Node(node) { };
18  void internSetBaseURI(String URI);
19 public:
20  virtual void appendChild(Node *child);
21  virtual int indexOf(Node *child);
22  virtual void insertChild(Node *child, int position);
23  virtual Node *removeChild(int position);
24  virtual Node *removeChild(Node *child);
25  virtual void replaceChild(Node *old_child, Node *new_child);
26  virtual void setBaseURI(String URI) = 0;
27 
28  // Node overload
29  virtual Node *getChild(int index);
30  virtual int getChildCount(void);
31 };
32 
33 } } // elm::xom
34 
35 #endif // ELM_XOM_PARENT_NODE_H
elm::xom::Node::node
void * node
Definition: Node.h:60
elm::xom::String
Definition: String.h:35
elm::xom::ParentNode::replaceChild
virtual void replaceChild(Node *old_child, Node *new_child)
Definition: xom_ParentNode.cpp:176
elm::xom::ParentNode::internSetBaseURI
void internSetBaseURI(String URI)
elm::xom::ParentNode::appendChild
virtual void appendChild(Node *child)
Definition: xom_ParentNode.cpp:49
elm::xom::ParentNode::getChildCount
virtual int getChildCount(void)
Definition: xom_ParentNode.cpp:81
elm
Definition: adapter.h:26
elm::xom::ParentNode
Definition: ParentNode.h:15
elm::xom::ParentNode::removeChild
virtual Node * removeChild(int position)
Definition: xom_ParentNode.cpp:151
elm::xom::ParentNode::getChild
virtual Node * getChild(int index)
Definition: xom_ParentNode.cpp:68
elm::xom::ParentNode::setBaseURI
virtual void setBaseURI(String URI)=0
elm::xom::ParentNode::insertChild
virtual void insertChild(Node *child, int position)
Definition: xom_ParentNode.cpp:124
elm::xom::ParentNode::indexOf
virtual int indexOf(Node *child)
Definition: xom_ParentNode.cpp:99
elm::xom::ParentNode::ParentNode
ParentNode(void *node)
Definition: ParentNode.h:17
elm::xom::Node
Definition: Node.h:40