39 #ifndef OME_COMMON_XML_DOM_NODE_H 40 #define OME_COMMON_XML_DOM_NODE_H 44 #include <ome/common/config.h> 46 #include <ome/common/xml/String.h> 47 #include <ome/common/xml/dom/Base.h> 48 #include <ome/common/xml/dom/NodeList.h> 49 #include <ome/common/xml/dom/NamedNodeMap.h> 50 #include <ome/common/xml/dom/Wrapper.h> 52 #include <xercesc/dom/DOMNode.hpp> 70 class Node :
public Wrapper<xercesc::DOMNode, Base<xercesc::DOMNode>>
90 Wrapper<xercesc::DOMNode,
Base<xercesc::DOMNode>>(node)
102 Wrapper<xercesc::DOMNode,
Base<xercesc::DOMNode>>(managed ?
125 return Node((*this)->appendChild(node.
get()),
false);
136 return (*this)->getNodeType();
147 return NodeList((*this)->getChildNodes());
169 return String((*this)->getNodeValue());
180 return String((*this)->getTextContent());
189 #endif // OME_COMMON_XML_DOM_NODE_H NamedNodeMap getAttributes()
Get node attributes.
Definition: Node.h:156
Xerces DOM class wrapper.
Definition: Wrapper.h:72
Node appendChild(Node &node)
Append a child Node.
Definition: Node.h:120
DOM Node wrapper.
Definition: Node.h:70
xercesc::DOMNode::NodeType node_type
The derived object type of a node.
Definition: Node.h:74
Node(const Node &node)
Copy construct a Node.
Definition: Node.h:89
Node()
Construct a NULL Node.
Definition: Node.h:79
~Node()
Destructor.
Definition: Node.h:109
std::string getNodeValue()
Get node value.
Definition: Node.h:167
NodeList getChildNodes()
Get child nodes.
Definition: Node.h:145
Open Microscopy Environment C++.
Definition: base64.h:48
DOM NamedNodeMap wrapper.
Definition: NamedNodeMap.h:69
node_type getNodeType()
Get the object type of this node.
Definition: Node.h:134
Base of the DOM wrapper hierarchy.
Definition: Base.h:76
xercesc::DOMNode base_element_type
Base element type (root type of the wrapped type).
Definition: Base.h:82
Xerces string wrapper.
Definition: String.h:74
DOM NodeList wrapper.
Definition: NodeList.h:69
Node(xercesc::DOMNode *node, bool managed)
Construct a Node from a xercesc::DOMNode *.
Definition: Node.h:100
std::string getTextContent()
Get node text content.
Definition: Node.h:178
element_type * get()
Get wrapped element_type *.
Definition: Wrapper.h:155