XQuilla/include/xqilla/ast/NumericFunction.hpp

34 lines
1.1 KiB
C++
Raw Normal View History

2020-02-17 22:05:20 +01:00
/*
* Copyright (c) 2001-2006
* DecisionSoft Limited. All rights reserved.
* Copyright (c) 2004-2006
* Progress Software Corporation. All rights reserved.
* Copyright (c) 2004-2006
* Oracle. All rights reserved.
*
* See the file LICENSE for redistribution information.
*
* $Id: NumericFunction.hpp,v 1.12 2006/11/01 16:37:11 jpcs Exp $
*/
#ifndef _NUMERICFUNCTION_HPP
#define _NUMERICFUNCTION_HPP
#include <xqilla/ast/ConstantFoldingFunction.hpp>
/** Virtual interface class for functions */
class XQILLA_API NumericFunction : public ConstantFoldingFunction
{
public:
/// constructor, checks for the correct number of arguments.
NumericFunction(const XMLCh* name, unsigned int argsFrom, unsigned int argsTo, const char* paramDecl, const VectorOfASTNodes &args, XPath2MemoryManager* memMgr);
virtual ASTNode* staticResolution(StaticContext *context);
virtual ASTNode *staticTyping(StaticContext *context);
protected:
Numeric::Ptr getNumericParam(unsigned int number, DynamicContext *context, int flags=0) const;
};
#endif // _NUMERICFUNCTION_HPP