16 #ifndef ZORBA_XQUERY_API_H
17 #define ZORBA_XQUERY_API_H
21 #include <zorba/config.h>
68 setFileName(
const String&) = 0;
94 resetDiagnosticHandler() = 0;
106 setTimeout(
long aTimeout = -1) = 0;
118 execute(std::ostream& aOutStream,
134 execute(std::ostream& aOutStream,
205 getDynamicContext()
const = 0;
223 getStaticContext()
const = 0;
232 parse(std::istream& aQuery) = 0;
242 compile(
const String& aQuery) = 0;
277 compile(
const String& aQuery,
292 compile(std::istream& aQuery,
306 printPlan(std::ostream& aStream,
bool aDotFormat =
false)
const = 0;
317 isUpdating()
const = 0;
328 isSequential()
const = 0;
355 saveExecutionPlan(std::ostream &
os,
408 isClosed()
const = 0;
437 #ifdef ZORBA_WITH_DEBUGGER
442 setDebugMode(
bool aDebugMode) = 0;
450 isDebugMode()
const = 0;
459 setProfileName( std::string aProfileName ) = 0;
467 getProfileName()
const = 0;
469 #ifdef ZORBA_WITH_DEBUGGER
485 const std::string& host,
486 unsigned short port) = 0;
507 std::ostream& outStream,
508 Zorba_SerializerOptions& serOptions,
509 const std::string& host,
510 unsigned short port) = 0;
515 std::ostream& outStream,
518 Zorba_SerializerOptions& serOptions,
519 const std::string& host,
520 unsigned short port) = 0;
535 getStaticCollectionManager()
const = 0;
543 getExternalVariables(
Iterator_t& aVarsIter)
const = 0;
549 getDocLoadingUserTime()
const = 0;
555 getDocLoadingTime()
const = 0;
577 std::ostream&
operator<< (std::ostream&
os, XQuery* aQuery);
zorba::SmartPtr< XQuery > XQuery_t
Instances of the class StaticContext contain the information that is available at the time the query ...
Set of hints that can be passed to the query compiler.
Zorba_SerializerOptions_t *(* itemHandler)(void *aUserData)
When registered with an XQuery object, a DiagnosticHandler handles all exceptions and warnings that o...
Using the StaticCollectionManager one can retrieve information about statically declared collections ...
virtual ~XQuery()
Destructor that destroys this XQuery object.
Receive notification of events that result from serializing a query result as XML.
ZORBA_DLL_PUBLIC std::ostream & operator<<(std::ostream &os, const QueryLocation &aQuery)
Instances of the class DynamicContext contain the information that is available at the time the query...
Zorba_binary_plan_format_t
This class is the representation of an XQuery in the Zorba engine.
struct Zorba_SerializerOptions Zorba_SerializerOptions_t
Zorba_save_plan_options_t