Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

XStringBase.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(XSTRINGBASE_HEADER_GUARD_1357924680)
17 #define XSTRINGBASE_HEADER_GUARD_1357924680
18 
19 
20 
21 // Base header file. Must be first.
23 
24 
25 
26 // Base class header file.
27 #include <xalanc/XPath/XObject.hpp>
29 
30 
31 
32 XALAN_CPP_NAMESPACE_BEGIN
33 
34 
35 
36 class XPathEnvSupport;
37 
38 
39 
41 {
42 public:
43 
45 
50  XStringBase(MemoryManagerType& theManager);
51 
52  XStringBase(const XStringBase& source,
53  MemoryManagerType& theManager);
54 
57  {
58  return m_resultTreeFrag.getMemoryManager();
59  }
60 
61  virtual
62  ~XStringBase();
63 
64 
65  // These methods are inherited from XObject ...
66 
67  virtual const XalanDOMString&
68  getTypeString() const;
69 
70  virtual double
71  num() const;
72 
73  virtual bool
74  boolean() const;
75 
76 #if !defined(XALAN_NO_USING_DECLARATION)
77  using ParentType::str;
78 #endif
79 
80  virtual const XalanDOMString&
81  str() const = 0;
82 
83  virtual void
84  str(
85  FormatterListener& formatterListener,
86  MemberFunctionPtr function) const = 0;
87 
88  virtual double
89  stringLength() const = 0;
90 
91  virtual const XalanDocumentFragment&
92  rtree() const;
93 
94  virtual void
96 
97  virtual void
98  ProcessXObjectTypeCallback(XObjectTypeCallback& theCallbackObject) const;
99 
100 private:
101  // Not implemented
102  XStringBase(const XStringBase& source);
103  XStringBase();
104 
105  mutable double m_cachedNumberValue;
106 
107  mutable XObjectResultTreeFragProxy m_resultTreeFrag;
108 };
109 
110 
111 
112 XALAN_CPP_NAMESPACE_END
113 
114 
115 
116 #endif // XSTRINGBASE_HEADER_GUARD_1357924680
Definition: XObjectResultTreeFragProxy.hpp:37
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 void ProcessXObjectTypeCallback(XObjectTypeCallback &theCallbackObject)=0
Process a callback request for preferred type information.
Definition: XalanDocumentFragment.hpp:38
virtual bool boolean() const
Cast result object to a boolean.
Definition: XStringBase.hpp:40
MemoryManagerType & getMemoryManager() const
Definition: XStringBase.hpp:56
virtual const XalanDOMString & getTypeString() const =0
Given a request type, return the equivalent string.
A SAX-based formatter interface for the XSL processor.
Definition: FormatterListener.hpp:62
virtual double num() const
Cast result object to a number.
Definition: XPathEnvSupport.hpp:62
Class to hold XPath return types.
Definition: XObject.hpp:61
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.
#define XALAN_XPATH_EXPORT
Definition: XPathDefinitions.hpp:33
XObject ParentType
Definition: XStringBase.hpp:44

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