This commit is contained in:
King_DuckZ 2020-02-17 22:17:06 +01:00
parent 27eff2f0ef
commit 4bc0157dcd
3020 changed files with 129849 additions and 76185 deletions

View file

@ -5,19 +5,17 @@
<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&amp;type=2" border="0" alt="SourceForge.net Logo" /></a>
<!-- Generated by Doxygen 1.5.1 -->
<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><a href="classes.html"><span>Classes</span></a></li>
<li id="current"><a href="files.html"><span>Files</span></a></li>
</ul></div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul></div>
<!-- Generated by Doxygen 1.5.5 -->
<div class="navigation" id="top">
<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><a href="classes.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>
<h1>ATStringOrDerived.hpp</h1><a href="ATStringOrDerived_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>
@ -48,52 +46,53 @@
<a name="l00028"></a>00028 <span class="preprocessor">#include &lt;<a class="code" href="Numeric_8hpp.html">xqilla/items/Numeric.hpp</a>&gt;</span>
<a name="l00029"></a>00029
<a name="l00030"></a>00030 <span class="keyword">class </span><a class="code" href="classCollation.html">Collation</a>;
<a name="l00031"></a>00031 <span class="keyword">class </span><a class="code" href="classResult.html">Result</a>;
<a name="l00032"></a>00032 <span class="keyword">class </span><a class="code" href="classDynamicContext.html">DynamicContext</a>;
<a name="l00031"></a>00031 <span class="keyword">class </span><a class="code" href="classResult.html" title="A scoped pointer wrapper for the lazily evaluated query result.">Result</a>;
<a name="l00032"></a>00032 <span class="keyword">class </span><a class="code" href="classDynamicContext.html" title="The execution time dynamic context interface.">DynamicContext</a>;
<a name="l00033"></a>00033
<a name="l00034"></a><a class="code" href="classATStringOrDerived.html">00034</a> <span class="keyword">class </span>XQILLA_API <a class="code" href="classATStringOrDerived.html">ATStringOrDerived</a> : <span class="keyword">public</span> <a class="code" href="classAnyAtomicType.html">AnyAtomicType</a>
<a name="l00035"></a>00035 {
<a name="l00036"></a>00036 <span class="keyword">public</span>:
<a name="l00037"></a><a class="code" href="classATStringOrDerived.html#632c2a8dd7daf9d0363b176066a559c6">00037</a> <span class="keyword">typedef</span> <a class="code" href="classRefCountPointer.html">RefCountPointer&lt;const ATStringOrDerived&gt;</a> <a class="code" href="classRefCountPointer.html">Ptr</a>;
<a name="l00037"></a><a class="code" href="classATStringOrDerived.html#632c2a8dd7daf9d0363b176066a559c6">00037</a> <span class="keyword">typedef</span> <a class="code" href="classRefCountPointer.html" title="Super class of all the reference counted wrappers for Items.">RefCountPointer&lt;const ATStringOrDerived&gt;</a> <a class="code" href="classRefCountPointer.html" title="Super class of all the reference counted wrappers for Items.">Ptr</a>;
<a name="l00038"></a>00038
<a name="l00039"></a>00039 <span class="comment">/* Get the name of the primitive type (basic type) of this type</span>
<a name="l00040"></a>00040 <span class="comment"> * (ie "decimal" for xs:decimal) */</span>
<a name="l00041"></a>00041 <span class="keyword">virtual</span> <span class="keyword">const</span> XMLCh* <a class="code" href="classAnyAtomicType.html#a482a57403c472e1c7a69df340dc6649">getPrimitiveTypeName</a>() <span class="keyword">const </span>= 0;
<a name="l00041"></a>00041 <span class="keyword">virtual</span> <span class="keyword">const</span> XMLCh* <a class="code" href="classAnyAtomicType.html#d69ead9a3319cd1b214fd738698994f1">getPrimitiveTypeName</a>() <span class="keyword">const</span> = 0;
<a name="l00042"></a>00042
<a name="l00043"></a>00043 <span class="comment">/* Get the namespace URI for this type */</span>
<a name="l00044"></a>00044 <span class="keyword">virtual</span> <span class="keyword">const</span> XMLCh* <a class="code" href="classAnyAtomicType.html#f6bf3eb4e7d56a982c82afebfda26b3b">getTypeURI</a>() <span class="keyword">const </span>= 0;
<a name="l00044"></a>00044 <span class="keyword">virtual</span> <span class="keyword">const</span> XMLCh* <a class="code" href="classAnyAtomicType.html#67113b4effaace8976786fdb59f32036">getTypeURI</a>() <span class="keyword">const</span> = 0;
<a name="l00045"></a>00045
<a name="l00046"></a>00046 <span class="comment">/* Get the name of this type (ie "integer" for xs:integer) */</span>
<a name="l00047"></a>00047 <span class="keyword">virtual</span> <span class="keyword">const</span> XMLCh* <a class="code" href="classAnyAtomicType.html#063dd62c1853c339dc80f5ff48c1b6b4">getTypeName</a>() <span class="keyword">const </span>= 0;
<a name="l00047"></a>00047 <span class="keyword">virtual</span> <span class="keyword">const</span> XMLCh* <a class="code" href="classAnyAtomicType.html#a4c3027d36c7000a1d53974ae77d7a9c">getTypeName</a>() <span class="keyword">const</span> = 0;
<a name="l00048"></a>00048
<a name="l00049"></a>00049 <span class="comment">/* returns the XMLCh* (canonical) representation of this type */</span>
<a name="l00050"></a>00050 <span class="keyword">virtual</span> <span class="keyword">const</span> XMLCh* <a class="code" href="classAnyAtomicType.html#401defae210c75462304e84605a79244">asString</a>(<span class="keyword">const</span> <a class="code" href="classDynamicContext.html">DynamicContext</a>* context) <span class="keyword">const </span>= 0;
<a name="l00050"></a>00050 <span class="keyword">virtual</span> <span class="keyword">const</span> XMLCh* <a class="code" href="classAnyAtomicType.html#401defae210c75462304e84605a79244">asString</a>(<span class="keyword">const</span> <a class="code" href="classDynamicContext.html" title="The execution time dynamic context interface.">DynamicContext</a>* context) <span class="keyword">const</span> = 0;
<a name="l00051"></a>00051
<a name="l00052"></a>00052 <span class="comment">/* returns this string as a set of codepoints */</span>
<a name="l00053"></a>00053 <span class="keyword">virtual</span> <a class="code" href="classResult.html">Result</a> asCodepoints(<span class="keyword">const</span> <a class="code" href="classDynamicContext.html">DynamicContext</a>* context) <span class="keyword">const </span>= 0;
<a name="l00053"></a>00053 <span class="keyword">virtual</span> <a class="code" href="classResult.html" title="A scoped pointer wrapper for the lazily evaluated query result.">Result</a> asCodepoints(<span class="keyword">const</span> <a class="code" href="classDynamicContext.html" title="The execution time dynamic context interface.">DynamicContext</a>* context) <span class="keyword">const</span> = 0;
<a name="l00054"></a>00054
<a name="l00055"></a>00055 <span class="comment">/* returns the length of this string */</span>
<a name="l00056"></a>00056 <span class="keyword">virtual</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> getLength() <span class="keyword">const </span>= 0;
<a name="l00056"></a>00056 <span class="keyword">virtual</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> getLength() <span class="keyword">const</span> = 0;
<a name="l00057"></a>00057
<a name="l00058"></a>00058 <span class="comment">/* returns the substring starting at startingLoc of given length */</span>
<a name="l00059"></a>00059 <span class="keyword">virtual</span> <a class="code" href="classRefCountPointer.html">ATStringOrDerived::Ptr</a> substring(<span class="keyword">const</span> <a class="code" href="classRefCountPointer.html">Numeric::Ptr</a> &amp;startingLoc, <span class="keyword">const</span> <a class="code" href="classRefCountPointer.html">Numeric::Ptr</a> &amp;length, <span class="keyword">const</span> <a class="code" href="classDynamicContext.html">DynamicContext</a>* context) <span class="keyword">const </span>= 0;
<a name="l00059"></a>00059 <span class="keyword">virtual</span> <a class="code" href="classRefCountPointer.html" title="Super class of all the reference counted wrappers for Items.">ATStringOrDerived::Ptr</a> substring(<span class="keyword">const</span> <a class="code" href="classRefCountPointer.html" title="Super class of all the reference counted wrappers for Items.">Numeric::Ptr</a> &amp;startingLoc, <span class="keyword">const</span> <a class="code" href="classRefCountPointer.html" title="Super class of all the reference counted wrappers for Items.">Numeric::Ptr</a> &amp;length, <span class="keyword">const</span> <a class="code" href="classDynamicContext.html" title="The execution time dynamic context interface.">DynamicContext</a>* context) <span class="keyword">const</span> = 0;
<a name="l00060"></a>00060
<a name="l00061"></a>00061 <span class="comment">/* returns the substring that occurs after the first occurence of pattern */</span>
<a name="l00062"></a>00062 <span class="keyword">virtual</span> <a class="code" href="classRefCountPointer.html">ATStringOrDerived::Ptr</a> substringAfter(<span class="keyword">const</span> <a class="code" href="classRefCountPointer.html">ATStringOrDerived::Ptr</a> &amp;pattern, <a class="code" href="classCollation.html">Collation</a>* collation, <span class="keyword">const</span> <a class="code" href="classDynamicContext.html">DynamicContext</a>* context) <span class="keyword">const </span>= 0;
<a name="l00062"></a>00062 <span class="keyword">virtual</span> <a class="code" href="classRefCountPointer.html" title="Super class of all the reference counted wrappers for Items.">ATStringOrDerived::Ptr</a> substringAfter(<span class="keyword">const</span> <a class="code" href="classRefCountPointer.html" title="Super class of all the reference counted wrappers for Items.">ATStringOrDerived::Ptr</a> &amp;pattern, <a class="code" href="classCollation.html">Collation</a>* collation, <span class="keyword">const</span> <a class="code" href="classDynamicContext.html" title="The execution time dynamic context interface.">DynamicContext</a>* context) <span class="keyword">const</span> = 0;
<a name="l00063"></a>00063
<a name="l00064"></a>00064 <span class="comment">/* returns the substring that occurs before the first occurence of pattern */</span>
<a name="l00065"></a>00065 <span class="keyword">virtual</span> <a class="code" href="classRefCountPointer.html">ATStringOrDerived::Ptr</a> substringBefore(<span class="keyword">const</span> <a class="code" href="classRefCountPointer.html">ATStringOrDerived::Ptr</a> &amp;pattern, <a class="code" href="classCollation.html">Collation</a>* collation, <span class="keyword">const</span> <a class="code" href="classDynamicContext.html">DynamicContext</a>* context) <span class="keyword">const </span>= 0;
<a name="l00065"></a>00065 <span class="keyword">virtual</span> <a class="code" href="classRefCountPointer.html" title="Super class of all the reference counted wrappers for Items.">ATStringOrDerived::Ptr</a> substringBefore(<span class="keyword">const</span> <a class="code" href="classRefCountPointer.html" title="Super class of all the reference counted wrappers for Items.">ATStringOrDerived::Ptr</a> &amp;pattern, <a class="code" href="classCollation.html">Collation</a>* collation, <span class="keyword">const</span> <a class="code" href="classDynamicContext.html" title="The execution time dynamic context interface.">DynamicContext</a>* context) <span class="keyword">const</span> = 0;
<a name="l00066"></a>00066
<a name="l00067"></a>00067 <span class="comment">/* returns true if the two objects' URI are equal (string comparison)</span>
<a name="l00068"></a>00068 <span class="comment"> * false otherwise */</span>
<a name="l00069"></a>00069 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classAnyAtomicType.html#e791665d2cd73da1e6ce1122bce6561b">equals</a>(<span class="keyword">const</span> <a class="code" href="classRefCountPointer.html">AnyAtomicType::Ptr</a> &amp;target, <span class="keyword">const</span> <a class="code" href="classDynamicContext.html">DynamicContext</a>* context) <span class="keyword">const </span>= 0;
<a name="l00069"></a>00069 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classAnyAtomicType.html#0bdd87c29a1f0a5dc28618859f0c5f4e">equals</a>(<span class="keyword">const</span> <a class="code" href="classRefCountPointer.html" title="Super class of all the reference counted wrappers for Items.">AnyAtomicType::Ptr</a> &amp;target, <span class="keyword">const</span> <a class="code" href="classDynamicContext.html" title="The execution time dynamic context interface.">DynamicContext</a>* context) <span class="keyword">const</span> = 0;
<a name="l00070"></a>00070
<a name="l00071"></a>00071 <span class="keyword">virtual</span> <a class="code" href="classAnyAtomicType.html#289c5db5e82b40c2f3e53af7d472f14c">AnyAtomicType::AtomicObjectType</a> <a class="code" href="classAnyAtomicType.html#b1da6fa7575a7d33396ae706f3d1e8f5">getPrimitiveTypeIndex</a>() <span class="keyword">const </span>= 0;
<a name="l00071"></a>00071 <span class="keyword">virtual</span> <a class="code" href="classAnyAtomicType.html#289c5db5e82b40c2f3e53af7d472f14c">AnyAtomicType::AtomicObjectType</a> <a class="code" href="classAnyAtomicType.html#176568ff89d63a208a864d39e6c79dc5">getPrimitiveTypeIndex</a>() <span class="keyword">const</span> = 0;
<a name="l00072"></a>00072 };
<a name="l00073"></a>00073
<a name="l00074"></a>00074 <span class="preprocessor">#endif // _ATSTRINGORDERIVED_HPP</span>
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Apr 28 16:40:48 2008 for XQilla Simple API by&nbsp;
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Mon Jan 5 19:53:54 2009 for XQilla Simple API by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address>
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
</body>
</html>