Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.8

Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

XToken.hpp

Go to the documentation of this file.
00001 /* 00002 * Copyright 1999-2004 The Apache Software Foundation. 00003 * 00004 * Licensed under the Apache License, Version 2.0 (the "License"); 00005 * you may not use this file except in compliance with the License. 00006 * You may obtain a copy of the License at 00007 * 00008 * http://www.apache.org/licenses/LICENSE-2.0 00009 * 00010 * Unless required by applicable law or agreed to in writing, software 00011 * distributed under the License is distributed on an "AS IS" BASIS, 00012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 * See the License for the specific language governing permissions and 00014 * limitations under the License. 00015 */ 00016 #if !defined(XTOKEN_HEADER_GUARD_1357924680) 00017 #define XTOKEN_HEADER_GUARD_1357924680 00018 00019 00020 00021 // Base header file. Must be first. 00022 #include <xalanc/XPath/XPathDefinitions.hpp> 00023 00024 00025 00026 // Base class... 00027 #include <xalanc/XPath/XObject.hpp> 00028 00029 00030 00031 XALAN_CPP_NAMESPACE_BEGIN 00032 00033 00034 00035 class XALAN_XPATH_EXPORT XToken : public XObject 00036 { 00037 public: 00038 00039 XToken(); 00040 00046 explicit 00047 XToken(const XalanDOMString& theString); 00048 00055 XToken( 00056 double theNumber, 00057 const XalanDOMString& theString); 00058 00059 XToken(const XToken& theSource); 00060 00061 virtual 00062 ~XToken(); 00063 00064 #if defined(XALAN_NO_COVARIANT_RETURN_TYPE) 00065 virtual XObject* 00066 #else 00067 virtual XToken* 00068 #endif 00069 clone(void* theAddress = 0) const; 00070 00071 virtual XalanDOMString 00072 getTypeString() const; 00073 00074 virtual double 00075 num() const; 00076 00077 virtual bool 00078 boolean() const; 00079 00080 virtual const XalanDOMString& 00081 str() const; 00082 00083 virtual void 00084 str( 00085 FormatterListener& formatterListener, 00086 MemberFunctionPtr function) const; 00087 00088 virtual void 00089 str(XalanDOMString& theBuffer) const; 00090 00091 virtual double 00092 stringLength() const; 00093 00094 virtual void 00095 ProcessXObjectTypeCallback(XObjectTypeCallback& theCallbackObject); 00096 00097 virtual void 00098 ProcessXObjectTypeCallback(XObjectTypeCallback& theCallbackObject) const; 00099 00100 XToken& 00101 operator=(const XToken& theRHS) 00102 { 00103 m_stringValue = theRHS.m_stringValue; 00104 00105 m_numberValue = theRHS.m_numberValue; 00106 00107 return *this; 00108 } 00109 00115 void 00116 set(const XalanDOMString& theString); 00117 00124 void 00125 set( 00126 double theNumber, 00127 const XalanDOMString& theString); 00128 00129 protected: 00130 00131 virtual void 00132 referenced(); 00133 00134 virtual void 00135 dereferenced(); 00136 00137 private: 00138 00139 // Not defined... 00140 bool 00141 operator==(const XToken&) const; 00142 00143 // Data members... 00144 const XalanDOMString* m_stringValue; 00145 00146 double m_numberValue; 00147 00148 bool m_isString; 00149 }; 00150 00151 00152 00153 XALAN_CPP_NAMESPACE_END 00154 00155 00156 00157 #endif // XTOKEN_HEADER_GUARD_1357924680

Interpreting class diagrams

Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.

Xalan-C++ XSLT Processor Version 1.8
Copyright © 1999-2004 The Apache Software Foundation. All Rights Reserved.