Xalan-C++ API Reference 1.12.0
XStringCached.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(XSTRINGCACHED_HEADER_GUARD_1357924680)
19#define XSTRINGCACHED_HEADER_GUARD_1357924680
20
21
22
23// Base header file. Must be first.
25
26
27
28// Base class header file.
30
31
32
34
35
36
37namespace XALAN_CPP_NAMESPACE {
38
39
40
42{
43public:
44
46
47 /**
48 * Create a string XObject from a cached string.
49 *
50 * @param theValue value used to create object
51 */
54 MemoryManager& theManager);
55
57 const XStringCached& source,
58 MemoryManager& theManager);
59
60 virtual
62
63
64 // These methods are inherited from XObject ...
65
66 virtual const XalanDOMString&
68
69 virtual const XalanDOMString&
70 str() const;
71
72 virtual void
76 MemberFunctionPtr function) const;
77
78 virtual void
81 MemberFunctionPtr function) const;
82
83 virtual void
87
88 virtual void
90
91 virtual double
93
94protected:
95
96 virtual eObjectType
97 getRealType() const;
98
99private:
100
101 //Not implemented
102 XStringCached(const XStringCached& source);
103
105
106 const GetCachedString m_value;
107};
108
109
110
111}
112
113
114
115#endif // XSTRINGCACHED_HEADER_GUARD_1357924680
#define XALAN_XPATH_EXPORT
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
A SAX-based formatter interface for the XSL processor.
eObjectType
Enumeration of possible object types.
Definition XObject.hpp:74
XStringCached(const XStringCached &source, MemoryManager &theManager)
virtual const XalanDOMString & str() const
Cast result object to a string.
virtual void str(XPathExecutionContext &executionContext, FormatterListener &formatterListener, MemberFunctionPtr function) const
Send the string value to a FormatterListener instance.
virtual void str(XalanDOMString &theBuffer) const
Append the string value directly a string.
virtual void str(XPathExecutionContext &executionContext, XalanDOMString &theBuffer) const
Append the string value directly a string.
virtual void str(FormatterListener &formatterListener, MemberFunctionPtr function) const
Send the string value to a FormatterListener instance.
virtual const XalanDOMString & str(XPathExecutionContext &executionContext) const
Cast result object to a string.
XStringCached(GetCachedString &val, MemoryManager &theManager)
Create a string XObject from a cached string.
virtual double stringLength(XPathExecutionContext &executionContext) const
Get the length of the string value of the instance.
virtual eObjectType getRealType() const
Tell what kind of class this is.