Xalan-C++ API Reference  1.12.0
XTokenStringAdapter.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(XTOKENSTRINGADAPTER_HEADER_GUARD_1357924680)
19 #define XTOKENSTRINGADAPTER_HEADER_GUARD_1357924680
20 
21 
22 
23 // Base header file. Must be first.
25 
26 
27 
29 
30 
31 
32 // Base class header file.
34 
35 
36 
37 namespace XALAN_CPP_NAMESPACE {
38 
39 
40 
41 class XToken;
42 
43 
44 
46 {
47 public:
48 
49  /**
50  * Create an XTokenStringAdapter from an XToken.
51  *
52  * @param theXToken The XToken instance to adapt
53  */
55  const XToken& theToken,
56  MemoryManager& theManager);
57 
59  const XTokenStringAdapter& source,
60  MemoryManager& theManager);
61 
62  virtual
64 
65  // These methods are inherited from XObject ...
66 
67  virtual double
68  num(XPathExecutionContext& executionContext) const;
69 
70  virtual double
71  num() const;
72 
73  virtual const XalanDOMString&
74  str(XPathExecutionContext& executionContext) const;
75 
76  virtual const XalanDOMString&
77  str() const;
78 
79  virtual void
80  str(
81  XPathExecutionContext& executionContext,
82  FormatterListener& formatterListener,
83  MemberFunctionPtr function) const;
84 
85  virtual void
86  str(
87  FormatterListener& formatterListener,
88  MemberFunctionPtr function) const;
89 
90  virtual void
91  str(
92  XPathExecutionContext& executionContext,
93  XalanDOMString& theBuffer) const;
94 
95  virtual void
96  str(XalanDOMString& theBuffer) const;
97 
98  virtual double
99  stringLength(XPathExecutionContext& executionContext) const;
100 
101 protected:
102 
103  virtual eObjectType
104  getRealType() const;
105 
106 private:
107 
108  // Not implemented
110 
112 
113  // XToken instance that we're adapting...
114  const XToken& m_value;
115 };
116 
117 
118 
119 }
120 
121 
122 
123 #endif // XTOKENSTRINGADAPTER_HEADER_GUARD_1357924680
XALAN_CPP_NAMESPACE
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
Definition: XalanVersion.hpp:76
XalanDOMString.hpp
xalanc::XTokenStringAdapter
Definition: XTokenStringAdapter.hpp:45
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::XToken
Definition: XToken.hpp:41
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