SourceForge.net Logo
DOMNodeFilter.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_DOMNODEFILTER_HPP)
23#define XERCESC_INCLUDE_GUARD_DOMNODEFILTER_HPP
24
26
27XERCES_CPP_NAMESPACE_BEGIN
28
29
48
49class CDOM_EXPORT DOMNodeFilter
50{
51protected:
52 // -----------------------------------------------------------------------
53 // Hidden constructors
54 // -----------------------------------------------------------------------
59
60private:
61 // -----------------------------------------------------------------------
62 // Unimplemented constructors and operators
63 // -----------------------------------------------------------------------
67 DOMNodeFilter & operator = (const DOMNodeFilter &);
69
70public:
71 // -----------------------------------------------------------------------
72 // All constructors are hidden, just the destructor is available
73 // -----------------------------------------------------------------------
76
80 virtual ~DOMNodeFilter() {};
82
83 // -----------------------------------------------------------------------
84 // Class Types
85 // -----------------------------------------------------------------------
88
115
178 SHOW_ALL = 0x0000FFFF,
179 SHOW_ELEMENT = 0x00000001,
180 SHOW_ATTRIBUTE = 0x00000002,
181 SHOW_TEXT = 0x00000004,
182 SHOW_CDATA_SECTION = 0x00000008,
184 SHOW_ENTITY = 0x00000020,
186 SHOW_COMMENT = 0x00000080,
187 SHOW_DOCUMENT = 0x00000100,
188 SHOW_DOCUMENT_TYPE = 0x00000200,
190 SHOW_NOTATION = 0x00000800
191 };
192
193 typedef unsigned long ShowType;
194
196
197 // -----------------------------------------------------------------------
198 // Virtual DOMNodeFilter interface
199 // -----------------------------------------------------------------------
202
214 virtual FilterAction acceptNode (const DOMNode* node) const =0;
216
217};
218
219XERCES_CPP_NAMESPACE_END
220
221#endif
Filters are objects that know how to "filter out" nodes.
Definition DOMNodeFilter.hpp:50
unsigned long ShowType
Definition DOMNodeFilter.hpp:193
virtual ~DOMNodeFilter()
Destructor.
Definition DOMNodeFilter.hpp:80
virtual FilterAction acceptNode(const DOMNode *node) const =0
Test whether a specified node is visible in the logical view of a DOMTreeWalker or DOMNodeIterator.
ShowTypeMasks
Constants for whatToShow.
Definition DOMNodeFilter.hpp:177
@ SHOW_DOCUMENT_TYPE
Definition DOMNodeFilter.hpp:188
@ SHOW_COMMENT
Definition DOMNodeFilter.hpp:186
@ SHOW_ALL
Definition DOMNodeFilter.hpp:178
@ SHOW_TEXT
Definition DOMNodeFilter.hpp:181
@ SHOW_ENTITY
Definition DOMNodeFilter.hpp:184
@ SHOW_ELEMENT
Definition DOMNodeFilter.hpp:179
@ SHOW_CDATA_SECTION
Definition DOMNodeFilter.hpp:182
@ SHOW_DOCUMENT_FRAGMENT
Definition DOMNodeFilter.hpp:189
@ SHOW_DOCUMENT
Definition DOMNodeFilter.hpp:187
@ SHOW_PROCESSING_INSTRUCTION
Definition DOMNodeFilter.hpp:185
@ SHOW_ENTITY_REFERENCE
Definition DOMNodeFilter.hpp:183
@ SHOW_ATTRIBUTE
Definition DOMNodeFilter.hpp:180
@ SHOW_NOTATION
Definition DOMNodeFilter.hpp:190
FilterAction
Constants returned by acceptNode.
Definition DOMNodeFilter.hpp:112
@ FILTER_REJECT
Definition DOMNodeFilter.hpp:113
@ FILTER_SKIP
Definition DOMNodeFilter.hpp:114
@ FILTER_ACCEPT
Definition DOMNodeFilter.hpp:112
DOMNodeFilter()
Definition DOMNodeFilter.hpp:57
The DOMNode interface is the primary datatype for the entire Document Object Model.
Definition DOMNode.hpp:139