453 lines
32 KiB
HTML
453 lines
32 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>XQilla Class Reference</h1><!-- doxytag: class="XQilla" --><!-- doxytag: inherits="xercesc::XMemory" -->Provides factory methods for creating <a class="el" href="classXQQuery.html" title="Encapsulates a query expression.">XQQuery</a> and <a class="el" href="classDynamicContext.html" title="The execution time dynamic context interface.">DynamicContext</a> objects.
|
|
<a href="#_details">More...</a>
|
|
<p>
|
|
<code>#include <<a class="el" href="XQilla_8hpp-source.html">XQilla.hpp</a>></code>
|
|
<p>
|
|
<div class="dynheader">
|
|
Inheritance diagram for XQilla:</div>
|
|
<div class="dynsection">
|
|
<p><center><img src="classXQilla__inherit__graph.png" border="0" usemap="#XQilla__inherit__map" alt="Inheritance graph"></center>
|
|
<map name="XQilla__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="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 </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,
|
|
<a class="el" href="classXQilla.html#7fbc185e109c8ce3da425054685e8ba1b2c48d29c5bbf136cf2d2e8aff5857ef">DEBUG_QUERY</a> = 0x4,
|
|
<a class="el" href="classXQilla.html#7fbc185e109c8ce3da425054685e8ba11f4e0efac3074968239141cca9138c1b">NO_OPTIMIZATION</a> = 0x8
|
|
}</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Flags used by the <a class="el" href="classXQilla.html" title="Provides factory methods for creating XQQuery and DynamicContext objects.">XQilla</a> methods. These are used by bitwise OR-ing (|) their values together. <a href="classXQilla.html#7fbc185e109c8ce3da425054685e8ba1">More...</a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="classXQilla.html#841f488b890ff0e4d20b5000f2e1ce4d">Language</a> { <br>
|
|
<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>
|
|
<a class="el" href="classXQilla.html#841f488b890ff0e4d20b5000f2e1ce4d0696b98371490251911e7e64e3c0d599">EXTENSIONS</a> = 0x08,
|
|
<a class="el" href="classXQilla.html#841f488b890ff0e4d20b5000f2e1ce4de3a1c10f1b913f6b49ac22d500ff8ff4">XSLT2</a> = 0x10,
|
|
<a class="el" href="classXQilla.html#841f488b890ff0e4d20b5000f2e1ce4d669939147235c3acb83b25b4425b9e4a">XQUERY_FULLTEXT</a> = (XQUERY | FULLTEXT),
|
|
<a class="el" href="classXQilla.html#841f488b890ff0e4d20b5000f2e1ce4d83707b5b2a4f6a50e73b9f8f3cc0de25">XPATH2_FULLTEXT</a> = (XPATH2 | FULLTEXT),
|
|
<br>
|
|
<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),
|
|
<a class="el" href="classXQilla.html#841f488b890ff0e4d20b5000f2e1ce4dadb6d15aec9f4eaeb70ee64f0c0bacea">XSLT2_FULLTEXT</a> = (XSLT2 | FULLTEXT)
|
|
<br>
|
|
}</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </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"> </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"> </td><td class="mdescRight">Constructs the object. <a href="#e7e28bb48f04c571ea172d3c0ad889f5"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classXQilla.html#1584110326e2a3cb34efd61d11c5b066">~XQilla</a> ()</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </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>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="classXQQuery.html">XQQuery</a> * </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>
|
|
|
|
<tr><td class="mdescLeft"> </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> * </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> &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>
|
|
|
|
<tr><td class="mdescLeft"> </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> * </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>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Parse the expression residing at the given URL. <a href="#cc1d4880ffb1d9d77fd174be40030bb5"></a><br></td></tr>
|
|
<tr><td colspan="2"><div class="groupHeader">Factory Methods</div></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="classDynamicContext.html">DynamicContext</a> * </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>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a context suitable for parsing an expression with. <a href="#d7d9afb3c10ae4f8a1fcbad22da05b6f"></a><br></td></tr>
|
|
</table>
|
|
<hr><a name="_details"></a><h2>Detailed Description</h2>
|
|
Provides factory methods for creating <a class="el" href="classXQQuery.html" title="Encapsulates a query expression.">XQQuery</a> and <a class="el" href="classDynamicContext.html" title="The execution time dynamic context interface.">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" title="Provides factory methods for creating XQQuery and DynamicContext objects.">XQilla</a>. <dl compact><dt><b>Examples: </b></dt><dd>
|
|
|
|
<p>
|
|
<a class="el" href="simple-basic_8cpp-example.html#_a0">simple-basic.cpp</a>, and <a class="el" href="simple-context-item_8cpp-example.html#_a0">simple-context-item.cpp</a>.</dl><hr><h2>Member Enumeration Documentation</h2>
|
|
<a class="anchor" name="7fbc185e109c8ce3da425054685e8ba1"></a><!-- doxytag: member="XQilla::Flags" ref="7fbc185e109c8ce3da425054685e8ba1" args="" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">enum <a class="el" href="classXQilla.html#7fbc185e109c8ce3da425054685e8ba1">XQilla::Flags</a> </td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Flags used by the <a class="el" href="classXQilla.html" title="Provides factory methods for creating XQQuery and DynamicContext objects.">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> </td><td>
|
|
Don't perform static resolution or any optimization. </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> </td><td>
|
|
Don't adopt the context and delete it when the <a class="el" href="classXQQuery.html" title="Encapsulates a query expression.">XQQuery</a> is deleted. </td></tr>
|
|
<tr><td valign="top"><em><a class="anchor" name="7fbc185e109c8ce3da425054685e8ba1b2c48d29c5bbf136cf2d2e8aff5857ef"></a><!-- doxytag: member="DEBUG_QUERY" ref="7fbc185e109c8ce3da425054685e8ba1b2c48d29c5bbf136cf2d2e8aff5857ef" args="" -->DEBUG_QUERY</em> </td><td>
|
|
Build debugging hooks into the query to enable the use of <a class="el" href="classDebugListener.html" title="A class used to listen for debugging information.">DebugListener</a>. </td></tr>
|
|
<tr><td valign="top"><em><a class="anchor" name="7fbc185e109c8ce3da425054685e8ba11f4e0efac3074968239141cca9138c1b"></a><!-- doxytag: member="NO_OPTIMIZATION" ref="7fbc185e109c8ce3da425054685e8ba11f4e0efac3074968239141cca9138c1b" args="" -->NO_OPTIMIZATION</em> </td><td>
|
|
Don't perform optimization. </td></tr>
|
|
</table>
|
|
</dl>
|
|
|
|
</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">
|
|
<tr>
|
|
<td class="memname">enum <a class="el" href="classXQilla.html#841f488b890ff0e4d20b5000f2e1ce4d">XQilla::Language</a> </td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<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> </td><td>
|
|
</td></tr>
|
|
<tr><td valign="top"><em><a class="anchor" name="841f488b890ff0e4d20b5000f2e1ce4dd3c49240323fbd44cc8b7e7f18a827d2"></a><!-- doxytag: member="XPATH2" ref="841f488b890ff0e4d20b5000f2e1ce4dd3c49240323fbd44cc8b7e7f18a827d2" args="" -->XPATH2</em> </td><td>
|
|
</td></tr>
|
|
<tr><td valign="top"><em><a class="anchor" name="841f488b890ff0e4d20b5000f2e1ce4d636592195b94e2d64e2d8a9f6843059e"></a><!-- doxytag: member="FULLTEXT" ref="841f488b890ff0e4d20b5000f2e1ce4d636592195b94e2d64e2d8a9f6843059e" args="" -->FULLTEXT</em> </td><td>
|
|
</td></tr>
|
|
<tr><td valign="top"><em><a class="anchor" name="841f488b890ff0e4d20b5000f2e1ce4de59ccc2a93b8900516088c6034f8d4ed"></a><!-- doxytag: member="UPDATE" ref="841f488b890ff0e4d20b5000f2e1ce4de59ccc2a93b8900516088c6034f8d4ed" args="" -->UPDATE</em> </td><td>
|
|
</td></tr>
|
|
<tr><td valign="top"><em><a class="anchor" name="841f488b890ff0e4d20b5000f2e1ce4d0696b98371490251911e7e64e3c0d599"></a><!-- doxytag: member="EXTENSIONS" ref="841f488b890ff0e4d20b5000f2e1ce4d0696b98371490251911e7e64e3c0d599" args="" -->EXTENSIONS</em> </td><td>
|
|
</td></tr>
|
|
<tr><td valign="top"><em><a class="anchor" name="841f488b890ff0e4d20b5000f2e1ce4de3a1c10f1b913f6b49ac22d500ff8ff4"></a><!-- doxytag: member="XSLT2" ref="841f488b890ff0e4d20b5000f2e1ce4de3a1c10f1b913f6b49ac22d500ff8ff4" args="" -->XSLT2</em> </td><td>
|
|
</td></tr>
|
|
<tr><td valign="top"><em><a class="anchor" name="841f488b890ff0e4d20b5000f2e1ce4d669939147235c3acb83b25b4425b9e4a"></a><!-- doxytag: member="XQUERY_FULLTEXT" ref="841f488b890ff0e4d20b5000f2e1ce4d669939147235c3acb83b25b4425b9e4a" args="" -->XQUERY_FULLTEXT</em> </td><td>
|
|
</td></tr>
|
|
<tr><td valign="top"><em><a class="anchor" name="841f488b890ff0e4d20b5000f2e1ce4d83707b5b2a4f6a50e73b9f8f3cc0de25"></a><!-- doxytag: member="XPATH2_FULLTEXT" ref="841f488b890ff0e4d20b5000f2e1ce4d83707b5b2a4f6a50e73b9f8f3cc0de25" args="" -->XPATH2_FULLTEXT</em> </td><td>
|
|
</td></tr>
|
|
<tr><td valign="top"><em><a class="anchor" name="841f488b890ff0e4d20b5000f2e1ce4d4ee300ad11097fbcb1a0165793be836e"></a><!-- doxytag: member="XQUERY_UPDATE" ref="841f488b890ff0e4d20b5000f2e1ce4d4ee300ad11097fbcb1a0165793be836e" args="" -->XQUERY_UPDATE</em> </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> </td><td>
|
|
</td></tr>
|
|
<tr><td valign="top"><em><a class="anchor" name="841f488b890ff0e4d20b5000f2e1ce4dadb6d15aec9f4eaeb70ee64f0c0bacea"></a><!-- doxytag: member="XSLT2_FULLTEXT" ref="841f488b890ff0e4d20b5000f2e1ce4dadb6d15aec9f4eaeb70ee64f0c0bacea" args="" -->XSLT2_FULLTEXT</em> </td><td>
|
|
</td></tr>
|
|
</table>
|
|
</dl>
|
|
|
|
</div>
|
|
</div><p>
|
|
<hr><h2>Constructor & Destructor Documentation</h2>
|
|
<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">
|
|
<tr>
|
|
<td class="memname">XQilla::XQilla </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>0</code> </td>
|
|
<td> ) </td>
|
|
<td width="100%"></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Constructs the object.
|
|
<p>
|
|
In the process, XQillaPlatformUtils::initialize() is called to initialize <a class="el" href="classXQilla.html" title="Provides factory methods for creating XQQuery and DynamicContext objects.">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> </td><td>If provided, this is the MemoryManager used to initialize Xerces. </td></tr>
|
|
</table>
|
|
</dl>
|
|
|
|
</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">
|
|
<tr>
|
|
<td class="memname">XQilla::~XQilla </td>
|
|
<td>(</td>
|
|
<td class="paramname"> </td>
|
|
<td> ) </td>
|
|
<td width="100%"></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Destructs the object.
|
|
<p>
|
|
In the process, XQillaPlatformUtils::terminate() is called to terminate <a class="el" href="classXQilla.html" title="Provides factory methods for creating XQQuery and DynamicContext objects.">XQilla</a> and Xerces.
|
|
</div>
|
|
</div><p>
|
|
<hr><h2>Member Function Documentation</h2>
|
|
<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)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static <a class="el" href="classXQQuery.html">XQQuery</a>* XQilla::parse </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const XMLCh * </td>
|
|
<td class="paramname"> <em>query</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> = <code>0</code>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const XMLCh * </td>
|
|
<td class="paramname"> <em>queryFile</em> = <code>NULL</code>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">unsigned int </td>
|
|
<td class="paramname"> <em>flags</em> = <code>0</code>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></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>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td width="100%"><code> [static]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Parse the expression contained in the given query string.
|
|
<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>query</em> </td><td>A string containing the expression to parse. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>context</em> </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>queryFile</em> </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>
|
|
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A bitwise OR of the Flags constants, that control aspects of how the <a class="el" href="classXQQuery.html" title="Encapsulates a query expression.">XQQuery</a> object is created. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>memMgr</em> </td><td>If specified, the memory manager used to create the <a class="el" href="classXQQuery.html" title="Encapsulates a query expression.">XQQuery</a> object.</td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The object that represents the parsed expression.</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 parse error occurs. </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl compact><dt><b>Examples: </b></dt><dd>
|
|
<a class="el" href="simple-basic_8cpp-example.html#a2">simple-basic.cpp</a>, and <a class="el" href="simple-context-item_8cpp-example.html#a2">simple-context-item.cpp</a>.</dl>
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="bcf324de7806b1f8c992129a4783d109"></a><!-- doxytag: member="XQilla::parse" ref="bcf324de7806b1f8c992129a4783d109" args="(const xercesc::InputSource &querySrc, DynamicContext *context=0, unsigned int flags=0, xercesc::MemoryManager *memMgr=xercesc::XMLPlatformUtils::fgMemoryManager)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<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> & </td>
|
|
<td class="paramname"> <em>querySrc</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> = <code>0</code>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">unsigned int </td>
|
|
<td class="paramname"> <em>flags</em> = <code>0</code>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></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>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td width="100%"><code> [static]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Parse the expression from the given InputSource.
|
|
<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>querySrc</em> </td><td>An InputSource which the expression will be parsed from. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>context</em> </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> </td><td>A bitwise OR of the Flags constants, that control aspects of how the <a class="el" href="classXQQuery.html" title="Encapsulates a query expression.">XQQuery</a> object is created. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>memMgr</em> </td><td>If specified, the memory manager used to create the <a class="el" href="classXQQuery.html" title="Encapsulates a query expression.">XQQuery</a> object.</td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The object that represents the parsed expression.</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 parse error occurs. </td></tr>
|
|
</table>
|
|
</dl>
|
|
|
|
</div>
|
|
</div><p>
|
|
<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)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static <a class="el" href="classXQQuery.html">XQQuery</a>* XQilla::parseFromURI </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const XMLCh * </td>
|
|
<td class="paramname"> <em>queryFile</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> = <code>0</code>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">unsigned int </td>
|
|
<td class="paramname"> <em>flags</em> = <code>0</code>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></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>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td width="100%"><code> [static]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<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> </td><td>The URL of the expression to parse. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>context</em> </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> </td><td>A bitwise OR of the Flags constants, that control aspects of how the <a class="el" href="classXQQuery.html" title="Encapsulates a query expression.">XQQuery</a> object is created. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>memMgr</em> </td><td>If specified, the memory manager used to create the <a class="el" href="classXQQuery.html" title="Encapsulates a query expression.">XQQuery</a> object.</td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The object that represents the parsed expression.</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 parse error occurs. </td></tr>
|
|
</table>
|
|
</dl>
|
|
|
|
</div>
|
|
</div><p>
|
|
<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)" -->
|
|
<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>
|
|
<td class="paramtype"><a class="el" href="classXQilla.html#841f488b890ff0e4d20b5000f2e1ce4d">Language</a> </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> * </td>
|
|
<td class="paramname"> <em>conf</em> = <code>0</code>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></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>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td width="100%"><code> [static]</code></td>
|
|
</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> </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>
|
|
<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>
|
|
</div>
|
|
<hr size="1"><address style="text-align: right;"><small>Generated on Mon Jan 5 19:54:25 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>
|