/* * Copyright (c) 2001, DecisionSoft Limited All rights reserved. * Please see LICENSE.TXT for more information. */ /* xf:max(anyAtomicType* $srcval) => anyAtomicType? xf:max(anyAtomicType* $srcval, string $collationLiteral) => anyAtomicType? */ #ifndef _FUNCTIONMAX_HPP #define _FUNCTIONMAX_HPP #include #include class PATHAN_EXPORT FunctionMax : public AggregateFunction { public: static const XMLCh name[]; ///Constructor. Sets arg def to NOT_OPTIONAL. FunctionMax(const VectorOfDataItems &args, XPath2MemoryManager* memMgr); /** Returns the maximum value from the given sequence. **/ Sequence collapseTreeInternal(DynamicContext* context, int flags=0) const; }; #endif // _FUNCTIONMAX_HPP