00001 /* 00002 * Licensed to the Apache Software Foundation (ASF) under one 00003 * or more contributor license agreements. See the NOTICE file 00004 * distributed with this work for additional information 00005 * regarding copyright ownership. The ASF licenses this file 00006 * to you under the Apache License, Version 2.0 (the "License"); 00007 * you may not use this file except in compliance with the License. 00008 * You may obtain a copy of the License at 00009 * 00010 * http://www.apache.org/licenses/LICENSE-2.0 00011 * 00012 * Unless required by applicable law or agreed to in writing, software 00013 * distributed under the License is distributed on an "AS IS" BASIS, 00014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00015 * See the License for the specific language governing permissions and 00016 * limitations under the License. 00017 */ 00018 #if !defined(XSTRING_HEADER_GUARD_1357924680) 00019 #define XSTRING_HEADER_GUARD_1357924680 00020 00021 00022 00023 // Base header file. Must be first. 00024 #include <xalanc/XPath/XPathDefinitions.hpp> 00025 00026 00027 00028 // Base class header file. 00029 #include <xalanc/XPath/XStringBase.hpp> 00030 00031 00032 00033 XALAN_CPP_NAMESPACE_BEGIN 00034 00035 00036 00037 class XALAN_XPATH_EXPORT XString : public XStringBase 00038 { 00039 public: 00040 00041 typedef XStringBase ParentType; 00042 00043 /** 00044 * Construct an XString object from a string. 00045 * 00046 * @param val The string value to use. 00047 * @param theMemoryManager The MemoryManager instance. 00048 */ 00049 XString( 00050 const XalanDOMString& val, 00051 MemoryManager& theManager); 00052 00053 /** 00054 * Construct an XString object from a string. 00055 * 00056 * @param val The string value to use. 00057 * @param theMemoryManager The MemoryManager instance. 00058 */ 00059 XString( 00060 const XalanDOMChar* val, 00061 MemoryManager& theManager); 00062 00063 /** 00064 * Construct an XString object from a string. 00065 * 00066 * @param val The string value to use. 00067 * @param len The length of the string value. 00068 * @param theMemoryManager The MemoryManager instance. 00069 */ 00070 XString( 00071 const XalanDOMChar* val, 00072 XalanSize_t len, 00073 MemoryManager& theManager); 00074 00075 /** 00076 * Construct an XString object from another string. 00077 * 00078 * @param source The source XString. 00079 * @param theMemoryManager The MemoryManager instance. 00080 */ 00081 XString( 00082 const XString& source, 00083 MemoryManager& theManager); 00084 00085 virtual 00086 ~XString(); 00087 00088 void 00089 set(const XalanDOMString& theString) 00090 { 00091 m_value = theString; 00092 } 00093 00094 // These methods are inherited from XObject ... 00095 00096 virtual const XalanDOMString& 00097 str(XPathExecutionContext& executionContext) const; 00098 00099 virtual const XalanDOMString& 00100 str() const; 00101 00102 virtual void 00103 str( 00104 XPathExecutionContext& executionContext, 00105 FormatterListener& formatterListener, 00106 MemberFunctionPtr function) const; 00107 00108 virtual void 00109 str( 00110 FormatterListener& formatterListener, 00111 MemberFunctionPtr function) const; 00112 00113 virtual void 00114 str( 00115 XPathExecutionContext& executionContext, 00116 XalanDOMString& theBuffer) const; 00117 00118 virtual void 00119 str(XalanDOMString& theBuffer) const; 00120 00121 virtual double 00122 stringLength(XPathExecutionContext& executionContext) const; 00123 00124 private: 00125 00126 //not implemented 00127 XString(const XString& source); 00128 00129 XalanDOMString m_value; 00130 }; 00131 00132 00133 00134 XALAN_CPP_NAMESPACE_END 00135 00136 00137 00138 #endif // XSTRING_HEADER_GUARD_1357924680
Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.
Xalan-C++ XSLT Processor Version 1.11 |
|