Xerces-C++: DOMNodeIterator.hpp Source File

Xerces-C++ 3.2.3

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
25 #include <xercesc/dom/DOMNodeFilter.hpp>
26 #include <xercesc/dom/DOMNode.hpp>
27
28 XERCES_CPP_NAMESPACE_BEGIN
29
30
44 class CDOM_EXPORT DOMNodeIterator
45 {
46 protected:
47 // -----------------------------------------------------------------------
48 // Hidden constructors
49 // -----------------------------------------------------------------------
52 DOMNodeIterator() {}
53 DOMNodeIterator(const DOMNodeIterator &) {}
55
56 private:
57 // -----------------------------------------------------------------------
58 // Unimplemented constructors and operators
59 // -----------------------------------------------------------------------
62 DOMNodeIterator & operator = (const DOMNodeIterator &);
64
65 public:
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;
103 virtual DOMNodeFilter::ShowType getWhatToShow() = 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
194 XERCES_CPP_NAMESPACE_END
195
196 #endif
XERCES_CPP_NAMESPACE_BEGIN
#define XERCES_CPP_NAMESPACE_BEGIN
Definition: XercesDefs.hpp:112
DOMNodeIterator::DOMNodeIterator
DOMNodeIterator()
Definition: DOMNodeIterator.hpp:52
CDOM_EXPORT
#define CDOM_EXPORT
Definition: XercesDefs.hpp:166
DOMNodeIterator
DOMNodeIterators are used to step through a set of nodes, e.g.
Definition: DOMNodeIterator.hpp:44
XERCES_CPP_NAMESPACE_END
#define XERCES_CPP_NAMESPACE_END
Definition: XercesDefs.hpp:113
DOMNodeFilter::ShowType
unsigned long ShowType
Definition: DOMNodeFilter.hpp:193
DOMNode.hpp
DOMNodeIterator::DOMNodeIterator
DOMNodeIterator(const DOMNodeIterator &)
Definition: DOMNodeIterator.hpp:53
DOMNodeIterator::~DOMNodeIterator
virtual ~DOMNodeIterator()
Destructor.
Definition: DOMNodeIterator.hpp:75
DOMNodeFilter.hpp
DOMNodeFilter
Filters are objects that know how to "filter out" nodes.
Definition: DOMNodeFilter.hpp:49
DOMNode
The DOMNode interface is the primary datatype for the entire Document Object Model.
Definition: DOMNode.hpp:139