16 #ifndef API_DYNAMIC_CONTEXT_H
17 #define API_DYNAMIC_CONTEXT_H
32 zorba::DynamicContext* theContext;
81 bool getVariable (
const std::string& aNamespace,
const std::string& aLocalname,
Item& aItem,
Iterator& aIterator);
137 bool setVariable (
const std::string& aNamespace,
const std::string& aLocalname,
Iterator& aIter);
Item getCurrentDateTime()
Retrieve the dateTime Item used at the time the query is executed (see setCurrentDateTime()).
DynamicContext(zorba::DynamicContext *aCtx)
bool getContextItem(Item &aItem)
bool setVariable(const std::string &aNamespace, const std::string &aLocalname, Iterator &aIter)
Defines the external variable identified by an expanded QName and assigns it the sequence that is ret...
Item getDefaultCollection()
Return the value of the default collection that is used when calling the fn:collection function witho...
The Zorba Item interface.
DynamicContext(const DynamicContext &aCtx)
bool setContextItem(Item &aItem)
Defines the context item.
int getImplicitTimezone()
Retrieve the implicit timezone used in comparisons or arithmetic operations of date, time, or dateTime values.
bool setCurrentDateTime(Item &aDateTimeItem)
Defines the value of the current date time that can be accessed by the fn:current-dateTime() function...
Interface for an Iterator over an instance of the XML Data Model (i.e., a sequence of items)...
Instances of the class DynamicContext contain the information that is available at the time the query...
bool setImplicitTimezone(int aTimezone)
Defines the variable of the implicit timezone to be used when a date, time, or dateTime value that do...
bool setDefaultCollection(Item &aCollectionUri)
Defines the value of the default collection that is used when calling the fn:collection function with...
bool getVariable(const std::string &aNamespace, const std::string &aLocalname, Item &aItem, Iterator &aIterator)
Returns the current value of an external variable.