/* * Copyright (c) 2001, DecisionSoft Limited All rights reserved. * Please see LICENSE.TXT for more information. */ #ifndef _DATAITEMCONTEXTITEM_HPP #define _DATAITEMCONTEXTITEM_HPP #include #include /** Returns the context item. Raises [err:XP0002] if the context item is null. */ class PATHAN_EXPORT DataItemContextItem : public DataItemImpl { public: DataItemContextItem(XPath2MemoryManager* memMgr); ~DataItemContextItem(); /** * Called during static analysis of expression to determine is statically * correct. If not an appropriate error is thrown. */ virtual DataItem* staticResolution(StaticContext *context, StaticResolutionContext *src); virtual Sequence collapseTreeInternal(DynamicContext* context, int flags=0) const; }; #endif