XQuilla/docs/simple-api/EventHandler_8hpp_source.html
2020-02-17 22:24:47 +01:00

211 lines
36 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&amp;type=2" border="0" alt="SourceForge.net Logo" /></a>
<!-- Generated by Doxygen 1.8.5 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;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 id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&#160;List</span></a></li>
<li><a href="globals.html"><span>File&#160;Members</span></a></li>
</ul>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_e3266bbc227f825a287bdb912a8a79c0.html">include</a></li><li class="navelem"><a class="el" href="dir_a1bc92396ffc8a3dc7aa16f9f9aed8c7.html">xqilla</a></li><li class="navelem"><a class="el" href="dir_5b066a3a11d24837d6c1438f7c0507f7.html">events</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">EventHandler.hpp</div> </div>
</div><!--header-->
<div class="contents">
<a href="EventHandler_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment"> * Copyright (c) 2001, 2008,</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment"> * DecisionSoft Limited. All rights reserved.</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment"> * Copyright (c) 2004, 2018 Oracle and/or its affiliates. All rights reserved.</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment"> * </span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment"> * Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment"> * you may not use this file except in compliance with the License.</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment"> * You may obtain a copy of the License at</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="comment"> * Unless required by applicable law or agreed to in writing, software</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="comment"> * distributed under the License is distributed on an &quot;AS IS&quot; BASIS,</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="comment"> * See the License for the specific language governing permissions and</span></div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="comment"> * limitations under the License.</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;</div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="preprocessor">#ifndef _EVENTHANDLER_HPP</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define _EVENTHANDLER_HPP</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="preprocessor">#include &lt;xqilla/framework/XQillaExport.hpp&gt;</span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="AnyAtomicType_8hpp.html">xqilla/items/AnyAtomicType.hpp</a>&gt;</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="LocationInfo_8hpp.html">xqilla/ast/LocationInfo.hpp</a>&gt;</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;</div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="preprocessor">#include &lt;xercesc/util/XercesDefs.hpp&gt;</span></div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;</div>
<div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="classEventHandler.html"> 29</a></span>&#160;<span class="keyword">class </span>XQILLA_API <a class="code" href="classEventHandler.html">EventHandler</a></div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;{</div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="classEventHandler.html#a9578358998a3221402df5404ca2776d6"> 32</a></span>&#160; <span class="keyword">virtual</span> <a class="code" href="classEventHandler.html#a9578358998a3221402df5404ca2776d6">~EventHandler</a>() {};</div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;</div>
<div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="classEventHandler.html#a56e778038e88d6c671e4f0f73e717878"> 36</a></span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classEventHandler.html#a56e778038e88d6c671e4f0f73e717878">setLocationInfo</a>(<span class="keyword">const</span> <a class="code" href="classLocationInfo.html">LocationInfo</a> *location) {}</div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> startDocumentEvent(<span class="keyword">const</span> XMLCh *documentURI, <span class="keyword">const</span> XMLCh *encoding) = 0;</div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> endDocumentEvent() = 0;</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> startElementEvent(<span class="keyword">const</span> XMLCh *prefix, <span class="keyword">const</span> XMLCh *uri, <span class="keyword">const</span> XMLCh *localname) = 0;</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> endElementEvent(<span class="keyword">const</span> XMLCh *prefix, <span class="keyword">const</span> XMLCh *uri, <span class="keyword">const</span> XMLCh *localname,</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; <span class="keyword">const</span> XMLCh *typeURI, <span class="keyword">const</span> XMLCh *typeName) = 0;</div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> piEvent(<span class="keyword">const</span> XMLCh *target, <span class="keyword">const</span> XMLCh *value) = 0;</div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> textEvent(<span class="keyword">const</span> XMLCh *value) = 0;</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> textEvent(<span class="keyword">const</span> XMLCh *chars, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> length) = 0;</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> commentEvent(<span class="keyword">const</span> XMLCh *value) = 0;</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> attributeEvent(<span class="keyword">const</span> XMLCh *prefix, <span class="keyword">const</span> XMLCh *uri, <span class="keyword">const</span> XMLCh *localname, <span class="keyword">const</span> XMLCh *value,</div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; <span class="keyword">const</span> XMLCh *typeURI, <span class="keyword">const</span> XMLCh *typeName) = 0;</div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> namespaceEvent(<span class="keyword">const</span> XMLCh *prefix, <span class="keyword">const</span> XMLCh *uri) = 0;</div>
<div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="classEventHandler.html#a990d0c9ab92dd7ed3a3fde63d9e647aa"> 61</a></span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classEventHandler.html#a990d0c9ab92dd7ed3a3fde63d9e647aa">atomicItemEvent</a>(<a class="code" href="classAnyAtomicType.html#a289c5db5e82b40c2f3e53af7d472f14c">AnyAtomicType::AtomicObjectType</a> type, <span class="keyword">const</span> XMLCh *value,</div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; <span class="keyword">const</span> XMLCh *typeURI, <span class="keyword">const</span> XMLCh *typeName) {}</div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> endEvent() = 0;</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160;};</div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160;</div>
<div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="classEventFilter.html"> 67</a></span>&#160;<span class="keyword">class </span>XQILLA_API <a class="code" href="classEventFilter.html">EventFilter</a> : <span class="keyword">public</span> <a class="code" href="classEventHandler.html">EventHandler</a></div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160;{</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="classEventFilter.html#aaf2bc8a1705498ee3f13cdccf8f4b7ea"> 70</a></span>&#160; <a class="code" href="classEventFilter.html#aaf2bc8a1705498ee3f13cdccf8f4b7ea">EventFilter</a>(<a class="code" href="classEventHandler.html">EventHandler</a> *next)</div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; : next_(next)</div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; {</div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; }</div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160;</div>
<div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="classEventFilter.html#ae95827ebefc1179be14993f380d1a917"> 75</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="classEventFilter.html#ae95827ebefc1179be14993f380d1a917">setNextEventHandler</a>(<a class="code" href="classEventHandler.html">EventHandler</a> *next)</div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; {</div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; next_ = next;</div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; }</div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160;</div>
<div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="classEventFilter.html#a3161cc68419450c485d7ed487040ae67"> 80</a></span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classEventFilter.html#a3161cc68419450c485d7ed487040ae67">setLocationInfo</a>(<span class="keyword">const</span> <a class="code" href="classLocationInfo.html">LocationInfo</a> *location)</div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; {</div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; next_-&gt;setLocationInfo(location);</div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160; }</div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160;</div>
<div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="classEventFilter.html#ac6c48bf05f8c78225b7d3d8e5fefd478"> 85</a></span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classEventFilter.html#ac6c48bf05f8c78225b7d3d8e5fefd478">startDocumentEvent</a>(<span class="keyword">const</span> XMLCh *documentURI, <span class="keyword">const</span> XMLCh *encoding)</div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; {</div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160; next_-&gt;startDocumentEvent(documentURI, encoding);</div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; }</div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160;</div>
<div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="classEventFilter.html#a85b1a402bde6e2cebc504c88cc48f70f"> 90</a></span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classEventFilter.html#a85b1a402bde6e2cebc504c88cc48f70f">endDocumentEvent</a>()</div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; {</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; next_-&gt;endDocumentEvent();</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; }</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160;</div>
<div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="classEventFilter.html#ac893445bfe22063f2fc3ca5cd9b9925c"> 95</a></span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classEventFilter.html#ac893445bfe22063f2fc3ca5cd9b9925c">startElementEvent</a>(<span class="keyword">const</span> XMLCh *prefix, <span class="keyword">const</span> XMLCh *uri, <span class="keyword">const</span> XMLCh *localname)</div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; {</div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; next_-&gt;startElementEvent(prefix, uri, localname);</div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; }</div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160;</div>
<div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="classEventFilter.html#ae9797751bfd4587decafacc32ce345d0"> 100</a></span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classEventFilter.html#ae9797751bfd4587decafacc32ce345d0">endElementEvent</a>(<span class="keyword">const</span> XMLCh *prefix, <span class="keyword">const</span> XMLCh *uri, <span class="keyword">const</span> XMLCh *localname,</div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; <span class="keyword">const</span> XMLCh *typeURI, <span class="keyword">const</span> XMLCh *typeName)</div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; {</div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; next_-&gt;endElementEvent(prefix, uri, localname, typeURI, typeName);</div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160; }</div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160;</div>
<div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="classEventFilter.html#ab5ba6162b69d1800d9cf2bf94eef6132"> 106</a></span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classEventFilter.html#ab5ba6162b69d1800d9cf2bf94eef6132">piEvent</a>(<span class="keyword">const</span> XMLCh *target, <span class="keyword">const</span> XMLCh *value)</div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160; {</div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; next_-&gt;piEvent(target, value);</div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; }</div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160;</div>
<div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="classEventFilter.html#a63edc38c8a7a42bee18081680b648b9b"> 111</a></span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classEventFilter.html#a63edc38c8a7a42bee18081680b648b9b">textEvent</a>(<span class="keyword">const</span> XMLCh *value)</div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160; {</div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; next_-&gt;textEvent(value);</div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; }</div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160;</div>
<div class="line"><a name="l00116"></a><span class="lineno"><a class="line" href="classEventFilter.html#a82d4f002673995fdc5da2f7237fe3d5a"> 116</a></span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classEventFilter.html#a82d4f002673995fdc5da2f7237fe3d5a">textEvent</a>(<span class="keyword">const</span> XMLCh *chars, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> length)</div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160; {</div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160; next_-&gt;textEvent(chars, length);</div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160; }</div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160;</div>
<div class="line"><a name="l00121"></a><span class="lineno"><a class="line" href="classEventFilter.html#adb88be94442fc15da6fec403b4b5acb6"> 121</a></span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classEventFilter.html#adb88be94442fc15da6fec403b4b5acb6">commentEvent</a>(<span class="keyword">const</span> XMLCh *value)</div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160; {</div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160; next_-&gt;commentEvent(value);</div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160; }</div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160;</div>
<div class="line"><a name="l00126"></a><span class="lineno"><a class="line" href="classEventFilter.html#ab3d3d998f1b01a6a1c69c0d32a75c9ec"> 126</a></span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classEventFilter.html#ab3d3d998f1b01a6a1c69c0d32a75c9ec">attributeEvent</a>(<span class="keyword">const</span> XMLCh *prefix, <span class="keyword">const</span> XMLCh *uri, <span class="keyword">const</span> XMLCh *localname, <span class="keyword">const</span> XMLCh *value,</div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160; <span class="keyword">const</span> XMLCh *typeURI, <span class="keyword">const</span> XMLCh *typeName)</div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; {</div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160; next_-&gt;attributeEvent(prefix, uri, localname, value, typeURI, typeName);</div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160; }</div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160;</div>
<div class="line"><a name="l00132"></a><span class="lineno"><a class="line" href="classEventFilter.html#acecb6654cbfabaa33a342810f0ad3774"> 132</a></span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classEventFilter.html#acecb6654cbfabaa33a342810f0ad3774">namespaceEvent</a>(<span class="keyword">const</span> XMLCh *prefix, <span class="keyword">const</span> XMLCh *uri)</div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; {</div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160; next_-&gt;namespaceEvent(prefix, uri);</div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160; }</div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160;</div>
<div class="line"><a name="l00137"></a><span class="lineno"><a class="line" href="classEventFilter.html#abad51702c694838147c32e075e09d783"> 137</a></span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classEventFilter.html#abad51702c694838147c32e075e09d783">atomicItemEvent</a>(<a class="code" href="classAnyAtomicType.html#a289c5db5e82b40c2f3e53af7d472f14c">AnyAtomicType::AtomicObjectType</a> type, <span class="keyword">const</span> XMLCh *value, <span class="keyword">const</span> XMLCh *typeURI,</div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160; <span class="keyword">const</span> XMLCh *typeName)</div>
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160; {</div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160; next_-&gt;atomicItemEvent(type, value, typeURI, typeName);</div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160; }</div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160;</div>
<div class="line"><a name="l00143"></a><span class="lineno"><a class="line" href="classEventFilter.html#ae2e68d37a7b44eb43c15bebfa00d98f4"> 143</a></span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classEventFilter.html#ae2e68d37a7b44eb43c15bebfa00d98f4">endEvent</a>()</div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160; {</div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160; next_-&gt;endEvent();</div>
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160; }</div>
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160;</div>
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00149"></a><span class="lineno"><a class="line" href="classEventFilter.html#a54109f890c168bdf1e437a25b74563ef"> 149</a></span>&#160; <a class="code" href="classEventHandler.html">EventHandler</a> *<a class="code" href="classEventFilter.html#a54109f890c168bdf1e437a25b74563ef">next_</a>;</div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160;};</div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160;</div>
<div class="line"><a name="l00152"></a><span class="lineno"><a class="line" href="EventHandler_8hpp.html#ad281bc239cb522f34ec83e6e8272160c"> 152</a></span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <span class="keyword">const</span> XMLCh *<a class="code" href="EventHandler_8hpp.html#ad281bc239cb522f34ec83e6e8272160c">emptyToNull</a>(<span class="keyword">const</span> XMLCh * <span class="keyword">const</span> in)</div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160;{</div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160; <span class="keywordflow">return</span> (in == 0 || *in == 0) ? 0 : in;</div>
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160;}</div>
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160;</div>
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="ttc" id="classEventFilter_html"><div class="ttname"><a href="classEventFilter.html">EventFilter</a></div><div class="ttdef"><b>Definition:</b> EventHandler.hpp:67</div></div>
<div class="ttc" id="classEventFilter_html_ac893445bfe22063f2fc3ca5cd9b9925c"><div class="ttname"><a href="classEventFilter.html#ac893445bfe22063f2fc3ca5cd9b9925c">EventFilter::startElementEvent</a></div><div class="ttdeci">virtual void startElementEvent(const XMLCh *prefix, const XMLCh *uri, const XMLCh *localname)</div><div class="ttdoc">Handles the start of an element node as an event. </div><div class="ttdef"><b>Definition:</b> EventHandler.hpp:95</div></div>
<div class="ttc" id="classEventFilter_html_aaf2bc8a1705498ee3f13cdccf8f4b7ea"><div class="ttname"><a href="classEventFilter.html#aaf2bc8a1705498ee3f13cdccf8f4b7ea">EventFilter::EventFilter</a></div><div class="ttdeci">EventFilter(EventHandler *next)</div><div class="ttdef"><b>Definition:</b> EventHandler.hpp:70</div></div>
<div class="ttc" id="classEventHandler_html"><div class="ttname"><a href="classEventHandler.html">EventHandler</a></div><div class="ttdef"><b>Definition:</b> EventHandler.hpp:29</div></div>
<div class="ttc" id="classEventHandler_html_a9578358998a3221402df5404ca2776d6"><div class="ttname"><a href="classEventHandler.html#a9578358998a3221402df5404ca2776d6">EventHandler::~EventHandler</a></div><div class="ttdeci">virtual ~EventHandler()</div><div class="ttdef"><b>Definition:</b> EventHandler.hpp:32</div></div>
<div class="ttc" id="classEventFilter_html_a85b1a402bde6e2cebc504c88cc48f70f"><div class="ttname"><a href="classEventFilter.html#a85b1a402bde6e2cebc504c88cc48f70f">EventFilter::endDocumentEvent</a></div><div class="ttdeci">virtual void endDocumentEvent()</div><div class="ttdoc">Handles a document node as an event. </div><div class="ttdef"><b>Definition:</b> EventHandler.hpp:90</div></div>
<div class="ttc" id="classEventFilter_html_a82d4f002673995fdc5da2f7237fe3d5a"><div class="ttname"><a href="classEventFilter.html#a82d4f002673995fdc5da2f7237fe3d5a">EventFilter::textEvent</a></div><div class="ttdeci">virtual void textEvent(const XMLCh *chars, unsigned int length)</div><div class="ttdoc">Handles a text node as an event. </div><div class="ttdef"><b>Definition:</b> EventHandler.hpp:116</div></div>
<div class="ttc" id="classAnyAtomicType_html_a289c5db5e82b40c2f3e53af7d472f14c"><div class="ttname"><a href="classAnyAtomicType.html#a289c5db5e82b40c2f3e53af7d472f14c">AnyAtomicType::AtomicObjectType</a></div><div class="ttdeci">AtomicObjectType</div><div class="ttdef"><b>Definition:</b> AnyAtomicType.hpp:34</div></div>
<div class="ttc" id="EventHandler_8hpp_html_ad281bc239cb522f34ec83e6e8272160c"><div class="ttname"><a href="EventHandler_8hpp.html#ad281bc239cb522f34ec83e6e8272160c">emptyToNull</a></div><div class="ttdeci">static const XMLCh * emptyToNull(const XMLCh *const in)</div><div class="ttdef"><b>Definition:</b> EventHandler.hpp:152</div></div>
<div class="ttc" id="classEventFilter_html_acecb6654cbfabaa33a342810f0ad3774"><div class="ttname"><a href="classEventFilter.html#acecb6654cbfabaa33a342810f0ad3774">EventFilter::namespaceEvent</a></div><div class="ttdeci">virtual void namespaceEvent(const XMLCh *prefix, const XMLCh *uri)</div><div class="ttdoc">Handles a namespace binding as an event. </div><div class="ttdef"><b>Definition:</b> EventHandler.hpp:132</div></div>
<div class="ttc" id="classEventFilter_html_a3161cc68419450c485d7ed487040ae67"><div class="ttname"><a href="classEventFilter.html#a3161cc68419450c485d7ed487040ae67">EventFilter::setLocationInfo</a></div><div class="ttdeci">virtual void setLocationInfo(const LocationInfo *location)</div><div class="ttdoc">Recieves a LocationInfo object that is owned by the caller, and will be updated with the current loca...</div><div class="ttdef"><b>Definition:</b> EventHandler.hpp:80</div></div>
<div class="ttc" id="classEventFilter_html_ac6c48bf05f8c78225b7d3d8e5fefd478"><div class="ttname"><a href="classEventFilter.html#ac6c48bf05f8c78225b7d3d8e5fefd478">EventFilter::startDocumentEvent</a></div><div class="ttdeci">virtual void startDocumentEvent(const XMLCh *documentURI, const XMLCh *encoding)</div><div class="ttdoc">Handles a document node as an event. </div><div class="ttdef"><b>Definition:</b> EventHandler.hpp:85</div></div>
<div class="ttc" id="classEventHandler_html_a990d0c9ab92dd7ed3a3fde63d9e647aa"><div class="ttname"><a href="classEventHandler.html#a990d0c9ab92dd7ed3a3fde63d9e647aa">EventHandler::atomicItemEvent</a></div><div class="ttdeci">virtual void atomicItemEvent(AnyAtomicType::AtomicObjectType type, const XMLCh *value, const XMLCh *typeURI, const XMLCh *typeName)</div><div class="ttdoc">Handles an atomic item as an event. </div><div class="ttdef"><b>Definition:</b> EventHandler.hpp:61</div></div>
<div class="ttc" id="classEventFilter_html_ab3d3d998f1b01a6a1c69c0d32a75c9ec"><div class="ttname"><a href="classEventFilter.html#ab3d3d998f1b01a6a1c69c0d32a75c9ec">EventFilter::attributeEvent</a></div><div class="ttdeci">virtual void attributeEvent(const XMLCh *prefix, const XMLCh *uri, const XMLCh *localname, const XMLCh *value, const XMLCh *typeURI, const XMLCh *typeName)</div><div class="ttdoc">Handles an attribute node as an event. </div><div class="ttdef"><b>Definition:</b> EventHandler.hpp:126</div></div>
<div class="ttc" id="classEventHandler_html_a56e778038e88d6c671e4f0f73e717878"><div class="ttname"><a href="classEventHandler.html#a56e778038e88d6c671e4f0f73e717878">EventHandler::setLocationInfo</a></div><div class="ttdeci">virtual void setLocationInfo(const LocationInfo *location)</div><div class="ttdoc">Recieves a LocationInfo object that is owned by the caller, and will be updated with the current loca...</div><div class="ttdef"><b>Definition:</b> EventHandler.hpp:36</div></div>
<div class="ttc" id="classEventFilter_html_ae2e68d37a7b44eb43c15bebfa00d98f4"><div class="ttname"><a href="classEventFilter.html#ae2e68d37a7b44eb43c15bebfa00d98f4">EventFilter::endEvent</a></div><div class="ttdeci">virtual void endEvent()</div><div class="ttdoc">Called when all events have been reported. </div><div class="ttdef"><b>Definition:</b> EventHandler.hpp:143</div></div>
<div class="ttc" id="classEventFilter_html_a54109f890c168bdf1e437a25b74563ef"><div class="ttname"><a href="classEventFilter.html#a54109f890c168bdf1e437a25b74563ef">EventFilter::next_</a></div><div class="ttdeci">EventHandler * next_</div><div class="ttdef"><b>Definition:</b> EventHandler.hpp:149</div></div>
<div class="ttc" id="classEventFilter_html_ae9797751bfd4587decafacc32ce345d0"><div class="ttname"><a href="classEventFilter.html#ae9797751bfd4587decafacc32ce345d0">EventFilter::endElementEvent</a></div><div class="ttdeci">virtual void endElementEvent(const XMLCh *prefix, const XMLCh *uri, const XMLCh *localname, const XMLCh *typeURI, const XMLCh *typeName)</div><div class="ttdoc">Handles the end of an element node as an event. </div><div class="ttdef"><b>Definition:</b> EventHandler.hpp:100</div></div>
<div class="ttc" id="classEventFilter_html_ab5ba6162b69d1800d9cf2bf94eef6132"><div class="ttname"><a href="classEventFilter.html#ab5ba6162b69d1800d9cf2bf94eef6132">EventFilter::piEvent</a></div><div class="ttdeci">virtual void piEvent(const XMLCh *target, const XMLCh *value)</div><div class="ttdoc">Handles a processing instruction node as an event. </div><div class="ttdef"><b>Definition:</b> EventHandler.hpp:106</div></div>
<div class="ttc" id="classLocationInfo_html"><div class="ttname"><a href="classLocationInfo.html">LocationInfo</a></div><div class="ttdoc">A class that gives records a location in the query. </div><div class="ttdef"><b>Definition:</b> LocationInfo.hpp:29</div></div>
<div class="ttc" id="classEventFilter_html_adb88be94442fc15da6fec403b4b5acb6"><div class="ttname"><a href="classEventFilter.html#adb88be94442fc15da6fec403b4b5acb6">EventFilter::commentEvent</a></div><div class="ttdeci">virtual void commentEvent(const XMLCh *value)</div><div class="ttdoc">Handles a comment node as an event. </div><div class="ttdef"><b>Definition:</b> EventHandler.hpp:121</div></div>
<div class="ttc" id="AnyAtomicType_8hpp_html"><div class="ttname"><a href="AnyAtomicType_8hpp.html">AnyAtomicType.hpp</a></div></div>
<div class="ttc" id="classEventFilter_html_abad51702c694838147c32e075e09d783"><div class="ttname"><a href="classEventFilter.html#abad51702c694838147c32e075e09d783">EventFilter::atomicItemEvent</a></div><div class="ttdeci">virtual void atomicItemEvent(AnyAtomicType::AtomicObjectType type, const XMLCh *value, const XMLCh *typeURI, const XMLCh *typeName)</div><div class="ttdoc">Handles an atomic item as an event. </div><div class="ttdef"><b>Definition:</b> EventHandler.hpp:137</div></div>
<div class="ttc" id="classEventFilter_html_a63edc38c8a7a42bee18081680b648b9b"><div class="ttname"><a href="classEventFilter.html#a63edc38c8a7a42bee18081680b648b9b">EventFilter::textEvent</a></div><div class="ttdeci">virtual void textEvent(const XMLCh *value)</div><div class="ttdoc">Handles a text node as an event. </div><div class="ttdef"><b>Definition:</b> EventHandler.hpp:111</div></div>
<div class="ttc" id="classEventFilter_html_ae95827ebefc1179be14993f380d1a917"><div class="ttname"><a href="classEventFilter.html#ae95827ebefc1179be14993f380d1a917">EventFilter::setNextEventHandler</a></div><div class="ttdeci">void setNextEventHandler(EventHandler *next)</div><div class="ttdef"><b>Definition:</b> EventHandler.hpp:75</div></div>
<div class="ttc" id="LocationInfo_8hpp_html"><div class="ttname"><a href="LocationInfo_8hpp.html">LocationInfo.hpp</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.5
</small></address>
</body>
</html>