/* * Copyright (c) 2001, DecisionSoft Limited All rights reserved. * Please see LICENSE.TXT for more information. */ #ifndef _FUNCTIONGETHOURSFROMTIME_HPP #define _FUNCTIONGETHOURSFROMTIME_HPP #include #include /** * Getter function for hours component of time. * * xf:hours-from-time(time? $srcval) => integer? */ class PATHAN_EXPORT FunctionHoursFromTime : public DataItemFunction { public: static const XMLCh name[]; /** * Constructor */ FunctionHoursFromTime(const VectorOfDataItems &args, XPath2MemoryManager* memMgr); DataItem* staticResolution(StaticContext *context, StaticResolutionContext *src); /** * Returns the integer representing the hours in the value of $srcval */ Sequence collapseTreeInternal(DynamicContext* context, int flags=0) const; }; #endif // _FUNCTIONGETHOURSFROMTIME_HPP