Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

XString.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(XSTRING_HEADER_GUARD_1357924680)
17 #define XSTRING_HEADER_GUARD_1357924680
18 
19 
20 
21 // Base header file. Must be first.
23 
24 
25 
26 // Base class header file.
28 
29 
30 
31 XALAN_CPP_NAMESPACE_BEGIN
32 
33 
34 
36 {
37 public:
38 
40 
46  XString(const XalanDOMString& val,
47  MemoryManagerType& theManager);
48 
49  XString(const XalanDOMChar* val,
50  MemoryManagerType& theManager);
51 
52  XString(
53  const XalanDOMChar* val,
54  unsigned int len,
55  MemoryManagerType& theManager);
56 
57  XString(const XString& source, MemoryManagerType& theManager);
58 
59  virtual
60  ~XString();
61 
62  void
63  set(const XalanDOMString& theString)
64  {
65  m_value = theString;
66  }
67 
68  // These methods are inherited from XObject ...
69 
70  virtual const XalanDOMString&
71  str() const;
72 
73  virtual void
74  str(
75  FormatterListener& formatterListener,
76  MemberFunctionPtr function) const;
77 
78 #if !defined(XALAN_NO_USING_DECLARATION)
79  using ParentType::str;
80 #endif
81 
82  virtual double
83  stringLength() const;
84 
85 private:
86  //not implemented
87  XString(const XString& source);
88 
89  XalanDOMString m_value;
90 };
91 
92 
93 
94 XALAN_CPP_NAMESPACE_END
95 
96 
97 
98 #endif // XSTRING_HEADER_GUARD_1357924680
XALAN_CPP_NAMESPACE_BEGIN typedef XERCES_CPP_NAMESPACE_QUALIFIER MemoryManager MemoryManagerType
Definition: XalanMemoryManagement.hpp:39
void set(const XalanDOMString &theString)
Definition: XString.hpp:63
XStringBase ParentType
Definition: XString.hpp:39
Definition: XStringBase.hpp:40
virtual double stringLength() const =0
Get the length of the string value of the instance.
Definition: XString.hpp:35
A SAX-based formatter interface for the XSL processor.
Definition: FormatterListener.hpp:62
Definition: XalanDOMString.hpp:42
virtual const XalanDOMString & str() const
Cast result object to a string.
#define XALAN_XPATH_EXPORT
Definition: XPathDefinitions.hpp:33
virtual const XalanDOMString & str() const =0
Cast result object to a string.

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