916 lines
51 KiB
HTML
916 lines
51 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
|
|
<title>XQilla Simple API Documentation</title>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
|
<link href="tabs.css" rel="stylesheet" type="text/css">
|
|
</head><body>
|
|
<a style="float:right;" href="http://sourceforge.net/projects/xqilla"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=152021&type=2" border="0" alt="SourceForge.net Logo" /></a>
|
|
<!-- Generated by Doxygen 1.5.5 -->
|
|
<div class="navigation" id="top">
|
|
<div class="tabs">
|
|
<ul>
|
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
|
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
|
<li class="current"><a href="classes.html"><span>Classes</span></a></li>
|
|
<li><a href="files.html"><span>Files</span></a></li>
|
|
<li><a href="examples.html"><span>Examples</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="tabs">
|
|
<ul>
|
|
<li><a href="classes.html"><span>Alphabetical List</span></a></li>
|
|
<li><a href="annotated.html"><span>Class List</span></a></li>
|
|
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
|
|
<li><a href="functions.html"><span>Class Members</span></a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="contents">
|
|
<h1>XQQuery Class Reference</h1><!-- doxytag: class="XQQuery" --><!-- doxytag: inherits="xercesc::XMemory" -->Encapsulates a query expression.
|
|
<a href="#_details">More...</a>
|
|
<p>
|
|
<code>#include <<a class="el" href="XQQuery_8hpp-source.html">XQQuery.hpp</a>></code>
|
|
<p>
|
|
<div class="dynheader">
|
|
Inheritance diagram for XQQuery:</div>
|
|
<div class="dynsection">
|
|
<p><center><img src="classXQQuery__inherit__graph.png" border="0" usemap="#XQQuery__inherit__map" alt="Inheritance graph"></center>
|
|
<map name="XQQuery__inherit__map">
|
|
<area shape="rect" href="classxercesc_1_1XMemory.html" title="This class makes it possible to override the C++ memory management by adding new/delete..." alt="" coords="5,7,136,31"></map>
|
|
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>
|
|
|
|
<p>
|
|
<a href="classXQQuery-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
|
|
<tr><td></td></tr>
|
|
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classXQQuery.html#558d8ab3c8ef625b17229d72c1b80cd9">~XQQuery</a> ()</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#558d8ab3c8ef625b17229d72c1b80cd9"></a><br></td></tr>
|
|
<tr><td colspan="2"><div class="groupHeader">Runtime Methods</div></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classDynamicContext.html">DynamicContext</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classXQQuery.html#37dc848b7f57536fa700bd2be416b1f2">createDynamicContext</a> (<a class="el" href="classxercesc_1_1MemoryManager.html">xercesc::MemoryManager</a> *memMgr=<a class="el" href="classxercesc_1_1XMLPlatformUtils.html#2521473ea52894e9313573d330a264b4">xercesc::XMLPlatformUtils::fgMemoryManager</a>) const </td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a <a class="el" href="classDynamicContext.html" title="The execution time dynamic context interface.">DynamicContext</a> based on the static context used to parse this query. <a href="#37dc848b7f57536fa700bd2be416b1f2"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classResult.html">Result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classXQQuery.html#3a22ddfd9faa4d7fcdf14fd1a802b331">execute</a> (<a class="el" href="classDynamicContext.html">DynamicContext</a> *context) const </td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Executes the query using the given <a class="el" href="classDynamicContext.html" title="The execution time dynamic context interface.">DynamicContext</a>, returning a lazy iterator over the results. <a href="#3a22ddfd9faa4d7fcdf14fd1a802b331"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classResult.html">Result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classXQQuery.html#c32dfd917e525716437d0b5cf22296c5">execute</a> (const <a class="el" href="classRefCountPointer.html">Item::Ptr</a> &contextItem, <a class="el" href="classDynamicContext.html">DynamicContext</a> *context) const </td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Executes the query or stylesheet using the given context item and <a class="el" href="classDynamicContext.html" title="The execution time dynamic context interface.">DynamicContext</a>, returning a lazy iterator over the results. <a href="#c32dfd917e525716437d0b5cf22296c5"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classResult.html">Result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classXQQuery.html#3d1fadbf2bb5295d907cbb3c975f2dda">execute</a> (const XMLCh *templateQName, <a class="el" href="classDynamicContext.html">DynamicContext</a> *context) const </td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Executes the stylesheet starting at the named template using the given <a class="el" href="classDynamicContext.html" title="The execution time dynamic context interface.">DynamicContext</a>, returning a lazy iterator over the results. <a href="#3d1fadbf2bb5295d907cbb3c975f2dda"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classXQQuery.html#b52ee7dfe788ec943aa6be2ed1e5e1eb">execute</a> (<a class="el" href="classEventHandler.html">EventHandler</a> *events, <a class="el" href="classDynamicContext.html">DynamicContext</a> *context) const </td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Executes the query using the given <a class="el" href="classDynamicContext.html" title="The execution time dynamic context interface.">DynamicContext</a>, sending the output of the query to the given <a class="el" href="classEventHandler.html">EventHandler</a>. <a href="#b52ee7dfe788ec943aa6be2ed1e5e1eb"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classXQQuery.html#681062277a849d3ec9c1ded71a4c22dd">execute</a> (<a class="el" href="classEventHandler.html">EventHandler</a> *events, const <a class="el" href="classRefCountPointer.html">Item::Ptr</a> &contextItem, <a class="el" href="classDynamicContext.html">DynamicContext</a> *context) const </td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Executes the query or stylesheet using the given context item and <a class="el" href="classDynamicContext.html" title="The execution time dynamic context interface.">DynamicContext</a>, sending the output of the query to the given <a class="el" href="classEventHandler.html">EventHandler</a>. <a href="#681062277a849d3ec9c1ded71a4c22dd"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classXQQuery.html#944fd2f8b466507994a6e8d9fad1f91a">execute</a> (<a class="el" href="classEventHandler.html">EventHandler</a> *events, const XMLCh *templateQName, <a class="el" href="classDynamicContext.html">DynamicContext</a> *context) const </td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Executes the stylesheet starting at the named template using the given <a class="el" href="classDynamicContext.html" title="The execution time dynamic context interface.">DynamicContext</a>, sending the output of the query to the given <a class="el" href="classEventHandler.html">EventHandler</a>. <a href="#944fd2f8b466507994a6e8d9fad1f91a"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classXQQuery.html#ebb1ab3434751cf96b4f10aabfd48bdd">staticResolution</a> (<a class="el" href="classStaticContext.html">StaticContext</a> *context=0)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Perform static resolution on the query. <a href="#ebb1ab3434751cf96b4f10aabfd48bdd"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classXQQuery.html#3c9aa2a4ecf3e9270049198be975981d">staticTyping</a> (<a class="el" href="classStaticContext.html">StaticContext</a> *context=0, StaticTyper *styper=0)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Perform type calculation and related optimizations. <a href="#3c9aa2a4ecf3e9270049198be975981d"></a><br></td></tr>
|
|
<tr><td colspan="2"><div class="groupHeader">Query Information</div></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">const XMLCh * </td><td class="memItemRight" valign="bottom"><a class="el" href="classXQQuery.html#50438749bfdca396ff857de515585e23">getQueryText</a> () const </td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the expression that was parsed to create this <a class="el" href="classXQQuery.html" title="Encapsulates a query expression.">XQQuery</a> object. <a href="#50438749bfdca396ff857de515585e23"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classXQQuery.html#6d1666c9dd517b08026346d778d50b1e">getQueryPlan</a> () const </td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the query plan as XML. This is designed for debug and informative purposes only. <a href="#6d1666c9dd517b08026346d778d50b1e"></a><br></td></tr>
|
|
<tr><td colspan="2"><div class="groupHeader">Getters and Setters</div></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">ASTNode * </td><td class="memItemRight" valign="bottom"><a class="el" href="classXQQuery.html#9bdf9610f65813fdaf43c1e864deb038">getQueryBody</a> () const </td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the query body as an ASTNode. <a href="#9bdf9610f65813fdaf43c1e864deb038"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classXQQuery.html#23208ecb2a66ea1437e8185dc90fc45b">setQueryBody</a> (ASTNode *query)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set the query body to an ASTNode. <a href="#23208ecb2a66ea1437e8185dc90fc45b"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classXQQuery.html#b876c486d751acb92e6ee62d78c3175a">addFunction</a> (XQUserFunction *fnDef)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Adds an XQUserFunction to the query (also adds it as a template if necessary). <a href="#b876c486d751acb92e6ee62d78c3175a"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="StaticContext_8hpp.html#120407438cc6ede3bc7b57aae806741c">UserFunctions</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classXQQuery.html#51732e054576e453c196b8bdad1582f5">getFunctions</a> () const </td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns a vector of all XQUserFunction objects from the query. <a href="#51732e054576e453c196b8bdad1582f5"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classXQQuery.html#b11bb071fc6a34cc41a09d7a8f7922bb">addVariable</a> (XQGlobalVariable *varDef)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Adds a XQGlobalVariable to the query. <a href="#b11bb071fc6a34cc41a09d7a8f7922bb"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="XQQuery_8hpp.html#9d2d5aa88c009aeb4423578b5665857a">GlobalVariables</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classXQQuery.html#24b830095210a3c4846c82470942fd8a">getVariables</a> () const </td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns a vector of all XQGlobalVariable objects from the query. <a href="#24b830095210a3c4846c82470942fd8a"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="XQQuery_8hpp.html#6bfc1be626a21b5f066df297e669fe9f">ImportedModules</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classXQQuery.html#80b70ab66101dd2e938c942c466399a7">getImportedModules</a> () const </td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns a vector of all XQGlobalVariable objects from the query. <a href="#80b70ab66101dd2e938c942c466399a7"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">const XMLCh * </td><td class="memItemRight" valign="bottom"><a class="el" href="classXQQuery.html#49033a2ed8c0cc7b95b59a0382171f32">getFile</a> () const </td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the name of the file that this query was parsed from. <a href="#49033a2ed8c0cc7b95b59a0382171f32"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classXQQuery.html#a4526a237851b8c144b06010486dc646">setFile</a> (const XMLCh *file)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the name of the file that this query was parsed from. <a href="#a4526a237851b8c144b06010486dc646"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="classDynamicContext.html">DynamicContext</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classXQQuery.html#3a4c85183980a4802bb42fb20369774b">getStaticContext</a> () const </td></tr>
|
|
|
|
<tr><td colspan="2"><div class="groupHeader">Module Methods</div></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classXQQuery.html#be331cfc9433f276b52d9b76290eb456">setIsLibraryModule</a> (bool bIsModule=true)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets whether this query is a module or not. <a href="#be331cfc9433f276b52d9b76290eb456"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classXQQuery.html#6a2549e688060acc8509f86efa107b6f">getIsLibraryModule</a> () const </td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns whether this query is a module or not. <a href="#6a2549e688060acc8509f86efa107b6f"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classXQQuery.html#9ac6a0983cc3f7352b9a1f0d87bfaf6d">setModuleTargetNamespace</a> (const XMLCh *uri)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the module target namespace for this query. <a href="#9ac6a0983cc3f7352b9a1f0d87bfaf6d"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">const XMLCh * </td><td class="memItemRight" valign="bottom"><a class="el" href="classXQQuery.html#236264220217a0ed71d687b63822c910">getModuleTargetNamespace</a> () const </td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the module taget namespace for this query. <a href="#236264220217a0ed71d687b63822c910"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classXQQuery.html#9510ef9d81445feec067395efac4dd33">importModule</a> (const XMLCh *szUri, <a class="el" href="DocumentCache_8hpp.html#aab74fdf21f46c72dd5e97f48fecb3b6">VectorOfStrings</a> *locations, <a class="el" href="classStaticContext.html">StaticContext</a> *context, const <a class="el" href="classLocationInfo.html">LocationInfo</a> *location)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Performs a module import from the given target namespace and locations. <a href="#9510ef9d81445feec067395efac4dd33"></a><br></td></tr>
|
|
<tr><td colspan="2"><br><h2>Classes</h2></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><b>QueryResult</b></td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Top level lazy result iterator. <br></td></tr>
|
|
</table>
|
|
<hr><a name="_details"></a><h2>Detailed Description</h2>
|
|
Encapsulates a query expression.
|
|
<p>
|
|
<a class="el" href="classXQQuery.html" title="Encapsulates a query expression.">XQQuery</a> objects are thread safe, and can be executed from multiple threads at the same time - provided a <a class="el" href="classDynamicContext.html" title="The execution time dynamic context interface.">DynamicContext</a> is used per thread.<p>
|
|
Instances of this class can be created by using the parsing methods on the <a class="el" href="classXQilla.html" title="Provides factory methods for creating XQQuery and DynamicContext objects.">XQilla</a> object.<p>
|
|
This class is dependant on the <a class="el" href="classDynamicContext.html" title="The execution time dynamic context interface.">DynamicContext</a> that was used to create it. This context must not be deleted before the <a class="el" href="classXQQuery.html" title="Encapsulates a query expression.">XQQuery</a> object. Normally this is acheived by the <a class="el" href="classXQQuery.html" title="Encapsulates a query expression.">XQQuery</a> adopting the <a class="el" href="classDynamicContext.html" title="The execution time dynamic context interface.">DynamicContext</a> and deleting it when it is deleted. However, this behaviour can be disabled by using the <a class="el" href="classXQilla.html#7fbc185e109c8ce3da425054685e8ba199bed3057d85109e34e9f536c30dc514" title="Don't adopt the context and delete it when the XQQuery is deleted.">XQilla::NO_ADOPT_CONTEXT</a> flag when creating the <a class="el" href="classXQQuery.html" title="Encapsulates a query expression.">XQQuery</a>. <hr><h2>Constructor & Destructor Documentation</h2>
|
|
<a class="anchor" name="558d8ab3c8ef625b17229d72c1b80cd9"></a><!-- doxytag: member="XQQuery::~XQQuery" ref="558d8ab3c8ef625b17229d72c1b80cd9" args="()" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">XQQuery::~XQQuery </td>
|
|
<td>(</td>
|
|
<td class="paramname"> </td>
|
|
<td> ) </td>
|
|
<td width="100%"></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Destructor.
|
|
<p>
|
|
|
|
</div>
|
|
</div><p>
|
|
<hr><h2>Member Function Documentation</h2>
|
|
<a class="anchor" name="37dc848b7f57536fa700bd2be416b1f2"></a><!-- doxytag: member="XQQuery::createDynamicContext" ref="37dc848b7f57536fa700bd2be416b1f2" args="(xercesc::MemoryManager *memMgr=xercesc::XMLPlatformUtils::fgMemoryManager) const " -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classDynamicContext.html">DynamicContext</a>* XQQuery::createDynamicContext </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classxercesc_1_1MemoryManager.html">xercesc::MemoryManager</a> * </td>
|
|
<td class="paramname"> <em>memMgr</em> = <code><a class="el" href="classxercesc_1_1XMLPlatformUtils.html#2521473ea52894e9313573d330a264b4">xercesc::XMLPlatformUtils::fgMemoryManager</a></code> </td>
|
|
<td> ) </td>
|
|
<td width="100%"> const</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Creates a <a class="el" href="classDynamicContext.html" title="The execution time dynamic context interface.">DynamicContext</a> based on the static context used to parse this query.
|
|
<p>
|
|
This <a class="el" href="classDynamicContext.html" title="The execution time dynamic context interface.">DynamicContext</a> will be suitable for using to call <a class="el" href="classXQQuery.html#3a22ddfd9faa4d7fcdf14fd1a802b331" title="Executes the query using the given DynamicContext, returning a lazy iterator over...">execute()</a>.<p>
|
|
<dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>memMgr</em> </td><td>The memory manager used to create the <a class="el" href="classDynamicContext.html" title="The execution time dynamic context interface.">DynamicContext</a>.</td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl class="return" compact><dt><b>Returns:</b></dt><dd>An implementation of <a class="el" href="classDynamicContext.html" title="The execution time dynamic context interface.">DynamicContext</a> </dd></dl>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="3a22ddfd9faa4d7fcdf14fd1a802b331"></a><!-- doxytag: member="XQQuery::execute" ref="3a22ddfd9faa4d7fcdf14fd1a802b331" args="(DynamicContext *context) const " -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classResult.html">Result</a> XQQuery::execute </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classDynamicContext.html">DynamicContext</a> * </td>
|
|
<td class="paramname"> <em>context</em> </td>
|
|
<td> ) </td>
|
|
<td width="100%"> const</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Executes the query using the given <a class="el" href="classDynamicContext.html" title="The execution time dynamic context interface.">DynamicContext</a>, returning a lazy iterator over the results.
|
|
<p>
|
|
<dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>context</em> </td><td>The <a class="el" href="classDynamicContext.html" title="The execution time dynamic context interface.">DynamicContext</a> to use to execute the query. This contains runtime values for variables, the value of the context item, and other relevent information.</td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The <a class="el" href="classResult.html" title="A scoped pointer wrapper for the lazily evaluated query result.">Result</a> object - a lazy iterator over the query results.</dd></dl>
|
|
<dl compact><dt><b>Exceptions:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="classXQException.html">XQException</a></em> </td><td>If a runtime error occurs </td></tr>
|
|
</table>
|
|
</dl>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="c32dfd917e525716437d0b5cf22296c5"></a><!-- doxytag: member="XQQuery::execute" ref="c32dfd917e525716437d0b5cf22296c5" args="(const Item::Ptr &contextItem, DynamicContext *context) const " -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classResult.html">Result</a> XQQuery::execute </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="classRefCountPointer.html">Item::Ptr</a> & </td>
|
|
<td class="paramname"> <em>contextItem</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="classDynamicContext.html">DynamicContext</a> * </td>
|
|
<td class="paramname"> <em>context</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td width="100%"> const</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Executes the query or stylesheet using the given context item and <a class="el" href="classDynamicContext.html" title="The execution time dynamic context interface.">DynamicContext</a>, returning a lazy iterator over the results.
|
|
<p>
|
|
<dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>contextItem</em> </td><td>The context item to use to execute the query. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>context</em> </td><td>The <a class="el" href="classDynamicContext.html" title="The execution time dynamic context interface.">DynamicContext</a> to use to execute the query. This contains runtime values for variables, the value of the context item, and other relevent information.</td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The <a class="el" href="classResult.html" title="A scoped pointer wrapper for the lazily evaluated query result.">Result</a> object - a lazy iterator over the query results.</dd></dl>
|
|
<dl compact><dt><b>Exceptions:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="classXQException.html">XQException</a></em> </td><td>If a runtime error occurs </td></tr>
|
|
</table>
|
|
</dl>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="3d1fadbf2bb5295d907cbb3c975f2dda"></a><!-- doxytag: member="XQQuery::execute" ref="3d1fadbf2bb5295d907cbb3c975f2dda" args="(const XMLCh *templateQName, DynamicContext *context) const " -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classResult.html">Result</a> XQQuery::execute </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const XMLCh * </td>
|
|
<td class="paramname"> <em>templateQName</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="classDynamicContext.html">DynamicContext</a> * </td>
|
|
<td class="paramname"> <em>context</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td width="100%"> const</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Executes the stylesheet starting at the named template using the given <a class="el" href="classDynamicContext.html" title="The execution time dynamic context interface.">DynamicContext</a>, returning a lazy iterator over the results.
|
|
<p>
|
|
<dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>templateQName</em> </td><td>The name of the template to start executing. If the QName includes a prefix, it is resolved using the in-scope namespaces for the stylesheet. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>context</em> </td><td>The <a class="el" href="classDynamicContext.html" title="The execution time dynamic context interface.">DynamicContext</a> to use to execute the query. This contains runtime values for variables, the value of the context item, and other relevent information.</td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The <a class="el" href="classResult.html" title="A scoped pointer wrapper for the lazily evaluated query result.">Result</a> object - a lazy iterator over the query results.</dd></dl>
|
|
<dl compact><dt><b>Exceptions:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="classXQException.html">XQException</a></em> </td><td>If a runtime error occurs </td></tr>
|
|
</table>
|
|
</dl>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="b52ee7dfe788ec943aa6be2ed1e5e1eb"></a><!-- doxytag: member="XQQuery::execute" ref="b52ee7dfe788ec943aa6be2ed1e5e1eb" args="(EventHandler *events, DynamicContext *context) const " -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void XQQuery::execute </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classEventHandler.html">EventHandler</a> * </td>
|
|
<td class="paramname"> <em>events</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="classDynamicContext.html">DynamicContext</a> * </td>
|
|
<td class="paramname"> <em>context</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td width="100%"> const</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Executes the query using the given <a class="el" href="classDynamicContext.html" title="The execution time dynamic context interface.">DynamicContext</a>, sending the output of the query to the given <a class="el" href="classEventHandler.html">EventHandler</a>.
|
|
<p>
|
|
<dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>context</em> </td><td>The <a class="el" href="classDynamicContext.html" title="The execution time dynamic context interface.">DynamicContext</a> to use to execute the query. This contains runtime values for variables, the value of the context item, and other relevent information.</td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl compact><dt><b>Exceptions:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="classXQException.html">XQException</a></em> </td><td>If a runtime error occurs </td></tr>
|
|
</table>
|
|
</dl>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="681062277a849d3ec9c1ded71a4c22dd"></a><!-- doxytag: member="XQQuery::execute" ref="681062277a849d3ec9c1ded71a4c22dd" args="(EventHandler *events, const Item::Ptr &contextItem, DynamicContext *context) const " -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void XQQuery::execute </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classEventHandler.html">EventHandler</a> * </td>
|
|
<td class="paramname"> <em>events</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const <a class="el" href="classRefCountPointer.html">Item::Ptr</a> & </td>
|
|
<td class="paramname"> <em>contextItem</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="classDynamicContext.html">DynamicContext</a> * </td>
|
|
<td class="paramname"> <em>context</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td width="100%"> const</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Executes the query or stylesheet using the given context item and <a class="el" href="classDynamicContext.html" title="The execution time dynamic context interface.">DynamicContext</a>, sending the output of the query to the given <a class="el" href="classEventHandler.html">EventHandler</a>.
|
|
<p>
|
|
<dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>contextItem</em> </td><td>The context item to use to execute the query. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>context</em> </td><td>The <a class="el" href="classDynamicContext.html" title="The execution time dynamic context interface.">DynamicContext</a> to use to execute the query. This contains runtime values for variables, the value of the context item, and other relevent information.</td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl compact><dt><b>Exceptions:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="classXQException.html">XQException</a></em> </td><td>If a runtime error occurs </td></tr>
|
|
</table>
|
|
</dl>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="944fd2f8b466507994a6e8d9fad1f91a"></a><!-- doxytag: member="XQQuery::execute" ref="944fd2f8b466507994a6e8d9fad1f91a" args="(EventHandler *events, const XMLCh *templateQName, DynamicContext *context) const " -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void XQQuery::execute </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classEventHandler.html">EventHandler</a> * </td>
|
|
<td class="paramname"> <em>events</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const XMLCh * </td>
|
|
<td class="paramname"> <em>templateQName</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="classDynamicContext.html">DynamicContext</a> * </td>
|
|
<td class="paramname"> <em>context</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td width="100%"> const</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Executes the stylesheet starting at the named template using the given <a class="el" href="classDynamicContext.html" title="The execution time dynamic context interface.">DynamicContext</a>, sending the output of the query to the given <a class="el" href="classEventHandler.html">EventHandler</a>.
|
|
<p>
|
|
<dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>templateQName</em> </td><td>The name of the template to start executing. If the QName includes a prefix, it is resolved using the in-scope namespaces for the stylesheet. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>context</em> </td><td>The <a class="el" href="classDynamicContext.html" title="The execution time dynamic context interface.">DynamicContext</a> to use to execute the query. This contains runtime values for variables, the value of the context item, and other relevent information.</td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl compact><dt><b>Exceptions:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="classXQException.html">XQException</a></em> </td><td>If a runtime error occurs </td></tr>
|
|
</table>
|
|
</dl>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="ebb1ab3434751cf96b4f10aabfd48bdd"></a><!-- doxytag: member="XQQuery::staticResolution" ref="ebb1ab3434751cf96b4f10aabfd48bdd" args="(StaticContext *context=0)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void XQQuery::staticResolution </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classStaticContext.html">StaticContext</a> * </td>
|
|
<td class="paramname"> <em>context</em> = <code>0</code> </td>
|
|
<td> ) </td>
|
|
<td width="100%"></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Perform static resolution on the query.
|
|
<p>
|
|
This operation is not thread safe, and should only be performed once.<p>
|
|
Static resolution resolves prefixes to namespace URIs, variable names to variables, function names to functions, and performs some basic query optimisation.<p>
|
|
Normally this is done as part of parsing the query expression. However, if the <a class="el" href="classXQilla.html#7fbc185e109c8ce3da425054685e8ba13629b3bfdf036418daad522664441e9d" title="Don't perform static resolution or any optimization.">XQilla::NO_STATIC_RESOLUTION</a> flag was specified when the query was parsed, this method will have to be called to perform this step manually.<p>
|
|
<dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>context</em> </td><td>If specified, the <a class="el" href="classStaticContext.html" title="The parse time static context interface.">StaticContext</a> to use to statically resolve this object. By default, the context used to parse the query is used. This should not need to be changed under normal usage.</td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl compact><dt><b>Exceptions:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="classXQException.html">XQException</a></em> </td><td>If a static resolution time error occurs </td></tr>
|
|
</table>
|
|
</dl>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="3c9aa2a4ecf3e9270049198be975981d"></a><!-- doxytag: member="XQQuery::staticTyping" ref="3c9aa2a4ecf3e9270049198be975981d" args="(StaticContext *context=0, StaticTyper *styper=0)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void XQQuery::staticTyping </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classStaticContext.html">StaticContext</a> * </td>
|
|
<td class="paramname"> <em>context</em> = <code>0</code>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">StaticTyper * </td>
|
|
<td class="paramname"> <em>styper</em> = <code>0</code></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td width="100%"></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Perform type calculation and related optimizations.
|
|
<p>
|
|
This operation is safe to call multiple times.<p>
|
|
Normally this step is done as part of static resolution.<p>
|
|
<dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>context</em> </td><td>If specified, the <a class="el" href="classStaticContext.html" title="The parse time static context interface.">StaticContext</a> to use to statically resolve this object. By default, the context used to parse the query is used. This should not need to be changed under normal usage.</td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl compact><dt><b>Exceptions:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="classXQException.html">XQException</a></em> </td><td>If a static resolution time error occurs </td></tr>
|
|
</table>
|
|
</dl>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="50438749bfdca396ff857de515585e23"></a><!-- doxytag: member="XQQuery::getQueryText" ref="50438749bfdca396ff857de515585e23" args="() const " -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">const XMLCh* XQQuery::getQueryText </td>
|
|
<td>(</td>
|
|
<td class="paramname"> </td>
|
|
<td> ) </td>
|
|
<td width="100%"> const</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Returns the expression that was parsed to create this <a class="el" href="classXQQuery.html" title="Encapsulates a query expression.">XQQuery</a> object.
|
|
<p>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="6d1666c9dd517b08026346d778d50b1e"></a><!-- doxytag: member="XQQuery::getQueryPlan" ref="6d1666c9dd517b08026346d778d50b1e" args="() const " -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">std::string XQQuery::getQueryPlan </td>
|
|
<td>(</td>
|
|
<td class="paramname"> </td>
|
|
<td> ) </td>
|
|
<td width="100%"> const</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Returns the query plan as XML. This is designed for debug and informative purposes only.
|
|
<p>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="9bdf9610f65813fdaf43c1e864deb038"></a><!-- doxytag: member="XQQuery::getQueryBody" ref="9bdf9610f65813fdaf43c1e864deb038" args="() const " -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">ASTNode* XQQuery::getQueryBody </td>
|
|
<td>(</td>
|
|
<td class="paramname"> </td>
|
|
<td> ) </td>
|
|
<td width="100%"> const</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Get the query body as an ASTNode.
|
|
<p>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="23208ecb2a66ea1437e8185dc90fc45b"></a><!-- doxytag: member="XQQuery::setQueryBody" ref="23208ecb2a66ea1437e8185dc90fc45b" args="(ASTNode *query)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void XQQuery::setQueryBody </td>
|
|
<td>(</td>
|
|
<td class="paramtype">ASTNode * </td>
|
|
<td class="paramname"> <em>query</em> </td>
|
|
<td> ) </td>
|
|
<td width="100%"></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Set the query body to an ASTNode.
|
|
<p>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="b876c486d751acb92e6ee62d78c3175a"></a><!-- doxytag: member="XQQuery::addFunction" ref="b876c486d751acb92e6ee62d78c3175a" args="(XQUserFunction *fnDef)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void XQQuery::addFunction </td>
|
|
<td>(</td>
|
|
<td class="paramtype">XQUserFunction * </td>
|
|
<td class="paramname"> <em>fnDef</em> </td>
|
|
<td> ) </td>
|
|
<td width="100%"></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Adds an XQUserFunction to the query (also adds it as a template if necessary).
|
|
<p>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="51732e054576e453c196b8bdad1582f5"></a><!-- doxytag: member="XQQuery::getFunctions" ref="51732e054576e453c196b8bdad1582f5" args="() const " -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">const <a class="el" href="StaticContext_8hpp.html#120407438cc6ede3bc7b57aae806741c">UserFunctions</a>& XQQuery::getFunctions </td>
|
|
<td>(</td>
|
|
<td class="paramname"> </td>
|
|
<td> ) </td>
|
|
<td width="100%"> const<code> [inline]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Returns a vector of all XQUserFunction objects from the query.
|
|
<p>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="b11bb071fc6a34cc41a09d7a8f7922bb"></a><!-- doxytag: member="XQQuery::addVariable" ref="b11bb071fc6a34cc41a09d7a8f7922bb" args="(XQGlobalVariable *varDef)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void XQQuery::addVariable </td>
|
|
<td>(</td>
|
|
<td class="paramtype">XQGlobalVariable * </td>
|
|
<td class="paramname"> <em>varDef</em> </td>
|
|
<td> ) </td>
|
|
<td width="100%"></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Adds a XQGlobalVariable to the query.
|
|
<p>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="24b830095210a3c4846c82470942fd8a"></a><!-- doxytag: member="XQQuery::getVariables" ref="24b830095210a3c4846c82470942fd8a" args="() const " -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">const <a class="el" href="XQQuery_8hpp.html#9d2d5aa88c009aeb4423578b5665857a">GlobalVariables</a>& XQQuery::getVariables </td>
|
|
<td>(</td>
|
|
<td class="paramname"> </td>
|
|
<td> ) </td>
|
|
<td width="100%"> const<code> [inline]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Returns a vector of all XQGlobalVariable objects from the query.
|
|
<p>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="80b70ab66101dd2e938c942c466399a7"></a><!-- doxytag: member="XQQuery::getImportedModules" ref="80b70ab66101dd2e938c942c466399a7" args="() const " -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">const <a class="el" href="XQQuery_8hpp.html#6bfc1be626a21b5f066df297e669fe9f">ImportedModules</a>& XQQuery::getImportedModules </td>
|
|
<td>(</td>
|
|
<td class="paramname"> </td>
|
|
<td> ) </td>
|
|
<td width="100%"> const<code> [inline]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Returns a vector of all XQGlobalVariable objects from the query.
|
|
<p>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="49033a2ed8c0cc7b95b59a0382171f32"></a><!-- doxytag: member="XQQuery::getFile" ref="49033a2ed8c0cc7b95b59a0382171f32" args="() const " -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">const XMLCh* XQQuery::getFile </td>
|
|
<td>(</td>
|
|
<td class="paramname"> </td>
|
|
<td> ) </td>
|
|
<td width="100%"> const</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Returns the name of the file that this query was parsed from.
|
|
<p>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="a4526a237851b8c144b06010486dc646"></a><!-- doxytag: member="XQQuery::setFile" ref="a4526a237851b8c144b06010486dc646" args="(const XMLCh *file)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void XQQuery::setFile </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const XMLCh * </td>
|
|
<td class="paramname"> <em>file</em> </td>
|
|
<td> ) </td>
|
|
<td width="100%"></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Sets the name of the file that this query was parsed from.
|
|
<p>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="3a4c85183980a4802bb42fb20369774b"></a><!-- doxytag: member="XQQuery::getStaticContext" ref="3a4c85183980a4802bb42fb20369774b" args="() const " -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">const <a class="el" href="classDynamicContext.html">DynamicContext</a>* XQQuery::getStaticContext </td>
|
|
<td>(</td>
|
|
<td class="paramname"> </td>
|
|
<td> ) </td>
|
|
<td width="100%"> const<code> [inline]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="be331cfc9433f276b52d9b76290eb456"></a><!-- doxytag: member="XQQuery::setIsLibraryModule" ref="be331cfc9433f276b52d9b76290eb456" args="(bool bIsModule=true)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void XQQuery::setIsLibraryModule </td>
|
|
<td>(</td>
|
|
<td class="paramtype">bool </td>
|
|
<td class="paramname"> <em>bIsModule</em> = <code>true</code> </td>
|
|
<td> ) </td>
|
|
<td width="100%"></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Sets whether this query is a module or not.
|
|
<p>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="6a2549e688060acc8509f86efa107b6f"></a><!-- doxytag: member="XQQuery::getIsLibraryModule" ref="6a2549e688060acc8509f86efa107b6f" args="() const " -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool XQQuery::getIsLibraryModule </td>
|
|
<td>(</td>
|
|
<td class="paramname"> </td>
|
|
<td> ) </td>
|
|
<td width="100%"> const</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Returns whether this query is a module or not.
|
|
<p>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="9ac6a0983cc3f7352b9a1f0d87bfaf6d"></a><!-- doxytag: member="XQQuery::setModuleTargetNamespace" ref="9ac6a0983cc3f7352b9a1f0d87bfaf6d" args="(const XMLCh *uri)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void XQQuery::setModuleTargetNamespace </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const XMLCh * </td>
|
|
<td class="paramname"> <em>uri</em> </td>
|
|
<td> ) </td>
|
|
<td width="100%"></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Sets the module target namespace for this query.
|
|
<p>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="236264220217a0ed71d687b63822c910"></a><!-- doxytag: member="XQQuery::getModuleTargetNamespace" ref="236264220217a0ed71d687b63822c910" args="() const " -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">const XMLCh* XQQuery::getModuleTargetNamespace </td>
|
|
<td>(</td>
|
|
<td class="paramname"> </td>
|
|
<td> ) </td>
|
|
<td width="100%"> const</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Gets the module taget namespace for this query.
|
|
<p>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="9510ef9d81445feec067395efac4dd33"></a><!-- doxytag: member="XQQuery::importModule" ref="9510ef9d81445feec067395efac4dd33" args="(const XMLCh *szUri, VectorOfStrings *locations, StaticContext *context, const LocationInfo *location)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void XQQuery::importModule </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const XMLCh * </td>
|
|
<td class="paramname"> <em>szUri</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="DocumentCache_8hpp.html#aab74fdf21f46c72dd5e97f48fecb3b6">VectorOfStrings</a> * </td>
|
|
<td class="paramname"> <em>locations</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="classStaticContext.html">StaticContext</a> * </td>
|
|
<td class="paramname"> <em>context</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const <a class="el" href="classLocationInfo.html">LocationInfo</a> * </td>
|
|
<td class="paramname"> <em>location</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td width="100%"></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Performs a module import from the given target namespace and locations.
|
|
<p>
|
|
|
|
</div>
|
|
</div><p>
|
|
<hr>The documentation for this class was generated from the following file:<ul>
|
|
<li><a class="el" href="XQQuery_8hpp-source.html">XQQuery.hpp</a></ul>
|
|
</div>
|
|
<hr size="1"><address style="text-align: right;"><small>Generated on Mon Jan 5 19:54:26 2009 for XQilla Simple API by
|
|
<a href="http://www.doxygen.org/index.html">
|
|
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
|
|
</body>
|
|
</html>
|