## Xalan-C++ API Documentation

### The Xalan C++ XSLT Processor Version 1.9

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             MemoryManagerType&      theManager);
    00049
    00056     XToken(
    00057             double                  theNumber,
    00058             const XalanDOMString&   theString);
    00059
    00060     XToken(const XToken&    theSource);
    00061
    00062     virtual
    00063     ~XToken();
    00064
    00065     virtual const XalanDOMString&
    00066     getTypeString() const;
    00067
    00068     virtual double
    00069     num() const;
    00070
    00071     virtual bool
    00072     boolean() const;
    00073
    00074     virtual const XalanDOMString&
    00075     str() const;
    00076
    00077     virtual void
    00078     str(
    00079             FormatterListener&  formatterListener,
    00080             MemberFunctionPtr   function) const;
    00081
    00082     virtual void
    00083     str(XalanDOMString& theBuffer) const;
    00084
    00085     virtual double
    00086     stringLength() const;
    00087
    00088     virtual void
    00089     ProcessXObjectTypeCallback(XObjectTypeCallback&     theCallbackObject);
    00090
    00091     virtual void
    00092     ProcessXObjectTypeCallback(XObjectTypeCallback&     theCallbackObject) const;
    00093
    00094     XToken&
    00095     operator=(const XToken&     theRHS)
    00096     {
    00097         m_stringValue = theRHS.m_stringValue;
    00098
    00099         m_numberValue = theRHS.m_numberValue;
    00100
    00101         return *this;
    00102     }
    00103
    00109     void
    00110     set(const XalanDOMString&   theString,
    00111         MemoryManagerType& theManager);
    00112
    00119     void
    00120     set(
    00121             double                  theNumber,
    00122             const XalanDOMString&   theString,
    00123             MemoryManagerType&      theManager);
    00124
    00125 protected:
    00126
    00127     virtual void
    00128     referenced();
    00129
    00130     virtual void
    00131     dereferenced();
    00132
    00133 private:
    00134
    00135     // Not defined...
    00136     bool
    00137     operator==(const XToken&) const;
    00138
    00139     // Data members...
    00140     const XalanDOMString*   m_stringValue;
    00141
    00142     double                  m_numberValue;
    00143
    00144     bool                    m_isString;
    00145 };
    00146
    00147
    00148
    00149 XALAN_CPP_NAMESPACE_END
    00150
    00151
    00152
    00153 #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.9 Copyright © 1999-2004 The Apache Software Foundation. All Rights Reserved.