Xerces-C++ 3.3.0
DOMNodeIterator.hpp
Go to the documentation of this file.
1/*
2 * Licensed to the Apache Software Foundation (ASF) under one or more
3 * contributor license agreements. See the NOTICE file distributed with
4 * this work for additional information regarding copyright ownership.
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
18/*
19 * $Id$
20 */
21
22#if !defined(XERCESC_INCLUDE_GUARD_DOMNODEITERATOR_HPP)
23#define XERCESC_INCLUDE_GUARD_DOMNODEITERATOR_HPP
24
27
29
30
45{
46protected:
47 // -----------------------------------------------------------------------
48 // Hidden constructors
49 // -----------------------------------------------------------------------
55
56private:
57 // -----------------------------------------------------------------------
58 // Unimplemented constructors and operators
59 // -----------------------------------------------------------------------
62 DOMNodeIterator & operator = (const DOMNodeIterator &);
64
65public:
66 // -----------------------------------------------------------------------
67 // All constructors are hidden, just the destructor is available
68 // -----------------------------------------------------------------------
75 virtual ~DOMNodeIterator() {};
77
78 // -----------------------------------------------------------------------
79 // Virtual DOMNodeFilter interface
80 // -----------------------------------------------------------------------
83 // -----------------------------------------------------------------------
84 // Getter methods
85 // -----------------------------------------------------------------------
91 virtual DOMNode* getRoot() = 0;
104
110 virtual DOMNodeFilter* getFilter() = 0;
111
133 virtual bool getExpandEntityReferences() = 0;
134
135 // -----------------------------------------------------------------------
136 // Query methods
137 // -----------------------------------------------------------------------
150 virtual DOMNode* nextNode() = 0;
151
162 virtual DOMNode* previousNode() = 0;
163
173 virtual void detach() = 0;
175
176 // -----------------------------------------------------------------------
177 // Non-standard Extension
178 // -----------------------------------------------------------------------
188 virtual void release() = 0;
190};
191
192#define GetDOMNodeIteratorMemoryManager GET_DIRECT_MM(fDocument)
193
195
196#endif
#define CDOM_EXPORT
Definition XercesDefs.hpp:166
#define XERCES_CPP_NAMESPACE_BEGIN
Definition XercesDefs.hpp:112
#define XERCES_CPP_NAMESPACE_END
Definition XercesDefs.hpp:113
Filters are objects that know how to "filter out" nodes.
Definition DOMNodeFilter.hpp:50
unsigned long ShowType
Definition DOMNodeFilter.hpp:193
DOMNodeIterators are used to step through a set of nodes, e.g.
Definition DOMNodeIterator.hpp:45
virtual DOMNode * getRoot()=0
The root node of the DOMNodeIterator, as specified when it was created.
virtual DOMNode * previousNode()=0
Returns the previous node in the set and moves the position of the DOMNodeIterator backwards in the s...
virtual void release()=0
Called to indicate that this NodeIterator is no longer in use and that the implementation may relinqu...
DOMNodeIterator()
Definition DOMNodeIterator.hpp:52
virtual void detach()=0
Detaches the DOMNodeIterator from the set which it iterated over, releasing any computational resourc...
virtual DOMNode * nextNode()=0
Returns the next node in the set and advances the position of the DOMNodeIterator in the set.
virtual bool getExpandEntityReferences()=0
Return the expandEntityReferences flag.
virtual DOMNodeFilter * getFilter()=0
The DOMNodeFilter used to screen nodes.
DOMNodeIterator(const DOMNodeIterator &)
Definition DOMNodeIterator.hpp:53
virtual DOMNodeFilter::ShowType getWhatToShow()=0
Return which node types are presented via the iterator.
virtual ~DOMNodeIterator()
Destructor.
Definition DOMNodeIterator.hpp:75
The DOMNode interface is the primary datatype for the entire Document Object Model.
Definition DOMNode.hpp:139