94 lines
8.1 KiB
HTML
94 lines
8.1 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.3.9.1 -->
|
|
<div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a> | <a class="qindex" href="examples.html">Examples</a></div>
|
|
<div class="nav">
|
|
<a class="el" href="dir_000000.html">include</a> / <a class="el" href="dir_000001.html">xqilla</a> / <a class="el" href="dir_000004.html">events</a></div>
|
|
<h1>EventGenerator.hpp</h1><a href="EventGenerator_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment">00001 <span class="comment">/*</span>
|
|
00002 <span class="comment"> * Copyright (c) 2001-2008</span>
|
|
00003 <span class="comment"> * DecisionSoft Limited. All rights reserved.</span>
|
|
00004 <span class="comment"> * Copyright (c) 2004-2008</span>
|
|
00005 <span class="comment"> * Oracle. All rights reserved.</span>
|
|
00006 <span class="comment"> *</span>
|
|
00007 <span class="comment"> * Licensed under the Apache License, Version 2.0 (the "License");</span>
|
|
00008 <span class="comment"> * you may not use this file except in compliance with the License.</span>
|
|
00009 <span class="comment"> * You may obtain a copy of the License at</span>
|
|
00010 <span class="comment"> *</span>
|
|
00011 <span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span>
|
|
00012 <span class="comment"> *</span>
|
|
00013 <span class="comment"> * Unless required by applicable law or agreed to in writing, software</span>
|
|
00014 <span class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</span>
|
|
00015 <span class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span>
|
|
00016 <span class="comment"> * See the License for the specific language governing permissions and</span>
|
|
00017 <span class="comment"> * limitations under the License.</span>
|
|
00018 <span class="comment"> *</span>
|
|
00019 <span class="comment"> * $Id: EventGenerator.hpp 639 2008-09-01 13:22:54Z jpcs $</span>
|
|
00020 <span class="comment"> */</span>
|
|
00021
|
|
00022 <span class="preprocessor">#ifndef _EVENTGENERATOR_HPP</span>
|
|
00023 <span class="preprocessor"></span><span class="preprocessor">#define _EVENTGENERATOR_HPP</span>
|
|
00024 <span class="preprocessor"></span>
|
|
00025 <span class="preprocessor">#include <xqilla/framework/XQillaExport.hpp></span>
|
|
00026 <span class="preprocessor">#include <<a class="code" href="ReferenceCounted_8hpp.html">xqilla/framework/ReferenceCounted.hpp</a>></span>
|
|
00027 <span class="preprocessor">#include <<a class="code" href="ResultImpl_8hpp.html">xqilla/runtime/ResultImpl.hpp</a>></span>
|
|
00028
|
|
00029 <span class="keyword">class </span><a class="code" href="classDynamicContext.html">DynamicContext</a>;
|
|
00030 <span class="keyword">class </span><a class="code" href="classEventHandler.html">EventHandler</a>;
|
|
00031 <span class="keyword">class </span>ASTNode;
|
|
00032 <span class="keyword">class </span>QueryPathNode;
|
|
00033
|
|
<a name="l00034"></a><a class="code" href="classEventGenerator.html">00034</a> <span class="keyword">class </span>XQILLA_API EventGenerator : <span class="keyword">public</span> <a class="code" href="classReferenceCounted.html">ReferenceCounted</a>
|
|
00035 {
|
|
00036 <span class="keyword">public</span>:
|
|
<a name="l00037"></a><a class="code" href="classEventGenerator.html#w0">00037</a> <span class="keyword">typedef</span> <a class="code" href="classRefCountPointer.html">RefCountPointer<EventGenerator></a> <a class="code" href="classRefCountPointer.html">Ptr</a>;
|
|
00038
|
|
<a name="l00039"></a><a class="code" href="classEventGenerator.html#a0">00039</a> <span class="keyword">virtual</span> ~EventGenerator() {}
|
|
00040
|
|
00043 <span class="keyword">virtual</span> <a class="code" href="classRefCountPointer.html">EventGenerator::Ptr</a> generateEvents(<a class="code" href="classEventHandler.html">EventHandler</a> *events, <a class="code" href="classDynamicContext.html">DynamicContext</a> *context) = 0;
|
|
00044
|
|
<a name="l00045"></a><a class="code" href="classEventGenerator.html#e0">00045</a> <span class="keyword">static</span> <span class="keywordtype">void</span> generateAndTailCall(<span class="keyword">const</span> <a class="code" href="classRefCountPointer.html">EventGenerator::Ptr</a> &generator, <a class="code" href="classEventHandler.html">EventHandler</a> *events,
|
|
00046 <a class="code" href="classDynamicContext.html">DynamicContext</a> *context)
|
|
00047 {
|
|
00048 <a class="code" href="classRefCountPointer.html">EventGenerator::Ptr</a> gen = generator;
|
|
00049 <span class="keywordflow">while</span>(gen.<a class="code" href="classRefCountPointer.html#a9">notNull</a>()) {
|
|
00050 gen = gen->generateEvents(events, context);
|
|
00051 }
|
|
00052 }
|
|
00053
|
|
00054 };
|
|
00055
|
|
<a name="l00056"></a><a class="code" href="classASTNodeEventGenerator.html">00056</a> <span class="keyword">class </span>XQILLA_API ASTNodeEventGenerator : <span class="keyword">public</span> EventGenerator
|
|
00057 {
|
|
00058 <span class="keyword">public</span>:
|
|
00059 ASTNodeEventGenerator(<span class="keyword">const</span> ASTNode *ast, <span class="keywordtype">bool</span> preserveNS, <span class="keywordtype">bool</span> preserveType);
|
|
00060
|
|
00061 <span class="keyword">virtual</span> <a class="code" href="classRefCountPointer.html">EventGenerator::Ptr</a> <a class="code" href="classEventGenerator.html#a1">generateEvents</a>(<a class="code" href="classEventHandler.html">EventHandler</a> *events, <a class="code" href="classDynamicContext.html">DynamicContext</a> *context);
|
|
00062
|
|
00063 <span class="keyword">protected</span>:
|
|
<a name="l00064"></a><a class="code" href="classASTNodeEventGenerator.html#p0">00064</a> <span class="keyword">const</span> ASTNode *ast_;
|
|
<a name="l00065"></a><a class="code" href="classASTNodeEventGenerator.html#p2">00065</a> <span class="keywordtype">bool</span> preserveNS_, preserveType_;
|
|
00066 };
|
|
00067
|
|
<a name="l00068"></a><a class="code" href="classGenerateEventsResult.html">00068</a> <span class="keyword">class </span>XQILLA_API GenerateEventsResult : <span class="keyword">public</span> <a class="code" href="classResultImpl.html">ResultImpl</a>
|
|
00069 {
|
|
00070 <span class="keyword">public</span>:
|
|
00071 GenerateEventsResult(<span class="keyword">const</span> ASTNode *ast, <span class="keyword">const</span> QueryPathNode *projection);
|
|
00072
|
|
00073 <span class="keyword">virtual</span> <a class="code" href="classRefCountPointer.html">Item::Ptr</a> <a class="code" href="classResultImpl.html#a4">nextOrTail</a>(<a class="code" href="classResult.html">Result</a> &tail, <a class="code" href="classDynamicContext.html">DynamicContext</a> *context);
|
|
00074
|
|
00075 <span class="keyword">private</span>:
|
|
00076 <span class="keyword">const</span> ASTNode *ast_;
|
|
00077 <span class="keyword">const</span> QueryPathNode *projection_;
|
|
00078 };
|
|
00079
|
|
00080 <span class="preprocessor">#endif</span>
|
|
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri Sep 25 06:55:26 2009 for XQilla Simple API by
|
|
<a href="http://www.doxygen.org/index.html">
|
|
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
|
|
</body>
|
|
</html>
|