Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

NodeNameTreeWalker.hpp
Go to the documentation of this file.
1 /*
2  * Copyright 1999-2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 #if !defined(NODENAMETREEWALKER_HEADER_GUARD_1357924680)
17 #define NODENAMETREEWALKER_HEADER_GUARD_1357924680
18 
19 
21 
22 
23 
25 
26 
27 
28 // Base class include file.
30 
31 
32 
33 XALAN_CPP_NAMESPACE_BEGIN
34 
35 
36 
38 {
39 public:
40 
42 
44 
45  virtual
47 
55  virtual void
57  const XalanDOMString& theNodeName,
58  const XalanNode* theStartNode);
59 
60  virtual void
62  const XalanDOMString& theNodeName,
63  XalanNode* theStartNode);
64 
70  const NodeVectorType&
72  {
73  return m_matchingNodes;
74  }
75 
76 protected:
77 
78  virtual bool
79  startNode(XalanNode* node);
80 
81  virtual bool
82  endNode(XalanNode* node);
83 
84  virtual bool
85  startNode(const XalanNode* node);
86 
87  virtual bool
88  endNode(const XalanNode* node);
89 
90 private:
91 
92  XalanDOMString m_nodeName;
93 
94  NodeVectorType m_matchingNodes;
95 };
96 
97 
98 
99 XALAN_CPP_NAMESPACE_END
100 
101 
102 
103 #endif // NODENAMETREEWALKER_HEADER_GUARD_1357924680
Definition: XalanNode.hpp:44
virtual bool startNode(XalanNode *node)
Called when first walking a node.
virtual void findMatchingNodes(const XalanDOMString &theNodeName, const XalanNode *theStartNode)
Find all nodes matching a specified node in a specified node tree.
XALAN_CPP_NAMESPACE_BEGIN typedef XERCES_CPP_NAMESPACE_QUALIFIER MemoryManager MemoryManagerType
Definition: XalanMemoryManagement.hpp:39
NodeNameTreeWalker(MemoryManagerType &theManager)
const NodeVectorType & getMatchingNodes() const
Retrieve the matching nodes from the last search.
Definition: NodeNameTreeWalker.hpp:71
Definition: TreeWalker.hpp:34
virtual ~NodeNameTreeWalker()
Definition: XalanDOMString.hpp:42
XalanVector< const XalanNode * > NodeVectorType
Definition: NodeNameTreeWalker.hpp:41
Definition: NodeNameTreeWalker.hpp:37
virtual bool endNode(XalanNode *node)
Called when leaving a node.

Interpreting class diagrams

Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.

dot

Xalan-C++ XSLT Processor Version 1.10
Copyright © 1999-2004 The Apache Software Foundation. All Rights Reserved.

Apache Logo