XQuilla/docs/simple-api/classXQilla.html

424 lines
28 KiB
HTML
Raw Normal View History

2020-02-17 21:05:20 +00:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
2020-02-17 21:11:31 +00:00
<title>XQilla Simple API Documentation</title>
2020-02-17 21:05:20 +00:00
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
2020-02-17 21:11:31 +00:00
<a style="float:right;" href="http://sourceforge.net/projects/xqilla"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=152021&amp;type=2" border="0" alt="SourceForge.net Logo" /></a>
2020-02-17 21:10:06 +00:00
<!-- Generated by Doxygen 1.5.1 -->
2020-02-17 21:05:20 +00:00
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li id="current"><a href="classes.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
</ul></div>
<div class="tabs">
<ul>
<li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul></div>
<h1>XQilla Class Reference</h1><!-- doxytag: class="XQilla" --><!-- doxytag: inherits="xercesc::XMemory" -->Provides factory methods for creating <a class="el" href="classXQQuery.html">XQQuery</a> and <a class="el" href="classDynamicContext.html">DynamicContext</a> objects.
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="XQilla_8hpp-source.html">XQilla.hpp</a>&gt;</code>
<p>
Inheritance diagram for XQilla:<p><center><img src="classXQilla__inherit__graph.png" border="0" usemap="#XQilla__inherit__map" alt="Inheritance graph"></center>
<map name="XQilla__inherit__map">
2020-02-17 21:10:06 +00:00
<area href="classxercesc_1_1XMemory.html" shape="rect" coords="5,7,152,31" alt="">
2020-02-17 21:05:20 +00:00
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classXQilla-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 Types</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXQilla.html#7fbc185e109c8ce3da425054685e8ba1">Flags</a> { <a class="el" href="classXQilla.html#7fbc185e109c8ce3da425054685e8ba13629b3bfdf036418daad522664441e9d">NO_STATIC_RESOLUTION</a> = 0x1,
<a class="el" href="classXQilla.html#7fbc185e109c8ce3da425054685e8ba199bed3057d85109e34e9f536c30dc514">NO_ADOPT_CONTEXT</a> = 0x2
}</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Flags used by the <a class="el" href="classXQilla.html">XQilla</a> methods. These are used by bitwise OR-ing (|) their values together. <a href="classXQilla.html#7fbc185e109c8ce3da425054685e8ba1">More...</a><br></td></tr>
2020-02-17 21:11:31 +00:00
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXQilla.html#841f488b890ff0e4d20b5000f2e1ce4d">Language</a> { <br>
&nbsp;&nbsp;<a class="el" href="classXQilla.html#841f488b890ff0e4d20b5000f2e1ce4d1ed528e9b6d99de2caebe09430dd6605">XQUERY</a> = 0x00,
<a class="el" href="classXQilla.html#841f488b890ff0e4d20b5000f2e1ce4dd3c49240323fbd44cc8b7e7f18a827d2">XPATH2</a> = 0x01,
<a class="el" href="classXQilla.html#841f488b890ff0e4d20b5000f2e1ce4d636592195b94e2d64e2d8a9f6843059e">FULLTEXT</a> = 0x02,
<a class="el" href="classXQilla.html#841f488b890ff0e4d20b5000f2e1ce4de59ccc2a93b8900516088c6034f8d4ed">UPDATE</a> = 0x04,
<br>
&nbsp;&nbsp;<a class="el" href="classXQilla.html#841f488b890ff0e4d20b5000f2e1ce4d669939147235c3acb83b25b4425b9e4a">XQUERY_FULLTEXT</a> = (XQUERY | FULLTEXT),
<a class="el" href="classXQilla.html#841f488b890ff0e4d20b5000f2e1ce4d83707b5b2a4f6a50e73b9f8f3cc0de25">XPATH2_FULLTEXT</a> = (XPATH2 | FULLTEXT),
<a class="el" href="classXQilla.html#841f488b890ff0e4d20b5000f2e1ce4d4ee300ad11097fbcb1a0165793be836e">XQUERY_UPDATE</a> = (XQUERY | UPDATE),
<a class="el" href="classXQilla.html#841f488b890ff0e4d20b5000f2e1ce4d7eae1fd9b91cd2bb69982d66b707d76c">XQUERY_FULLTEXT_UPDATE</a> = (XQUERY | FULLTEXT | UPDATE)
<br>
2020-02-17 21:05:20 +00:00
}</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Enumeration used to select a language to parse. <a href="classXQilla.html#841f488b890ff0e4d20b5000f2e1ce4d">More...</a><br></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXQilla.html#e7e28bb48f04c571ea172d3c0ad889f5">XQilla</a> (<a class="el" href="classxercesc_1_1MemoryManager.html">xercesc::MemoryManager</a> *memMgr=0)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructs the object. <a href="#e7e28bb48f04c571ea172d3c0ad889f5"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXQilla.html#1584110326e2a3cb34efd61d11c5b066">~XQilla</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Destructs the object. <a href="#1584110326e2a3cb34efd61d11c5b066"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr>
<tr><td colspan="2"><div class="groupHeader">Parsing Methods</div></td></tr>
2020-02-17 21:11:31 +00:00
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="classXQQuery.html">XQQuery</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXQilla.html#39c596fdbef7dd8d2bb2339eb017e10d">parse</a> (const XMLCh *query, <a class="el" href="classDynamicContext.html">DynamicContext</a> *context=0, const XMLCh *queryFile=NULL, unsigned int flags=0, <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>)</td></tr>
2020-02-17 21:05:20 +00:00
2020-02-17 21:11:31 +00:00
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Parse the expression contained in the given query string. <a href="#39c596fdbef7dd8d2bb2339eb017e10d"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="classXQQuery.html">XQQuery</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXQilla.html#bcf324de7806b1f8c992129a4783d109">parse</a> (const <a class="el" href="classxercesc_1_1InputSource.html">xercesc::InputSource</a> &amp;querySrc, <a class="el" href="classDynamicContext.html">DynamicContext</a> *context=0, unsigned int flags=0, <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>)</td></tr>
2020-02-17 21:05:20 +00:00
2020-02-17 21:11:31 +00:00
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Parse the expression from the given InputSource. <a href="#bcf324de7806b1f8c992129a4783d109"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="classXQQuery.html">XQQuery</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXQilla.html#cc1d4880ffb1d9d77fd174be40030bb5">parseFromURI</a> (const XMLCh *queryFile, <a class="el" href="classDynamicContext.html">DynamicContext</a> *context=0, unsigned int flags=0, <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>)</td></tr>
2020-02-17 21:05:20 +00:00
2020-02-17 21:11:31 +00:00
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Parse the expression residing at the given URL. <a href="#cc1d4880ffb1d9d77fd174be40030bb5"></a><br></td></tr>
2020-02-17 21:05:20 +00:00
<tr><td colspan="2"><div class="groupHeader">Factory Methods</div></td></tr>
2020-02-17 21:11:31 +00:00
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="classDynamicContext.html">DynamicContext</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXQilla.html#d7d9afb3c10ae4f8a1fcbad22da05b6f">createContext</a> (<a class="el" href="classXQilla.html#841f488b890ff0e4d20b5000f2e1ce4d">Language</a> language=XQUERY, <a class="el" href="classXQillaConfiguration.html">XQillaConfiguration</a> *conf=0, <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>)</td></tr>
2020-02-17 21:05:20 +00:00
2020-02-17 21:11:31 +00:00
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Creates a context suitable for parsing an expression with. <a href="#d7d9afb3c10ae4f8a1fcbad22da05b6f"></a><br></td></tr>
2020-02-17 21:05:20 +00:00
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Provides factory methods for creating <a class="el" href="classXQQuery.html">XQQuery</a> and <a class="el" href="classDynamicContext.html">DynamicContext</a> objects.
<p>
This class calls XQillaPlatformUtils::initialize() when it is constructed, and XQillaPlatformUtils::terminate() when it destructs, so there is no need to seperately initialize or terminate either Xerces or <a class="el" href="classXQilla.html">XQilla</a>.
<p>
<hr><h2>Member Enumeration Documentation</h2>
2020-02-17 21:10:06 +00:00
<a class="anchor" name="7fbc185e109c8ce3da425054685e8ba1"></a><!-- doxytag: member="XQilla::Flags" ref="7fbc185e109c8ce3da425054685e8ba1" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
2020-02-17 21:05:20 +00:00
<tr>
2020-02-17 21:10:06 +00:00
<td class="memname">enum <a class="el" href="classXQilla.html#7fbc185e109c8ce3da425054685e8ba1">XQilla::Flags</a> </td>
2020-02-17 21:05:20 +00:00
</tr>
</table>
2020-02-17 21:10:06 +00:00
</div>
<div class="memdoc">
2020-02-17 21:05:20 +00:00
<p>
Flags used by the <a class="el" href="classXQilla.html">XQilla</a> methods. These are used by bitwise OR-ing (|) their values together.
<p>
<dl compact><dt><b>Enumerator: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" name="7fbc185e109c8ce3da425054685e8ba13629b3bfdf036418daad522664441e9d"></a><!-- doxytag: member="NO_STATIC_RESOLUTION" ref="7fbc185e109c8ce3da425054685e8ba13629b3bfdf036418daad522664441e9d" args="" -->NO_STATIC_RESOLUTION</em>&nbsp;</td><td>
Don't perform static resolution. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="7fbc185e109c8ce3da425054685e8ba199bed3057d85109e34e9f536c30dc514"></a><!-- doxytag: member="NO_ADOPT_CONTEXT" ref="7fbc185e109c8ce3da425054685e8ba199bed3057d85109e34e9f536c30dc514" args="" -->NO_ADOPT_CONTEXT</em>&nbsp;</td><td>
Don't adopt the context and delete it when the <a class="el" href="classXQQuery.html">XQQuery</a> is deleted. </td></tr>
</table>
</dl>
2020-02-17 21:10:06 +00:00
</div>
</div><p>
<a class="anchor" name="841f488b890ff0e4d20b5000f2e1ce4d"></a><!-- doxytag: member="XQilla::Language" ref="841f488b890ff0e4d20b5000f2e1ce4d" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
2020-02-17 21:05:20 +00:00
<tr>
2020-02-17 21:10:06 +00:00
<td class="memname">enum <a class="el" href="classXQilla.html#841f488b890ff0e4d20b5000f2e1ce4d">XQilla::Language</a> </td>
2020-02-17 21:05:20 +00:00
</tr>
</table>
2020-02-17 21:10:06 +00:00
</div>
<div class="memdoc">
2020-02-17 21:05:20 +00:00
<p>
Enumeration used to select a language to parse.
<p>
<dl compact><dt><b>Enumerator: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" name="841f488b890ff0e4d20b5000f2e1ce4d1ed528e9b6d99de2caebe09430dd6605"></a><!-- doxytag: member="XQUERY" ref="841f488b890ff0e4d20b5000f2e1ce4d1ed528e9b6d99de2caebe09430dd6605" args="" -->XQUERY</em>&nbsp;</td><td>
2020-02-17 21:11:31 +00:00
</td></tr>
2020-02-17 21:05:20 +00:00
<tr><td valign="top"><em><a class="anchor" name="841f488b890ff0e4d20b5000f2e1ce4dd3c49240323fbd44cc8b7e7f18a827d2"></a><!-- doxytag: member="XPATH2" ref="841f488b890ff0e4d20b5000f2e1ce4dd3c49240323fbd44cc8b7e7f18a827d2" args="" -->XPATH2</em>&nbsp;</td><td>
2020-02-17 21:11:31 +00:00
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="841f488b890ff0e4d20b5000f2e1ce4d636592195b94e2d64e2d8a9f6843059e"></a><!-- doxytag: member="FULLTEXT" ref="841f488b890ff0e4d20b5000f2e1ce4d636592195b94e2d64e2d8a9f6843059e" args="" -->FULLTEXT</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="841f488b890ff0e4d20b5000f2e1ce4de59ccc2a93b8900516088c6034f8d4ed"></a><!-- doxytag: member="UPDATE" ref="841f488b890ff0e4d20b5000f2e1ce4de59ccc2a93b8900516088c6034f8d4ed" args="" -->UPDATE</em>&nbsp;</td><td>
</td></tr>
2020-02-17 21:05:20 +00:00
<tr><td valign="top"><em><a class="anchor" name="841f488b890ff0e4d20b5000f2e1ce4d669939147235c3acb83b25b4425b9e4a"></a><!-- doxytag: member="XQUERY_FULLTEXT" ref="841f488b890ff0e4d20b5000f2e1ce4d669939147235c3acb83b25b4425b9e4a" args="" -->XQUERY_FULLTEXT</em>&nbsp;</td><td>
2020-02-17 21:11:31 +00:00
</td></tr>
2020-02-17 21:05:20 +00:00
<tr><td valign="top"><em><a class="anchor" name="841f488b890ff0e4d20b5000f2e1ce4d83707b5b2a4f6a50e73b9f8f3cc0de25"></a><!-- doxytag: member="XPATH2_FULLTEXT" ref="841f488b890ff0e4d20b5000f2e1ce4d83707b5b2a4f6a50e73b9f8f3cc0de25" args="" -->XPATH2_FULLTEXT</em>&nbsp;</td><td>
2020-02-17 21:11:31 +00:00
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="841f488b890ff0e4d20b5000f2e1ce4d4ee300ad11097fbcb1a0165793be836e"></a><!-- doxytag: member="XQUERY_UPDATE" ref="841f488b890ff0e4d20b5000f2e1ce4d4ee300ad11097fbcb1a0165793be836e" args="" -->XQUERY_UPDATE</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="841f488b890ff0e4d20b5000f2e1ce4d7eae1fd9b91cd2bb69982d66b707d76c"></a><!-- doxytag: member="XQUERY_FULLTEXT_UPDATE" ref="841f488b890ff0e4d20b5000f2e1ce4d7eae1fd9b91cd2bb69982d66b707d76c" args="" -->XQUERY_FULLTEXT_UPDATE</em>&nbsp;</td><td>
</td></tr>
2020-02-17 21:05:20 +00:00
</table>
</dl>
2020-02-17 21:10:06 +00:00
</div>
</div><p>
2020-02-17 21:05:20 +00:00
<hr><h2>Constructor &amp; Destructor Documentation</h2>
2020-02-17 21:10:06 +00:00
<a class="anchor" name="e7e28bb48f04c571ea172d3c0ad889f5"></a><!-- doxytag: member="XQilla::XQilla" ref="e7e28bb48f04c571ea172d3c0ad889f5" args="(xercesc::MemoryManager *memMgr=0)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
2020-02-17 21:05:20 +00:00
<tr>
2020-02-17 21:10:06 +00:00
<td class="memname">XQilla::XQilla </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classxercesc_1_1MemoryManager.html">xercesc::MemoryManager</a> *&nbsp;</td>
<td class="paramname"> <em>memMgr</em> = <code>0</code> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"></td>
2020-02-17 21:05:20 +00:00
</tr>
</table>
2020-02-17 21:10:06 +00:00
</div>
<div class="memdoc">
2020-02-17 21:05:20 +00:00
<p>
Constructs the object.
<p>
In the process, XQillaPlatformUtils::initialize() is called to initialize <a class="el" href="classXQilla.html">XQilla</a> and Xerces.<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>&nbsp;</td><td>If provided, this is the MemoryManager used to initialize Xerces. </td></tr>
</table>
</dl>
2020-02-17 21:10:06 +00:00
</div>
</div><p>
<a class="anchor" name="1584110326e2a3cb34efd61d11c5b066"></a><!-- doxytag: member="XQilla::~XQilla" ref="1584110326e2a3cb34efd61d11c5b066" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
2020-02-17 21:05:20 +00:00
<tr>
2020-02-17 21:10:06 +00:00
<td class="memname">XQilla::~XQilla </td>
<td>(</td>
<td class="paramname"> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"></td>
2020-02-17 21:05:20 +00:00
</tr>
</table>
2020-02-17 21:10:06 +00:00
</div>
<div class="memdoc">
2020-02-17 21:05:20 +00:00
<p>
Destructs the object.
<p>
2020-02-17 21:10:06 +00:00
In the process, XQillaPlatformUtils::terminate() is called to terminate <a class="el" href="classXQilla.html">XQilla</a> and Xerces.
</div>
</div><p>
2020-02-17 21:05:20 +00:00
<hr><h2>Member Function Documentation</h2>
2020-02-17 21:11:31 +00:00
<a class="anchor" name="39c596fdbef7dd8d2bb2339eb017e10d"></a><!-- doxytag: member="XQilla::parse" ref="39c596fdbef7dd8d2bb2339eb017e10d" args="(const XMLCh *query, DynamicContext *context=0, const XMLCh *queryFile=NULL, unsigned int flags=0, xercesc::MemoryManager *memMgr=xercesc::XMLPlatformUtils::fgMemoryManager)" -->
2020-02-17 21:10:06 +00:00
<div class="memitem">
<div class="memproto">
<table class="memname">
2020-02-17 21:05:20 +00:00
<tr>
2020-02-17 21:10:06 +00:00
<td class="memname">static <a class="el" href="classXQQuery.html">XQQuery</a>* XQilla::parse </td>
<td>(</td>
<td class="paramtype">const XMLCh *&nbsp;</td>
<td class="paramname"> <em>query</em>, </td>
2020-02-17 21:05:20 +00:00
</tr>
<tr>
2020-02-17 21:10:06 +00:00
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classDynamicContext.html">DynamicContext</a> *&nbsp;</td>
<td class="paramname"> <em>context</em> = <code>0</code>, </td>
2020-02-17 21:05:20 +00:00
</tr>
<tr>
2020-02-17 21:10:06 +00:00
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const XMLCh *&nbsp;</td>
<td class="paramname"> <em>queryFile</em> = <code>NULL</code>, </td>
2020-02-17 21:05:20 +00:00
</tr>
<tr>
2020-02-17 21:10:06 +00:00
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned int&nbsp;</td>
<td class="paramname"> <em>flags</em> = <code>0</code>, </td>
2020-02-17 21:05:20 +00:00
</tr>
<tr>
2020-02-17 21:10:06 +00:00
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classxercesc_1_1MemoryManager.html">xercesc::MemoryManager</a> *&nbsp;</td>
<td class="paramname"> <em>memMgr</em> = <code><a class="el" href="classxercesc_1_1XMLPlatformUtils.html#2521473ea52894e9313573d330a264b4">xercesc::XMLPlatformUtils::fgMemoryManager</a></code></td><td>&nbsp;</td>
2020-02-17 21:05:20 +00:00
</tr>
<tr>
2020-02-17 21:10:06 +00:00
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"><code> [static]</code></td>
2020-02-17 21:05:20 +00:00
</tr>
</table>
2020-02-17 21:10:06 +00:00
</div>
<div class="memdoc">
2020-02-17 21:05:20 +00:00
<p>
2020-02-17 21:10:06 +00:00
Parse the expression contained in the given query string.
2020-02-17 21:05:20 +00:00
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
2020-02-17 21:10:06 +00:00
<tr><td valign="top"></td><td valign="top"><em>query</em>&nbsp;</td><td>A string containing the expression to parse. </td></tr>
2020-02-17 21:05:20 +00:00
<tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>If specified, the context to use for parsing this expression. A default context is used if this parameter is 0. </td></tr>
2020-02-17 21:10:06 +00:00
<tr><td valign="top"></td><td valign="top"><em>queryFile</em>&nbsp;</td><td>The name of the file that query originates in. This is passed back to the user in an <a class="el" href="classXQException.html">XQException</a> if an error occurs. </td></tr>
2020-02-17 21:05:20 +00:00
<tr><td valign="top"></td><td valign="top"><em>flags</em>&nbsp;</td><td>A bitwise OR of the Flags constants, that control aspects of how the <a class="el" href="classXQQuery.html">XQQuery</a> object is created. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>memMgr</em>&nbsp;</td><td>If specified, the memory manager used to create the <a class="el" href="classXQQuery.html">XQQuery</a> object.</td></tr>
</table>
</dl>
2020-02-17 21:10:06 +00:00
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The object that represents the parsed expression.</dd></dl>
2020-02-17 21:05:20 +00:00
<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>&nbsp;</td><td>If a parse error occurs. </td></tr>
</table>
</dl>
2020-02-17 21:10:06 +00:00
</div>
</div><p>
2020-02-17 21:11:31 +00:00
<a class="anchor" name="bcf324de7806b1f8c992129a4783d109"></a><!-- doxytag: member="XQilla::parse" ref="bcf324de7806b1f8c992129a4783d109" args="(const xercesc::InputSource &amp;querySrc, DynamicContext *context=0, unsigned int flags=0, xercesc::MemoryManager *memMgr=xercesc::XMLPlatformUtils::fgMemoryManager)" -->
2020-02-17 21:10:06 +00:00
<div class="memitem">
<div class="memproto">
<table class="memname">
2020-02-17 21:05:20 +00:00
<tr>
2020-02-17 21:10:06 +00:00
<td class="memname">static <a class="el" href="classXQQuery.html">XQQuery</a>* XQilla::parse </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classxercesc_1_1InputSource.html">xercesc::InputSource</a> &amp;&nbsp;</td>
<td class="paramname"> <em>querySrc</em>, </td>
2020-02-17 21:05:20 +00:00
</tr>
<tr>
2020-02-17 21:10:06 +00:00
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classDynamicContext.html">DynamicContext</a> *&nbsp;</td>
<td class="paramname"> <em>context</em> = <code>0</code>, </td>
2020-02-17 21:05:20 +00:00
</tr>
<tr>
2020-02-17 21:10:06 +00:00
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned int&nbsp;</td>
<td class="paramname"> <em>flags</em> = <code>0</code>, </td>
2020-02-17 21:05:20 +00:00
</tr>
<tr>
2020-02-17 21:10:06 +00:00
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classxercesc_1_1MemoryManager.html">xercesc::MemoryManager</a> *&nbsp;</td>
<td class="paramname"> <em>memMgr</em> = <code><a class="el" href="classxercesc_1_1XMLPlatformUtils.html#2521473ea52894e9313573d330a264b4">xercesc::XMLPlatformUtils::fgMemoryManager</a></code></td><td>&nbsp;</td>
2020-02-17 21:05:20 +00:00
</tr>
<tr>
2020-02-17 21:10:06 +00:00
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"><code> [static]</code></td>
2020-02-17 21:05:20 +00:00
</tr>
</table>
2020-02-17 21:10:06 +00:00
</div>
<div class="memdoc">
2020-02-17 21:05:20 +00:00
<p>
2020-02-17 21:10:06 +00:00
Parse the expression from the given InputSource.
2020-02-17 21:05:20 +00:00
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
2020-02-17 21:10:06 +00:00
<tr><td valign="top"></td><td valign="top"><em>querySrc</em>&nbsp;</td><td>An InputSource which the expression will be parsed from. </td></tr>
2020-02-17 21:05:20 +00:00
<tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>If specified, the context to use for parsing this expression. A default context is used if this parameter is 0. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>flags</em>&nbsp;</td><td>A bitwise OR of the Flags constants, that control aspects of how the <a class="el" href="classXQQuery.html">XQQuery</a> object is created. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>memMgr</em>&nbsp;</td><td>If specified, the memory manager used to create the <a class="el" href="classXQQuery.html">XQQuery</a> object.</td></tr>
</table>
</dl>
2020-02-17 21:10:06 +00:00
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The object that represents the parsed expression.</dd></dl>
2020-02-17 21:05:20 +00:00
<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>&nbsp;</td><td>If a parse error occurs. </td></tr>
</table>
</dl>
2020-02-17 21:10:06 +00:00
</div>
</div><p>
2020-02-17 21:11:31 +00:00
<a class="anchor" name="cc1d4880ffb1d9d77fd174be40030bb5"></a><!-- doxytag: member="XQilla::parseFromURI" ref="cc1d4880ffb1d9d77fd174be40030bb5" args="(const XMLCh *queryFile, DynamicContext *context=0, unsigned int flags=0, xercesc::MemoryManager *memMgr=xercesc::XMLPlatformUtils::fgMemoryManager)" -->
2020-02-17 21:10:06 +00:00
<div class="memitem">
<div class="memproto">
<table class="memname">
2020-02-17 21:05:20 +00:00
<tr>
2020-02-17 21:10:06 +00:00
<td class="memname">static <a class="el" href="classXQQuery.html">XQQuery</a>* XQilla::parseFromURI </td>
<td>(</td>
<td class="paramtype">const XMLCh *&nbsp;</td>
<td class="paramname"> <em>queryFile</em>, </td>
2020-02-17 21:05:20 +00:00
</tr>
<tr>
2020-02-17 21:10:06 +00:00
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classDynamicContext.html">DynamicContext</a> *&nbsp;</td>
<td class="paramname"> <em>context</em> = <code>0</code>, </td>
2020-02-17 21:05:20 +00:00
</tr>
<tr>
2020-02-17 21:10:06 +00:00
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned int&nbsp;</td>
<td class="paramname"> <em>flags</em> = <code>0</code>, </td>
2020-02-17 21:05:20 +00:00
</tr>
<tr>
2020-02-17 21:10:06 +00:00
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classxercesc_1_1MemoryManager.html">xercesc::MemoryManager</a> *&nbsp;</td>
<td class="paramname"> <em>memMgr</em> = <code><a class="el" href="classxercesc_1_1XMLPlatformUtils.html#2521473ea52894e9313573d330a264b4">xercesc::XMLPlatformUtils::fgMemoryManager</a></code></td><td>&nbsp;</td>
2020-02-17 21:05:20 +00:00
</tr>
<tr>
2020-02-17 21:10:06 +00:00
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"><code> [static]</code></td>
2020-02-17 21:05:20 +00:00
</tr>
</table>
2020-02-17 21:10:06 +00:00
</div>
<div class="memdoc">
2020-02-17 21:05:20 +00:00
<p>
Parse the expression residing at the given URL.
<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>queryFile</em>&nbsp;</td><td>The URL of the expression to parse. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>If specified, the context to use for parsing this expression. A default context is used if this parameter is 0. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>flags</em>&nbsp;</td><td>A bitwise OR of the Flags constants, that control aspects of how the <a class="el" href="classXQQuery.html">XQQuery</a> object is created. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>memMgr</em>&nbsp;</td><td>If specified, the memory manager used to create the <a class="el" href="classXQQuery.html">XQQuery</a> object.</td></tr>
</table>
</dl>
2020-02-17 21:10:06 +00:00
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The object that represents the parsed expression.</dd></dl>
2020-02-17 21:05:20 +00:00
<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>&nbsp;</td><td>If a parse error occurs. </td></tr>
</table>
</dl>
2020-02-17 21:10:06 +00:00
</div>
</div><p>
2020-02-17 21:11:31 +00:00
<a class="anchor" name="d7d9afb3c10ae4f8a1fcbad22da05b6f"></a><!-- doxytag: member="XQilla::createContext" ref="d7d9afb3c10ae4f8a1fcbad22da05b6f" args="(Language language=XQUERY, XQillaConfiguration *conf=0, xercesc::MemoryManager *memMgr=xercesc::XMLPlatformUtils::fgMemoryManager)" -->
2020-02-17 21:10:06 +00:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">static <a class="el" href="classDynamicContext.html">DynamicContext</a>* XQilla::createContext </td>
<td>(</td>
2020-02-17 21:11:31 +00:00
<td class="paramtype"><a class="el" href="classXQilla.html#841f488b890ff0e4d20b5000f2e1ce4d">Language</a>&nbsp;</td>
<td class="paramname"> <em>language</em> = <code>XQUERY</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classXQillaConfiguration.html">XQillaConfiguration</a> *&nbsp;</td>
<td class="paramname"> <em>conf</em> = <code>0</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
2020-02-17 21:10:06 +00:00
<td class="paramtype"><a class="el" href="classxercesc_1_1MemoryManager.html">xercesc::MemoryManager</a> *&nbsp;</td>
2020-02-17 21:11:31 +00:00
<td class="paramname"> <em>memMgr</em> = <code><a class="el" href="classxercesc_1_1XMLPlatformUtils.html#2521473ea52894e9313573d330a264b4">xercesc::XMLPlatformUtils::fgMemoryManager</a></code></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"><code> [static]</code></td>
2020-02-17 21:10:06 +00:00
</tr>
</table>
</div>
<div class="memdoc">
<p>
Creates a context suitable for parsing an expression with.
<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>&nbsp;</td><td>The memory manager used to create the <a class="el" href="classDynamicContext.html">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">DynamicContext</a> </dd></dl>
</div>
</div><p>
2020-02-17 21:05:20 +00:00
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="XQilla_8hpp-source.html">XQilla.hpp</a></ul>
2020-02-17 21:12:51 +00:00
<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 12 20:17:00 2007 for XQilla Simple API by&nbsp;
2020-02-17 21:05:20 +00:00
<a href="http://www.doxygen.org/index.html">
2020-02-17 21:10:06 +00:00
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address>
2020-02-17 21:05:20 +00:00
</body>
</html>