Xalan-C++ API Reference  1.12.0
XStringAdapter.hpp
Go to the documentation of this file.
1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one
3  * or more contributor license agreements. See the NOTICE file
4  * distributed with this work for additional information
5  * regarding copyright ownership. The ASF licenses this file
6  * to you under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */
18 #if !defined(XSTRINGADAPTER_HEADER_GUARD_1357924680)
19 #define XSTRINGADAPTER_HEADER_GUARD_1357924680
20 
21 
22 
23 // Base header file. Must be first.
25 
26 
27 
28 // Base class header file.
30 
31 
32 
33 namespace XALAN_CPP_NAMESPACE {
34 
35 
36 
38 {
39 public:
40 
42 
43  /**
44  * Create a string XObject that will adapt another XObject to
45  * behave like a string. The XObject holds a reference to the
46  * other XObject.
47  *
48  * @param theValue value used to create object
49  * @param theManager The MemoryManager instance to use
50  * @param theExecutionContext The current XPathExecutionContext
51  */
53  const XObjectPtr& val,
54  MemoryManager& theManager,
55  XPathExecutionContext& theExecutionContext);
56 
58  const XStringAdapter& source,
59  MemoryManager& theManager);
60 
61  virtual
62  ~XStringAdapter();
63 
64 
65  // These methods are inherited from XObject ...
66 
67  virtual const XalanDOMString&
68  str(XPathExecutionContext& executionContext) const;
69 
70  virtual const XalanDOMString&
71  str() const;
72 
73  virtual void
74  str(
75  XPathExecutionContext& executionContext,
76  FormatterListener& formatterListener,
77  MemberFunctionPtr function) const;
78 
79  virtual void
80  str(
81  FormatterListener& formatterListener,
82  MemberFunctionPtr function) const;
83 
84  virtual void
85  str(
86  XPathExecutionContext& executionContext,
87  XalanDOMString& theBuffer) const;
88 
89  virtual void
90  str(XalanDOMString& theBuffer) const;
91 
92  virtual double
93  stringLength(XPathExecutionContext& executionContext) const;
94 
95 protected:
96 
97  virtual eObjectType
98  getRealType() const;
99 
100 private:
101 
102  // Not implemented
103  XStringAdapter(const XStringAdapter& source);
104 
105  XStringAdapter();
106 
107  const XObjectPtr m_value;
108 };
109 
110 
111 
112 }
113 
114 
115 
116 #endif // XSTRINGADAPTER_HEADER_GUARD_1357924680
XALAN_CPP_NAMESPACE
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
Definition: XalanVersion.hpp:76
xalanc::XStringAdapter::ParentType
XStringBase ParentType
Definition: XStringAdapter.hpp:41
XALAN_XPATH_EXPORT
#define XALAN_XPATH_EXPORT
Definition: XPathDefinitions.hpp:35
xalanc::XObjectPtr
Class to hold XObjectPtr return types.
Definition: XObject.hpp:883
xalanc::XObject::eObjectType
eObjectType
Enumeration of possible object types.
Definition: XObject.hpp:74
xalanc::XStringAdapter
Definition: XStringAdapter.hpp:37
XStringBase.hpp
xalanc::XStringBase
Definition: XStringBase.hpp:42
xalanc::FormatterListener
A SAX-based formatter interface for the XSL processor.
Definition: FormatterListener.hpp:56
xalanc::XPathExecutionContext
Definition: XPathExecutionContext.hpp:82
xalanc::XalanDOMString
Definition: XalanDOMString.hpp:45
XPathDefinitions.hpp