blob: 07d6157528970abd4f5b7355a17dc79b32f000ab [file] [log] [blame]
/*
* Copyright 1999-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#if !defined(XNUMBERBASE_HEADER_GUARD_1357924680)
#define XNUMBERBASE_HEADER_GUARD_1357924680
// Base header file. Must be first.
#include <xalanc/XPath/XPathDefinitions.hpp>
#include <xalanc/XalanDOM/XalanDOMString.hpp>
// Base class header file.
#include <xalanc/XPath/XObject.hpp>
XALAN_CPP_NAMESPACE_BEGIN
class XALAN_XPATH_EXPORT XNumberBase : public XObject
{
public:
typedef XObject ParentType;
XNumberBase(const XNumberBase& source);
virtual
~XNumberBase();
// These methods are inherited from XObject ...
virtual const XalanDOMString&
getTypeString() const;
virtual double
num() const = 0;
virtual bool
boolean() const;
virtual const XalanDOMString&
str() const = 0;
virtual void
str(
FormatterListener& formatterListener,
MemberFunctionPtr function) const = 0;
#if !defined(XALAN_NO_USING_DECLARATION)
using ParentType::str;
#endif
virtual double
stringLength() const = 0;
virtual void
ProcessXObjectTypeCallback(XObjectTypeCallback& theCallbackObject);
virtual void
ProcessXObjectTypeCallback(XObjectTypeCallback& theCallbackObject) const;
protected:
/**
* Constructor for derived classes
*/
explicit
XNumberBase();
private:
};
XALAN_CPP_NAMESPACE_END
#endif // XNUMBERBASE_HEADER_GUARD_1357924680