164 lines
18 KiB
HTML
164 lines
18 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.6.1 -->
|
|
<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><a href="annotated.html"><span>Classes</span></a></li>
|
|
<li class="current"><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="files.html"><span>File List</span></a></li>
|
|
<li><a href="globals.html"><span>File Members</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<h1>XQilla.hpp</h1><a href="XQilla_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
|
|
<a name="l00002"></a>00002 <span class="comment"> * Copyright (c) 2001, 2008,</span>
|
|
<a name="l00003"></a>00003 <span class="comment"> * DecisionSoft Limited. All rights reserved.</span>
|
|
<a name="l00004"></a>00004 <span class="comment"> * Copyright (c) 2004, 2015 Oracle and/or its affiliates. All rights reserved.</span>
|
|
<a name="l00005"></a>00005 <span class="comment"> * </span>
|
|
<a name="l00006"></a>00006 <span class="comment"> *</span>
|
|
<a name="l00007"></a>00007 <span class="comment"> * Licensed under the Apache License, Version 2.0 (the "License");</span>
|
|
<a name="l00008"></a>00008 <span class="comment"> * you may not use this file except in compliance with the License.</span>
|
|
<a name="l00009"></a>00009 <span class="comment"> * You may obtain a copy of the License at</span>
|
|
<a name="l00010"></a>00010 <span class="comment"> *</span>
|
|
<a name="l00011"></a>00011 <span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span>
|
|
<a name="l00012"></a>00012 <span class="comment"> *</span>
|
|
<a name="l00013"></a>00013 <span class="comment"> * Unless required by applicable law or agreed to in writing, software</span>
|
|
<a name="l00014"></a>00014 <span class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</span>
|
|
<a name="l00015"></a>00015 <span class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span>
|
|
<a name="l00016"></a>00016 <span class="comment"> * See the License for the specific language governing permissions and</span>
|
|
<a name="l00017"></a>00017 <span class="comment"> * limitations under the License.</span>
|
|
<a name="l00018"></a>00018 <span class="comment"> */</span>
|
|
<a name="l00019"></a>00019
|
|
<a name="l00020"></a>00020 <span class="preprocessor">#ifndef _XQILLA_07637_HPP</span>
|
|
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor">#define _XQILLA_07637_HPP</span>
|
|
<a name="l00022"></a>00022 <span class="preprocessor"></span>
|
|
<a name="l00023"></a>00023 <span class="preprocessor">#include <xqilla/framework/XQillaExport.hpp></span>
|
|
<a name="l00024"></a>00024
|
|
<a name="l00025"></a>00025 <span class="preprocessor">#include <<a class="code" href="MemoryManager_8hpp.html">xercesc/framework/MemoryManager.hpp</a>></span>
|
|
<a name="l00026"></a>00026 <span class="preprocessor">#include <<a class="code" href="PlatformUtils_8hpp.html">xercesc/util/PlatformUtils.hpp</a>></span>
|
|
<a name="l00027"></a>00027 <span class="preprocessor">#include <<a class="code" href="XMemory_8hpp.html">xercesc/util/XMemory.hpp</a>></span>
|
|
<a name="l00028"></a>00028
|
|
<a name="l00029"></a>00029 <span class="keyword">class </span><a class="code" href="classDynamicContext.html" title="The execution time dynamic context interface.">DynamicContext</a>;
|
|
<a name="l00030"></a>00030 <span class="keyword">class </span><a class="code" href="classXPath2MemoryManager.html">XPath2MemoryManager</a>;
|
|
<a name="l00031"></a>00031 <span class="keyword">class </span><a class="code" href="classXQillaConfiguration.html">XQillaConfiguration</a>;
|
|
<a name="l00032"></a>00032 <span class="keyword">class </span>Optimizer;
|
|
<a name="l00033"></a>00033 <span class="keyword">class </span>DelayedFuncFactory;
|
|
<a name="l00034"></a>00034 <span class="keyword">class </span><a class="code" href="classXQQuery.html" title="Encapsulates a query expression.">XQQuery</a>;
|
|
<a name="l00035"></a>00035
|
|
<a name="l00036"></a><a class="code" href="namespacexercesc.html">00036</a> XERCES_CPP_NAMESPACE_BEGIN
|
|
<a name="l00037"></a>00037 <span class="keyword">class </span><a class="code" href="classxercesc_1_1InputSource.html" title="A single input source for an XML entity.">InputSource</a>;
|
|
<a name="l00038"></a>00038 <span class="keyword">class </span>XMLBuffer;
|
|
<a name="l00039"></a>00039 XERCES_CPP_NAMESPACE_END
|
|
<a name="l00040"></a>00040
|
|
<a name="l00041"></a><a class="code" href="namespaceCompileDelayedModule.html">00041</a> <span class="keyword">namespace </span>CompileDelayedModule {
|
|
<a name="l00042"></a>00042 <span class="keywordtype">void</span> <a class="code" href="namespaceCompileDelayedModule.html#a958748a8c9f11c714e1a287ed088d949">compile</a>(<span class="keyword">const</span> XMLCh *queryFile);
|
|
<a name="l00043"></a>00043 }
|
|
<a name="l00044"></a>00044
|
|
<a name="l00052"></a><a class="code" href="classXQilla.html">00052</a> <span class="keyword">class </span>XQILLA_API <a class="code" href="classXQilla.html" title="Provides factory methods for creating XQQuery and DynamicContext objects.">XQilla</a> : <span class="keyword">public</span> XERCES_CPP_NAMESPACE_QUALIFIER XMemory
|
|
<a name="l00053"></a>00053 {
|
|
<a name="l00054"></a>00054 <span class="keyword">public</span>:
|
|
<a name="l00056"></a><a class="code" href="classXQilla.html#a7fbc185e109c8ce3da425054685e8ba1">00056</a> <span class="keyword">enum</span> <a class="code" href="classXQilla.html#a7fbc185e109c8ce3da425054685e8ba1" title="Flags used by the XQilla methods. These are used by bitwise OR-ing (|) their values...">Flags</a> {
|
|
<a name="l00057"></a><a class="code" href="classXQilla.html#a7fbc185e109c8ce3da425054685e8ba1a3629b3bfdf036418daad522664441e9d">00057</a> NO_STATIC_RESOLUTION = 0x1,
|
|
<a name="l00058"></a><a class="code" href="classXQilla.html#a7fbc185e109c8ce3da425054685e8ba1a99bed3057d85109e34e9f536c30dc514">00058</a> NO_ADOPT_CONTEXT = 0x2,
|
|
<a name="l00059"></a><a class="code" href="classXQilla.html#a7fbc185e109c8ce3da425054685e8ba1ab2c48d29c5bbf136cf2d2e8aff5857ef">00059</a> DEBUG_QUERY = 0x4,
|
|
<a name="l00060"></a><a class="code" href="classXQilla.html#a7fbc185e109c8ce3da425054685e8ba1a1f4e0efac3074968239141cca9138c1b">00060</a> NO_OPTIMIZATION = 0x8,
|
|
<a name="l00061"></a><a class="code" href="classXQilla.html#a7fbc185e109c8ce3da425054685e8ba1a506edcf3f1c1a7b1942b8b877ec50ad0">00061</a> NO_DEFAULT_MODULES = 0x10
|
|
<a name="l00062"></a>00062 };
|
|
<a name="l00063"></a>00063
|
|
<a name="l00065"></a><a class="code" href="classXQilla.html#a841f488b890ff0e4d20b5000f2e1ce4d">00065</a> <span class="keyword">enum</span> <a class="code" href="classXQilla.html#a841f488b890ff0e4d20b5000f2e1ce4d" title="Enumeration used to select a language to parse.">Language</a> {
|
|
<a name="l00066"></a><a class="code" href="classXQilla.html#a841f488b890ff0e4d20b5000f2e1ce4da1ed528e9b6d99de2caebe09430dd6605">00066</a> XQUERY = 0x00,
|
|
<a name="l00067"></a><a class="code" href="classXQilla.html#a841f488b890ff0e4d20b5000f2e1ce4dad3c49240323fbd44cc8b7e7f18a827d2">00067</a> XPATH2 = 0x01,
|
|
<a name="l00068"></a><a class="code" href="classXQilla.html#a841f488b890ff0e4d20b5000f2e1ce4da636592195b94e2d64e2d8a9f6843059e">00068</a> FULLTEXT = 0x02,
|
|
<a name="l00069"></a><a class="code" href="classXQilla.html#a841f488b890ff0e4d20b5000f2e1ce4dae59ccc2a93b8900516088c6034f8d4ed">00069</a> UPDATE = 0x04,
|
|
<a name="l00070"></a><a class="code" href="classXQilla.html#a841f488b890ff0e4d20b5000f2e1ce4da0696b98371490251911e7e64e3c0d599">00070</a> EXTENSIONS = 0x08,
|
|
<a name="l00071"></a><a class="code" href="classXQilla.html#a841f488b890ff0e4d20b5000f2e1ce4dae3a1c10f1b913f6b49ac22d500ff8ff4">00071</a> XSLT2 = 0x10,
|
|
<a name="l00072"></a><a class="code" href="classXQilla.html#a841f488b890ff0e4d20b5000f2e1ce4da37f2cbc044d9206a60058363ad3775ba">00072</a> VERSION3 = 0x20,
|
|
<a name="l00073"></a>00073
|
|
<a name="l00074"></a><a class="code" href="classXQilla.html#a841f488b890ff0e4d20b5000f2e1ce4da669939147235c3acb83b25b4425b9e4a">00074</a> XQUERY_FULLTEXT = (XQUERY | FULLTEXT),
|
|
<a name="l00075"></a><a class="code" href="classXQilla.html#a841f488b890ff0e4d20b5000f2e1ce4da4ee300ad11097fbcb1a0165793be836e">00075</a> XQUERY_UPDATE = (XQUERY | UPDATE),
|
|
<a name="l00076"></a><a class="code" href="classXQilla.html#a841f488b890ff0e4d20b5000f2e1ce4da7eae1fd9b91cd2bb69982d66b707d76c">00076</a> XQUERY_FULLTEXT_UPDATE = (XQUERY | FULLTEXT | UPDATE),
|
|
<a name="l00077"></a><a class="code" href="classXQilla.html#a841f488b890ff0e4d20b5000f2e1ce4da83707b5b2a4f6a50e73b9f8f3cc0de25">00077</a> XPATH2_FULLTEXT = (XPATH2 | FULLTEXT),
|
|
<a name="l00078"></a><a class="code" href="classXQilla.html#a841f488b890ff0e4d20b5000f2e1ce4daadb6d15aec9f4eaeb70ee64f0c0bacea">00078</a> XSLT2_FULLTEXT = (XSLT2 | FULLTEXT),
|
|
<a name="l00079"></a>00079
|
|
<a name="l00080"></a><a class="code" href="classXQilla.html#a841f488b890ff0e4d20b5000f2e1ce4dae303f66fc8c360f9b70fd3ad8a61c03c">00080</a> XQUERY3 = (XQUERY | VERSION3),
|
|
<a name="l00081"></a><a class="code" href="classXQilla.html#a841f488b890ff0e4d20b5000f2e1ce4da3818cc368ce2cdb6869becd1e704a6a3">00081</a> XQUERY3_FULLTEXT = (XQUERY | VERSION3 | FULLTEXT),
|
|
<a name="l00082"></a><a class="code" href="classXQilla.html#a841f488b890ff0e4d20b5000f2e1ce4dab24314ede6b71284fe38a16843d1c474">00082</a> XQUERY3_UPDATE = (XQUERY | VERSION3 | UPDATE),
|
|
<a name="l00083"></a><a class="code" href="classXQilla.html#a841f488b890ff0e4d20b5000f2e1ce4da6d616974159bb92b560f3c83a5697866">00083</a> XQUERY3_FULLTEXT_UPDATE = (XQUERY | VERSION3 | FULLTEXT | UPDATE),
|
|
<a name="l00084"></a><a class="code" href="classXQilla.html#a841f488b890ff0e4d20b5000f2e1ce4da03984f9429f58f0d625022df50a8079a">00084</a> XPATH3 = (XPATH2 | VERSION3),
|
|
<a name="l00085"></a><a class="code" href="classXQilla.html#a841f488b890ff0e4d20b5000f2e1ce4daf38dd2e93ef69baba09f15a20bc42345">00085</a> XPATH3_FULLTEXT = (XPATH2 | VERSION3 | FULLTEXT),
|
|
<a name="l00086"></a><a class="code" href="classXQilla.html#a841f488b890ff0e4d20b5000f2e1ce4da1f37571613759082486383322ecfa3cc">00086</a> XSLT3 = (XSLT2 | VERSION3),
|
|
<a name="l00087"></a><a class="code" href="classXQilla.html#a841f488b890ff0e4d20b5000f2e1ce4da7953676b6fb1505cb9940b17912eec8f">00087</a> XSLT3_FULLTEXT = (XSLT2 | VERSION3 | FULLTEXT),
|
|
<a name="l00088"></a>00088 };
|
|
<a name="l00089"></a>00089
|
|
<a name="l00096"></a>00096 <a class="code" href="classXQilla.html" title="Provides factory methods for creating XQQuery and DynamicContext objects.">XQilla</a>(XERCES_CPP_NAMESPACE_QUALIFIER MemoryManager *memMgr = 0);
|
|
<a name="l00097"></a>00097
|
|
<a name="l00102"></a>00102 ~<a class="code" href="classXQilla.html" title="Provides factory methods for creating XQQuery and DynamicContext objects.">XQilla</a>();
|
|
<a name="l00103"></a>00103
|
|
<a name="l00105"></a>00105 <span class="comment">// @{</span>
|
|
<a name="l00106"></a>00106
|
|
<a name="l00123"></a>00123 <span class="keyword">static</span> <a class="code" href="classXQQuery.html" title="Encapsulates a query expression.">XQQuery</a>* parse(<span class="keyword">const</span> XMLCh* query,
|
|
<a name="l00124"></a>00124 <a class="code" href="classDynamicContext.html" title="The execution time dynamic context interface.">DynamicContext</a>* context = 0,
|
|
<a name="l00125"></a>00125 <span class="keyword">const</span> XMLCh* queryFile = NULL,
|
|
<a name="l00126"></a>00126 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> flags = 0,
|
|
<a name="l00127"></a>00127 XERCES_CPP_NAMESPACE_QUALIFIER MemoryManager *memMgr =
|
|
<a name="l00128"></a>00128 XERCES_CPP_NAMESPACE_QUALIFIER XMLPlatformUtils::fgMemoryManager,
|
|
<a name="l00129"></a>00129 <a class="code" href="classXQQuery.html" title="Encapsulates a query expression.">XQQuery</a> *result = 0);
|
|
<a name="l00130"></a>00130
|
|
<a name="l00145"></a>00145 <span class="keyword">static</span> <a class="code" href="classXQQuery.html" title="Encapsulates a query expression.">XQQuery</a>* parse(<span class="keyword">const</span> XERCES_CPP_NAMESPACE_QUALIFIER InputSource& querySrc,
|
|
<a name="l00146"></a>00146 <a class="code" href="classDynamicContext.html" title="The execution time dynamic context interface.">DynamicContext</a>* context = 0,
|
|
<a name="l00147"></a>00147 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> flags = 0,
|
|
<a name="l00148"></a>00148 XERCES_CPP_NAMESPACE_QUALIFIER MemoryManager *memMgr =
|
|
<a name="l00149"></a>00149 XERCES_CPP_NAMESPACE_QUALIFIER XMLPlatformUtils::fgMemoryManager,
|
|
<a name="l00150"></a>00150 <a class="code" href="classXQQuery.html" title="Encapsulates a query expression.">XQQuery</a> *result = 0);
|
|
<a name="l00151"></a>00151
|
|
<a name="l00166"></a>00166 <span class="keyword">static</span> <a class="code" href="classXQQuery.html" title="Encapsulates a query expression.">XQQuery</a>* parseFromURI(<span class="keyword">const</span> XMLCh* queryFile,
|
|
<a name="l00167"></a>00167 <a class="code" href="classDynamicContext.html" title="The execution time dynamic context interface.">DynamicContext</a>* context = 0,
|
|
<a name="l00168"></a>00168 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> flags = 0,
|
|
<a name="l00169"></a>00169 XERCES_CPP_NAMESPACE_QUALIFIER MemoryManager *memMgr =
|
|
<a name="l00170"></a>00170 XERCES_CPP_NAMESPACE_QUALIFIER XMLPlatformUtils::fgMemoryManager,
|
|
<a name="l00171"></a>00171 <a class="code" href="classXQQuery.html" title="Encapsulates a query expression.">XQQuery</a> *result = 0);
|
|
<a name="l00172"></a>00172
|
|
<a name="l00174"></a>00174
|
|
<a name="l00176"></a>00176 <span class="comment">// @{</span>
|
|
<a name="l00177"></a>00177
|
|
<a name="l00183"></a>00183 <span class="keyword">static</span> <a class="code" href="classDynamicContext.html" title="The execution time dynamic context interface.">DynamicContext</a> *createContext(<a class="code" href="classXQilla.html#a841f488b890ff0e4d20b5000f2e1ce4d" title="Enumeration used to select a language to parse.">Language</a> language = XQUERY,
|
|
<a name="l00184"></a>00184 <a class="code" href="classXQillaConfiguration.html">XQillaConfiguration</a> *conf = 0,
|
|
<a name="l00185"></a>00185 XERCES_CPP_NAMESPACE_QUALIFIER MemoryManager *memMgr =
|
|
<a name="l00186"></a>00186 XERCES_CPP_NAMESPACE_QUALIFIER XMLPlatformUtils::fgMemoryManager);
|
|
<a name="l00187"></a>00187
|
|
<a name="l00189"></a>00189
|
|
<a name="l00190"></a>00190 <span class="keyword">private</span>:
|
|
<a name="l00191"></a>00191 <span class="keyword">static</span> <span class="keywordtype">bool</span> readQuery(<span class="keyword">const</span> XMLCh* queryFile,
|
|
<a name="l00192"></a>00192 XERCES_CPP_NAMESPACE_QUALIFIER MemoryManager* memMgr,
|
|
<a name="l00193"></a>00193 XERCES_CPP_NAMESPACE_QUALIFIER XMLBuffer& queryText);
|
|
<a name="l00194"></a>00194 <span class="keyword">static</span> <span class="keywordtype">bool</span> readQuery(<span class="keyword">const</span> XERCES_CPP_NAMESPACE_QUALIFIER InputSource& querySrc,
|
|
<a name="l00195"></a>00195 XERCES_CPP_NAMESPACE_QUALIFIER MemoryManager* memMgr,
|
|
<a name="l00196"></a>00196 XERCES_CPP_NAMESPACE_QUALIFIER XMLBuffer& queryText);
|
|
<a name="l00197"></a>00197 <span class="keyword">static</span> Optimizer *createOptimizer(<a class="code" href="classDynamicContext.html" title="The execution time dynamic context interface.">DynamicContext</a> *context, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> flags);
|
|
<a name="l00198"></a>00198
|
|
<a name="l00199"></a>00199 <span class="keyword">static</span> <span class="keywordtype">void</span> compileDelayedModule(<span class="keyword">const</span> XMLCh* queryFile, XERCES_CPP_NAMESPACE_QUALIFIER MemoryManager *memMgr =
|
|
<a name="l00200"></a>00200 XERCES_CPP_NAMESPACE_QUALIFIER XMLPlatformUtils::fgMemoryManager);
|
|
<a name="l00201"></a>00201
|
|
<a name="l00202"></a>00202 <span class="keyword">friend</span> <span class="keywordtype">void</span> <a class="code" href="namespaceCompileDelayedModule.html#a958748a8c9f11c714e1a287ed088d949">CompileDelayedModule::compile</a>(<span class="keyword">const</span> XMLCh *queryFile);
|
|
<a name="l00203"></a><a class="code" href="classXQilla.html#ac4c3ad6884825b45fb3a109efa5df9e4">00203</a> <span class="keyword">friend</span> <span class="keyword">class </span>DelayedFuncFactory;
|
|
<a name="l00204"></a>00204 };
|
|
<a name="l00205"></a>00205
|
|
<a name="l00206"></a>00206 <span class="preprocessor">#endif</span>
|
|
</pre></div></div>
|
|
<hr size="1"/><address style="text-align: right;"><small>Generated on 18 May 2015 for XQilla Simple API by
|
|
<a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
|
|
</body>
|
|
</html>
|