Xerces-C++: DOMDocumentTraversal.hpp Source File

Xerces-C++ 3.3.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$
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
31class DOMNode;
32class DOMNodeIterator;
33class DOMTreeWalker;
34
35
47 class CDOM_EXPORT DOMDocumentTraversal {
48
49protected:
50 // -----------------------------------------------------------------------
51 // Hidden constructors
52 // -----------------------------------------------------------------------
55 DOMDocumentTraversal() {};
57
58private:
59 // -----------------------------------------------------------------------
60 // Unimplemented constructors and operators
61 // -----------------------------------------------------------------------
64 DOMDocumentTraversal(const DOMDocumentTraversal &);
65 DOMDocumentTraversal & operator = (const DOMDocumentTraversal &);
67
68public:
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
DOMNodeFilter.hpp
XercesDefs.hpp
CDOM_EXPORT
#define CDOM_EXPORT
Definition XercesDefs.hpp:166
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 contains methods that create DOMNodeIterators and DOMTreeWalkers to traverse a n...
Definition DOMDocumentTraversal.hpp:47
DOMDocumentTraversal::createNodeIterator
virtual DOMNodeIterator * createNodeIterator(DOMNode *root, DOMNodeFilter::ShowType whatToShow, DOMNodeFilter *filter, bool entityReferenceExpansion)=0
Creates a NodeIterator object.
DOMDocumentTraversal::DOMDocumentTraversal
DOMDocumentTraversal()
Definition DOMDocumentTraversal.hpp:55
DOMDocumentTraversal::~DOMDocumentTraversal
virtual ~DOMDocumentTraversal()
Destructor.
Definition DOMDocumentTraversal.hpp:78
DOMDocumentTraversal::createTreeWalker
virtual DOMTreeWalker * createTreeWalker(DOMNode *root, DOMNodeFilter::ShowType whatToShow, DOMNodeFilter *filter, bool entityReferenceExpansion)=0
Creates a TreeWalker object.
DOMNodeFilter
Filters are objects that know how to "filter out" nodes.
Definition DOMNodeFilter.hpp:50
DOMNodeFilter::ShowType
unsigned long ShowType
Definition DOMNodeFilter.hpp:193
DOMNodeIterator
DOMNodeIterators are used to step through a set of nodes, e.g.
Definition DOMNodeIterator.hpp:45
DOMNode
The DOMNode interface is the primary datatype for the entire Document Object Model.
Definition DOMNode.hpp:139
DOMTreeWalker
DOMTreeWalker objects are used to navigate a document tree or subtree using the view of the document ...
Definition DOMTreeWalker.hpp:50