39 #ifndef OME_COMMON_XML_DOM_ELEMENT_H 40 #define OME_COMMON_XML_DOM_ELEMENT_H 45 #include <xercesc/dom/DOMElement.hpp> 47 #include <ome/common/xml/String.h> 48 #include <ome/common/xml/dom/Node.h> 49 #include <ome/common/xml/dom/Wrapper.h> 139 return (*this)->getTagName();
151 return (*this)->getElementsByTagName(
String(name));
187 const std::string& val)
201 return (*this)->getTextContent();
221 #endif // OME_COMMON_XML_DOM_ELEMENT_H String getTagName() const
Get Element tag name.
Definition: Element.h:137
bool hasAttribute(const std::string &attr) const
Check if the Element has the specified attribute.
Definition: Element.h:162
std::shared_ptr< base_element_type > base
Wrapped reference.
Definition: Base.h:253
Xerces DOM class wrapper.
Definition: Wrapper.h:72
Element(const Wrapper< xercesc::DOMElement, Node >::base_type &base)
Copy construct an Element.
Definition: Element.h:93
DOM Node wrapper.
Definition: Node.h:70
void setTextContent(const std::string &val)
Set Element text content.
Definition: Element.h:210
void setAttribute(const std::string &attr, const std::string &val)
Set the specified attribute value.
Definition: Element.h:186
DOM Element wrapper.
Definition: Element.h:67
Element(Wrapper< xercesc::DOMElement, Node >::base_element_type *base, bool managed)
Construct an Element from a xercesc::DOMNode *.
Definition: Element.h:118
NodeList getElementsByTagName(const std::string &name)
Get child elements with a given tag name.
Definition: Element.h:149
Open Microscopy Environment C++.
Definition: base64.h:48
~Element()
Destructor.
Definition: Element.h:127
Element(const Element &element)
Copy construct an Element.
Definition: Element.h:83
String getAttribute(const std::string &attr) const
Get the specified attribute value.
Definition: Element.h:174
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
String getTextContent() const
Get Element text content.
Definition: Element.h:199
DOM NodeList wrapper.
Definition: NodeList.h:69
Element()
Construct a NULL Element.
Definition: Element.h:73
Element(xercesc::DOMElement *element, bool managed)
Construct an Element from a xercesc::DOMElement *.
Definition: Element.h:104