Xerces-C++ 3.2.0

DOMDocumentTraversal.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: DOMDocumentTraversal.hpp 671894 2008-06-26 13:29:21Z borisk $
20 */
21
22 #if !defined(XERCESC_INCLUDE_GUARD_DOMDOCUMENTTRAVERSAL_HPP)
23 #define XERCESC_INCLUDE_GUARD_DOMDOCUMENTTRAVERSAL_HPP
24
25 #include <xercesc/util/XercesDefs.hpp>
26 #include <xercesc/dom/DOMNodeFilter.hpp>
27
28 XERCES_CPP_NAMESPACE_BEGIN
29
30
31 class DOMNode;
32 class DOMNodeIterator;
33 class DOMTreeWalker;
34
35
47 class CDOM_EXPORT DOMDocumentTraversal {
48
49 protected:
50 // -----------------------------------------------------------------------
51 // Hidden constructors
52 // -----------------------------------------------------------------------
55 DOMDocumentTraversal() {};
57
58 private:
59 // -----------------------------------------------------------------------
60 // Unimplemented constructors and operators
61 // -----------------------------------------------------------------------
64 DOMDocumentTraversal(const DOMDocumentTraversal &);
65 DOMDocumentTraversal & operator = (const DOMDocumentTraversal &);
67
68 public:
69 // -----------------------------------------------------------------------
70 // All constructors are hidden, just the destructor is available
71 // -----------------------------------------------------------------------
78 virtual ~DOMDocumentTraversal() {};
80
81 // -----------------------------------------------------------------------
82 // Virtual DOMDocumentRange interface
83 // -----------------------------------------------------------------------
110 virtual DOMNodeIterator *createNodeIterator(DOMNode* root,
111 DOMNodeFilter::ShowType whatToShow,
112 DOMNodeFilter* filter,
113 bool entityReferenceExpansion) = 0;
144 virtual DOMTreeWalker *createTreeWalker(DOMNode* root,
145 DOMNodeFilter::ShowType whatToShow,
146 DOMNodeFilter* filter,
147 bool entityReferenceExpansion) = 0;
148
150 };
151
152
153 XERCES_CPP_NAMESPACE_END
154
155 #endif
DOMDocumentTraversal
DOMDocumentTraversal contains methods that create DOMNodeIterators and DOMTreeWalkers to traverse a n...
Definition: DOMDocumentTraversal.hpp:47
DOMNodeFilter
Filters are objects that know how to "filter out" nodes.
Definition: DOMNodeFilter.hpp:49
DOMNodeFilter.hpp
XercesDefs.hpp
DOMDocumentTraversal::DOMDocumentTraversal
DOMDocumentTraversal()
Definition: DOMDocumentTraversal.hpp:55
DOMNodeIterator
DOMNodeIterators are used to step through a set of nodes, e.g.
Definition: DOMNodeIterator.hpp:44
DOMNodeFilter::ShowType
unsigned long ShowType
Definition: DOMNodeFilter.hpp:193
CDOM_EXPORT
#define CDOM_EXPORT
Definition: XercesDefs.hpp:166
DOMTreeWalker
DOMTreeWalker objects are used to navigate a document tree or subtree using the view of the document ...
Definition: DOMTreeWalker.hpp:50
XERCES_CPP_NAMESPACE_BEGIN
#define XERCES_CPP_NAMESPACE_BEGIN
Definition: XercesDefs.hpp:112
XERCES_CPP_NAMESPACE_END
#define XERCES_CPP_NAMESPACE_END
Definition: XercesDefs.hpp:113
DOMDocumentTraversal::~DOMDocumentTraversal
virtual ~DOMDocumentTraversal()
Destructor.
Definition: DOMDocumentTraversal.hpp:78
DOMNode
The DOMNode interface is the primary datatype for the entire Document Object Model.
Definition: DOMNode.hpp:139