20 #ifndef _DYNAMICCONTEXT_HPP
21 #define _DYNAMICCONTEXT_HPP
43 virtual DynamicContext *createModuleDynamicContext(
const DynamicContext* moduleCtx, XERCES_CPP_NAMESPACE_QUALIFIER MemoryManager *memMgr =
44 XERCES_CPP_NAMESPACE_QUALIFIER XMLPlatformUtils::fgMemoryManager)
const = 0;
47 virtual void clearDynamicContext() = 0;
50 virtual Item::Ptr getContextItem()
const = 0;
52 virtual void setContextItem(
const Item::Ptr &item) = 0;
55 virtual size_t getContextPosition()
const = 0;
57 virtual void setContextPosition(
size_t pos) = 0;
60 virtual size_t getContextSize()
const = 0;
62 virtual void setContextSize(
size_t size) = 0;
67 virtual void setVariableStore(
const VariableStore *store) = 0;
69 virtual const VariableStore* getGlobalVariableStore()
const = 0;
71 virtual void setGlobalVariableStore(
const VariableStore *store) = 0;
73 virtual void setExternalVariable(
const XMLCh *namespaceURI,
const XMLCh *name,
const Result &value) = 0;
75 virtual void setExternalVariable(
const XMLCh *qname,
const Result &value) = 0;
83 virtual time_t getCurrentTime()
const = 0;
85 virtual void setCurrentTime(time_t newTime) = 0;
108 virtual void registerURIResolver(
URIResolver *resolver,
bool adopt) = 0;
110 virtual URIResolver *getDefaultURIResolver()
const = 0;
112 virtual void setDefaultURIResolver(
URIResolver *resolver,
bool adopt) = 0;
120 virtual void setStackFrame(
const StackFrame *frame) = 0;
122 virtual const StackFrame *getStackFrame()
const = 0;
125 virtual Node::Ptr parseDocument(XERCES_CPP_NAMESPACE_QUALIFIER InputSource &srcToUse,
126 const LocationInfo *location = 0,
const QueryPathNode *projection = 0) = 0;
130 const QueryPathNode *projection = 0) = 0;
134 const QueryPathNode *projection = 0) = 0;
136 virtual Sequence resolveDefaultCollection(
const QueryPathNode *projection = 0) = 0;
140 virtual bool putDocument(
const Node::Ptr &document,
const XMLCh *uri) = 0;
151 virtual void testInterrupt()
const = 0;
virtual ~DynamicContext()
Definition: DynamicContext.hpp:41
This is an abstract class used to resolve URIs in different ways.
Definition: URIResolver.hpp:37
A class that represents an item in a query call stack.
Definition: StackFrame.hpp:45
Definition: SequenceBuilder.hpp:31
The parse time static context interface.
Definition: StaticContext.hpp:57
A scoped pointer wrapper for the lazily evaluated query result.
Definition: Result.hpp:37
A class used to listen for debugging information.
Definition: DebugListener.hpp:34
Definition: UpdateFactory.hpp:32
The execution time dynamic context interface.
Definition: DynamicContext.hpp:38
The pure virtual base class for accessing regular expression group values at runtime.
Definition: RegexGroupStore.hpp:30
The pure virtual base class for accessing variables at runtime.
Definition: VariableStore.hpp:31
A class that gives records a location in the query.
Definition: LocationInfo.hpp:29
An eagerly evaluated result of a query execution.
Definition: Sequence.hpp:39