Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

XResultTreeFrag.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(XRESULTTREEFRAG_HEADER_GUARD_1357924680)
17 #define XRESULTTREEFRAG_HEADER_GUARD_1357924680
18 
19 
20 
21 // Base header file. Must be first.
23 
24 
25 
27 
28 
29 
30 #if defined(XALAN_AUTO_PTR_REQUIRES_DEFINITION)
31 #include <xalanc/XPath/ResultTreeFragBase.hpp>
32 #endif
33 
34 
35 
36 
37 // Base class header file.
39 #include <xalanc/XPath/XObject.hpp>
40 
41 
42 
44 
45 
46 
47 XALAN_CPP_NAMESPACE_BEGIN
48 
49 
50 
51 class ResultTreeFrag;
52 
53 
54 
56 {
57 public:
58 
60 
61 
68  MemoryManagerType& theManager);
69 
77  const XResultTreeFrag& source,
78  MemoryManagerType& theManager,
79  bool deepClone = false);
80 
81  virtual
82  ~XResultTreeFrag();
83 
86  {
87  return m_cachedStringValue.getMemoryManager();
88  }
89 
90  void
92  {
93  m_executionContext = theExecutionContext;
94  }
95 
96  // These methods are inherited from XObject ...
97 
98  virtual const XalanDOMString&
99  getTypeString() const;
100 
101  virtual double
102  num() const;
103 
104  virtual bool
105  boolean() const;
106 
107  virtual const XalanDOMString&
108  str() const;
109 
110  virtual void
111  str(
112  FormatterListener& formatterListener,
113  MemberFunctionPtr function) const;
114 
115  virtual void
116  str(XalanDOMString& theBuffer) const;
117 
118  virtual double
119  stringLength() const;
120 
121  virtual const XalanDocumentFragment&
122  rtree() const;
123 
124  virtual const NodeRefListBase&
125  nodeset() const;
126 
127  virtual void
129 
130  virtual void
131  ProcessXObjectTypeCallback(XObjectTypeCallback& theCallbackObject) const;
132 
137  release();
138 
144  void
145  set(XalanDocumentFragment& theValue);
146 
147 protected:
148 
149  virtual void
150  dereferenced();
151 
152 private:
153  //not implemented
154  XResultTreeFrag();
156 
157  // Data members...
158  XalanDocumentFragment* m_value;
159 
160  const XalanDOMString* m_singleTextChildValue;
161 
162  StylesheetExecutionContext* m_executionContext;
163 
164  mutable XalanDOMString m_cachedStringValue;
165 
166  mutable double m_cachedNumberValue;
167 };
168 
169 
170 
171 XALAN_CPP_NAMESPACE_END
172 
173 
174 
175 #endif // XRESULTTREEFRAG_HEADER_GUARD_1357924680
The purpose of this class is to provide a way to get the "preferred" or closest matching type for XOb...
Definition: XObjectTypeCallback.hpp:51
XALAN_CPP_NAMESPACE_BEGIN typedef XERCES_CPP_NAMESPACE_QUALIFIER MemoryManager MemoryManagerType
Definition: XalanMemoryManagement.hpp:39
virtual const NodeRefListBase & nodeset() const
Cast result object to a nodelist.
virtual void ProcessXObjectTypeCallback(XObjectTypeCallback &theCallbackObject)=0
Process a callback request for preferred type information.
void setExecutionContext(StylesheetExecutionContext *theExecutionContext)
Definition: XResultTreeFrag.hpp:91
Definition: XalanDocumentFragment.hpp:38
virtual bool boolean() const
Cast result object to a boolean.
Definition: StylesheetExecutionContext.hpp:104
virtual const XalanDOMString & getTypeString() const =0
Given a request type, return the equivalent string.
Local implementation of NodeRefList.
Definition: NodeRefListBase.hpp:42
A SAX-based formatter interface for the XSL processor.
Definition: FormatterListener.hpp:62
virtual double num() const
Cast result object to a number.
virtual void dereferenced()
XObject ParentType
Definition: XResultTreeFrag.hpp:59
Class to hold XPath return types.
Definition: XObject.hpp:61
#define XALAN_XSLT_EXPORT
Definition: XSLTDefinitions.hpp:25
virtual const XalanDocumentFragment & rtree() const
Cast result object to a result tree fragment.
virtual double stringLength() const =0
Get the length of the string value of the instance.
Definition: XalanDOMString.hpp:42
virtual const XalanDOMString & str() const
Cast result object to a string.
Definition: XResultTreeFrag.hpp:55
MemoryManagerType & getMemoryManager() const
Definition: XResultTreeFrag.hpp:85

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