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 
37 namespace XALAN_CPP_NAMESPACE {
38 
39 
40 
42 {
43 public:
44 
46 
47  /**
48  * Create a string XObject from a cached string.
49  *
50  * @param theValue value used to create object
51  */
53  GetCachedString& val,
54  MemoryManager& theManager);
55 
57  const XStringCached& source,
58  MemoryManager& theManager);
59 
60  virtual
61  ~XStringCached();
62 
63 
64  // These methods are inherited from XObject ...
65 
66  virtual const XalanDOMString&
67  str(XPathExecutionContext& executionContext) const;
68 
69  virtual const XalanDOMString&
70  str() const;
71 
72  virtual void
73  str(
74  XPathExecutionContext& executionContext,
75  FormatterListener& formatterListener,
76  MemberFunctionPtr function) const;
77 
78  virtual void
79  str(
80  FormatterListener& formatterListener,
81  MemberFunctionPtr function) const;
82 
83  virtual void
84  str(
85  XPathExecutionContext& executionContext,
86  XalanDOMString& theBuffer) const;
87 
88  virtual void
89  str(XalanDOMString& theBuffer) const;
90 
91  virtual double
92  stringLength(XPathExecutionContext& executionContext) const;
93 
94 protected:
95 
96  virtual eObjectType
97  getRealType() const;
98 
99 private:
100 
101  //Not implemented
102  XStringCached(const XStringCached& source);
103 
104  XStringCached();
105 
106  const GetCachedString m_value;
107 };
108 
109 
110 
111 }
112 
113 
114 
115 #endif // XSTRINGCACHED_HEADER_GUARD_1357924680
XALAN_CPP_NAMESPACE
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
Definition: XalanVersion.hpp:76
XALAN_XPATH_EXPORT
#define XALAN_XPATH_EXPORT
Definition: XPathDefinitions.hpp:35
xalanc::XObject::eObjectType
eObjectType
Enumeration of possible object types.
Definition: XObject.hpp:74
xalanc::XStringCached
Definition: XStringCached.hpp:41
XStringBase.hpp
xalanc::XStringCached::ParentType
XStringBase ParentType
Definition: XStringCached.hpp:45
XPathExecutionContext.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