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>
69 class NodeList :
public Wrapper<xercesc::DOMNodeList, Base<xercesc::DOMNodeList> >
158 return !(*
this == rhs);
176 Wrapper<xercesc::DOMNodeList,
Base<xercesc::DOMNodeList> >()
186 Wrapper<xercesc::DOMNodeList,
Base<xercesc::DOMNodeList> >(nodelist)
216 return (*this)->getLength();
269 #endif // OME_COMMON_XML_DOM_NODELIST_H
NodeList(const NodeList &nodelist)
Copy construct a NodeList.
Definition: NodeList.h:185
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:201
Node at(size_type index)
Get the element at a particular index.
Definition: NodeList.cpp:127
DOM Node wrapper.
Definition: Node.h:68
ome::compat::shared_ptr< Node > xmlnode
Node at current position.
Definition: NodeList.h:169
size_type size() const
Get the size (length) of the NodeList.
Definition: NodeList.h:211
NodeList(xercesc::DOMNodeList *nodelist)
Construct a NodeList from a xercesc::DOMNodeList * (unmanaged).
Definition: NodeList.h:195
bool empty() const
Check if the NodeList is empty.
Definition: NodeList.h:227
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
bool operator!=(const iterator &rhs) const noexcept
Check the non-equality of two iterators.
Definition: NodeList.h:156
iterator end()
Get an iterator pointing to the past-the-end element in the NodeList.
Definition: NodeList.h:249
bool operator==(const iterator &rhs) const noexcept
Check the equality of two iterators.
Definition: NodeList.cpp:115
Iterator for a NodeList.
Definition: NodeList.h:78
Open Microscopy Environment C++ implementation.
Definition: CoreMetadata.cpp:40
Base of the DOM wrapper hierarchy.
Definition: Base.h:76
size_type index
Index into the list.
Definition: NodeList.h:165
xercesc::DOMNodeList base_element_type
Base element type (root type of the wrapped type).
Definition: Base.h:82
Node * operator->() noexcept
Dereference the iterator.
Definition: NodeList.cpp:81
xercesc::DOMNodeList * xmlnodelist
List being iterated over.
Definition: NodeList.h:167
NodeList()
Construct a NULL NodeList.
Definition: NodeList.h:175
DOM NodeList wrapper.
Definition: NodeList.h:69
Node & operator*() noexcept
Dereference the iterator.
Definition: NodeList.cpp:74
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:238
Xerces-C modern C++ wrapper.
Definition: Base.h:53