39 #ifndef OME_COMMON_XML_DOM_NODELIST_H 40 #define OME_COMMON_XML_DOM_NODELIST_H 42 #include <ome/common/config.h> 46 #include <ome/common/xml/dom/Base.h> 47 #include <ome/common/xml/dom/Wrapper.h> 49 #include <xercesc/dom/DOMNodeList.hpp> 158 return !(*
this == rhs);
177 Wrapper<xercesc::DOMNodeList,
Base<xercesc::DOMNodeList>>()
187 Wrapper<xercesc::DOMNodeList,
Base<xercesc::DOMNodeList>>(nodelist)
217 return (*this)->getLength();
270 #endif // OME_COMMON_XML_DOM_NODELIST_H NodeList(const NodeList &nodelist)
Copy construct a NodeList.
Definition: NodeList.h:186
iterator & operator++()
Move the iterator forward one element.
Definition: NodeList.cpp:104
Xerces DOM class wrapper.
Definition: Wrapper.h:72
~NodeList()
Destructor.
Definition: NodeList.h:202
Node at(size_type index)
Get the element at a particular index.
Definition: NodeList.cpp:127
DOM Node wrapper.
Definition: Node.h:70
std::shared_ptr< Node > xmlnode
Node at current position.
Definition: NodeList.h:170
NodeList(xercesc::DOMNodeList *nodelist)
Construct a NodeList from a xercesc::DOMNodeList * (unmanaged).
Definition: NodeList.h:196
bool empty() const
Check if the NodeList is empty.
Definition: NodeList.h:228
XMLSize_t size_type
The NodeList size type.
Definition: NodeList.h:73
iterator & operator--()
Move the iterator backward one element.
Definition: NodeList.cpp:88
~iterator()
Destructor.
Definition: NodeList.cpp:70
iterator end()
Get an iterator pointing to the past-the-end element in the NodeList.
Definition: NodeList.h:250
Iterator for a NodeList.
Definition: NodeList.h:78
Open Microscopy Environment C++.
Definition: base64.h:48
bool operator!=(const iterator &rhs) const
Check the non-equality of two iterators.
Definition: NodeList.h:156
Base of the DOM wrapper hierarchy.
Definition: Base.h:76
size_type index
Index into the list.
Definition: NodeList.h:166
size_type size() const
Get the size (length) of the NodeList.
Definition: NodeList.h:212
xercesc::DOMNodeList base_element_type
Base element type (root type of the wrapped type).
Definition: Base.h:82
bool operator==(const iterator &rhs) const
Check the equality of two iterators.
Definition: NodeList.cpp:115
xercesc::DOMNodeList * xmlnodelist
List being iterated over.
Definition: NodeList.h:168
NodeList()
Construct a NULL NodeList.
Definition: NodeList.h:176
DOM NodeList wrapper.
Definition: NodeList.h:69
iterator()
Construct a null iterator.
Definition: NodeList.cpp:51
iterator begin()
Get an iterator pointing to the first element in the NodeList.
Definition: NodeList.h:239
Node & operator*()
Dereference the iterator.
Definition: NodeList.cpp:74
Node * operator->()
Dereference the iterator.
Definition: NodeList.cpp:81