| <HTML><HEAD><TITLE>Xalan-C++ API Documentation</TITLE></HEAD>
|
| <BODY>
|
| <h2 align="center">Xalan-C++ API Documentation</h2>
|
| <h3 align="center">The Xalan C++ XSLT Processor Version 1.10</h3>
|
| </BODY> |
| <!-- Generated by Doxygen 1.2.8.1 --> |
| <center> |
| <a class="qindex" href="index.html">Main Page</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">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> </center> |
| <hr><h1>OutputContextStack.hpp</h1><a href="OutputContextStack_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <font class="comment">/*</font> |
| 00002 <font class="comment"> * Copyright 1999-2004 The Apache Software Foundation.</font> |
| 00003 <font class="comment"> *</font> |
| 00004 <font class="comment"> * Licensed under the Apache License, Version 2.0 (the "License");</font> |
| 00005 <font class="comment"> * you may not use this file except in compliance with the License.</font> |
| 00006 <font class="comment"> * You may obtain a copy of the License at</font> |
| 00007 <font class="comment"> *</font> |
| 00008 <font class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</font> |
| 00009 <font class="comment"> *</font> |
| 00010 <font class="comment"> * Unless required by applicable law or agreed to in writing, software</font> |
| 00011 <font class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</font> |
| 00012 <font class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</font> |
| 00013 <font class="comment"> * See the License for the specific language governing permissions and</font> |
| 00014 <font class="comment"> * limitations under the License.</font> |
| 00015 <font class="comment"> */</font> |
| 00016 <font class="preprocessor">#if !defined(XALAN_OUTPUTCONTEXTSTACK_HEADER_GUARD)</font> |
| <a name="l00017"></a><a class="code" href="OutputContextStack_8hpp.html#a0">00017</a> <font class="preprocessor"></font><font class="preprocessor">#define XALAN_OUTPUTCONTEXTSTACK_HEADER_GUARD</font> |
| 00018 <font class="preprocessor"></font> |
| 00019 |
| 00020 |
| 00021 <font class="comment">// Base include file. Must be first.</font> |
| 00022 <font class="preprocessor">#include <<a class="code" href="XSLTDefinitions_8hpp.html">xalanc/XSLT/XSLTDefinitions.hpp</a>></font> |
| 00023 |
| 00024 |
| 00025 |
| 00026 <font class="preprocessor">#include <<a class="code" href="XalanDeque_8hpp.html">xalanc/Include/XalanDeque.hpp</a>></font> |
| 00027 |
| 00028 |
| 00029 |
| 00030 <font class="preprocessor">#include <<a class="code" href="XalanDOMString_8hpp.html">xalanc/XalanDOM/XalanDOMString.hpp</a>></font> |
| 00031 |
| 00032 |
| 00033 |
| 00034 <font class="preprocessor">#include <<a class="code" href="AttributeListImpl_8hpp.html">xalanc/PlatformSupport/AttributeListImpl.hpp</a>></font> |
| 00035 <font class="preprocessor">#include <<a class="code" href="DOMStringHelper_8hpp.html">xalanc/PlatformSupport/DOMStringHelper.hpp</a>></font> |
| 00036 |
| 00037 |
| 00038 |
| 00039 XALAN_CPP_NAMESPACE_BEGIN |
| 00040 |
| 00041 |
| 00042 |
| <a name="l00043"></a><a class="code" href="OutputContextStack_8hpp.html#a1">00043</a> <font class="keyword">class </font><a class="code" href="classFormatterListener.html">FormatterListener</a>; |
| 00044 |
| 00045 |
| 00046 |
| <a name="l00047"></a><a class="code" href="classOutputContextStack.html">00047</a> <font class="keyword">class </font>XALAN_XSLT_EXPORT <a class="code" href="classOutputContextStack.html">OutputContextStack</a> |
| 00048 { |
| 00049 <font class="keyword">public</font>: |
| 00050 |
| <a name="l00051"></a><a class="code" href="structOutputContextStack_1_1OutputContext.html">00051</a> <font class="keyword">struct </font>OutputContext |
| 00052 { |
| <a name="l00053"></a><a class="code" href="structOutputContextStack_1_1OutputContext.html#a0">00053</a> <a class="code" href="structOutputContextStack_1_1OutputContext.html#a0">OutputContext</a>(MemoryManagerType& theManager, |
| 00054 <a class="code" href="classFormatterListener.html">FormatterListener</a>* theListener = 0) : |
| 00055 m_flistener(theListener), |
| 00056 m_pendingAttributes(theManager), |
| 00057 m_pendingElementName(theManager), |
| 00058 m_hasPendingStartDocument(false), |
| 00059 m_mustFlushPendingStartDocument(false) |
| 00060 { |
| 00061 } |
| 00062 |
| <a name="l00063"></a><a class="code" href="structOutputContextStack_1_1OutputContext.html#a1">00063</a> <a class="code" href="structOutputContextStack_1_1OutputContext.html#a0">OutputContext</a>( <font class="keyword">const</font> OutputContext& other, |
| 00064 MemoryManagerType& theManager) : |
| 00065 m_flistener(other.m_flistener), |
| 00066 m_pendingAttributes(other.m_pendingAttributes , theManager), |
| 00067 m_pendingElementName(other.m_pendingElementName , theManager), |
| 00068 m_hasPendingStartDocument(other.m_hasPendingStartDocument), |
| 00069 m_mustFlushPendingStartDocument(other.m_mustFlushPendingStartDocument) |
| 00070 { |
| 00071 } |
| 00072 |
| <a name="l00073"></a><a class="code" href="structOutputContextStack_1_1OutputContext.html#a2">00073</a> <a class="code" href="structOutputContextStack_1_1OutputContext.html#a2">~OutputContext</a>()<font class="keyword"></font> |
| 00074 <font class="keyword"> </font>{ |
| 00075 } |
| 00076 |
| 00077 <font class="keywordtype">void</font> |
| <a name="l00078"></a><a class="code" href="structOutputContextStack_1_1OutputContext.html#a3">00078</a> <a class="code" href="structOutputContextStack_1_1OutputContext.html#a3">reset</a>()<font class="keyword"></font> |
| 00079 <font class="keyword"> </font>{ |
| 00080 m_flistener = 0; |
| 00081 |
| 00082 m_pendingAttributes.<a class="code" href="classAttributeListImpl.html#a14">clear</a>(); |
| 00083 |
| 00084 m_pendingElementName.<a class="code" href="classXalanDOMString.html#a26">clear</a>(); |
| 00085 |
| 00086 m_hasPendingStartDocument = <font class="keyword">false</font>; |
| 00087 |
| 00088 m_mustFlushPendingStartDocument = <font class="keyword">false</font>; |
| 00089 } |
| 00090 |
| <a name="l00091"></a><a class="code" href="structOutputContextStack_1_1OutputContext.html#m0">00091</a> <a class="code" href="classFormatterListener.html">FormatterListener</a>* m_flistener; |
| 00092 |
| <a name="l00093"></a><a class="code" href="structOutputContextStack_1_1OutputContext.html#m1">00093</a> <a class="code" href="classAttributeListImpl.html">AttributeListImpl</a> m_pendingAttributes; |
| 00094 |
| <a name="l00095"></a><a class="code" href="structOutputContextStack_1_1OutputContext.html#m2">00095</a> <a class="code" href="classXalanDOMString.html">XalanDOMString</a> m_pendingElementName; |
| 00096 |
| <a name="l00097"></a><a class="code" href="structOutputContextStack_1_1OutputContext.html#m3">00097</a> <font class="keywordtype">bool</font> m_hasPendingStartDocument; |
| 00098 |
| <a name="l00099"></a><a class="code" href="structOutputContextStack_1_1OutputContext.html#m4">00099</a> <font class="keywordtype">bool</font> m_mustFlushPendingStartDocument; |
| 00100 }; |
| 00101 |
| <a name="l00102"></a><a class="code" href="classOutputContextStack.html#s0">00102</a> <font class="keyword">typedef</font> <a class="code" href="classXalanDeque.html">XalanDeque<OutputContext, ConstructWithMemoryManagerTraits<OutputContext></a> > <a class="code" href="classXalanDeque.html">OutputContextStackType</a>; |
| 00103 |
| <a name="l00104"></a><a class="code" href="classOutputContextStack.html#s1">00104</a> <font class="keyword">typedef</font> OutputContextStackType::size_type size_type; |
| 00105 |
| 00106 <font class="keyword">explicit</font> |
| 00107 <a class="code" href="classOutputContextStack.html#a0">OutputContextStack</a>(MemoryManagerType& theManager); |
| 00108 |
| 00109 <a class="code" href="classOutputContextStack.html#a1">~OutputContextStack</a>(); |
| 00110 |
| 00111 <font class="keywordtype">void</font> |
| 00112 <a class="code" href="classOutputContextStack.html#a2">pushContext</a>(<a class="code" href="classFormatterListener.html">FormatterListener</a>* theListener = 0); |
| 00113 |
| 00114 <font class="keywordtype">void</font> |
| 00115 <a class="code" href="classOutputContextStack.html#a3">popContext</a>(); |
| 00116 |
| 00117 <a class="code" href="classFormatterListener.html">FormatterListener</a>* |
| <a name="l00118"></a><a class="code" href="classOutputContextStack.html#a4">00118</a> <a class="code" href="classOutputContextStack.html#a4">getFormatterListener</a>()<font class="keyword"> const</font> |
| 00119 <font class="keyword"> </font>{ |
| 00120 <font class="keywordflow">return</font> (*m_stackPosition).m_flistener; |
| 00121 } |
| 00122 |
| 00123 <a class="code" href="classFormatterListener.html">FormatterListener</a>*& |
| <a name="l00124"></a><a class="code" href="classOutputContextStack.html#a5">00124</a> <a class="code" href="classOutputContextStack.html#a4">getFormatterListener</a>()<font class="keyword"></font> |
| 00125 <font class="keyword"> </font>{ |
| 00126 <font class="keywordflow">return</font> (*m_stackPosition).m_flistener; |
| 00127 } |
| 00128 |
| 00129 <font class="keyword">const</font> <a class="code" href="classAttributeListImpl.html">AttributeListImpl</a>& |
| <a name="l00130"></a><a class="code" href="classOutputContextStack.html#a6">00130</a> <a class="code" href="classOutputContextStack.html#a6">getPendingAttributes</a>()<font class="keyword"> const</font> |
| 00131 <font class="keyword"> </font>{ |
| 00132 <font class="keywordflow">return</font> (*m_stackPosition).m_pendingAttributes; |
| 00133 } |
| 00134 |
| 00135 <a class="code" href="classAttributeListImpl.html">AttributeListImpl</a>& |
| <a name="l00136"></a><a class="code" href="classOutputContextStack.html#a7">00136</a> <a class="code" href="classOutputContextStack.html#a6">getPendingAttributes</a>()<font class="keyword"></font> |
| 00137 <font class="keyword"> </font>{ |
| 00138 <font class="keywordflow">return</font> (*m_stackPosition).m_pendingAttributes; |
| 00139 } |
| 00140 |
| 00141 <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>& |
| <a name="l00142"></a><a class="code" href="classOutputContextStack.html#a8">00142</a> <a class="code" href="classOutputContextStack.html#a8">getPendingElementName</a>()<font class="keyword"> const</font> |
| 00143 <font class="keyword"> </font>{ |
| 00144 <font class="keywordflow">return</font> (*m_stackPosition).m_pendingElementName; |
| 00145 } |
| 00146 |
| 00147 <a class="code" href="classXalanDOMString.html">XalanDOMString</a>& |
| <a name="l00148"></a><a class="code" href="classOutputContextStack.html#a9">00148</a> <a class="code" href="classOutputContextStack.html#a8">getPendingElementName</a>()<font class="keyword"></font> |
| 00149 <font class="keyword"> </font>{ |
| 00150 <font class="keywordflow">return</font> (*m_stackPosition).m_pendingElementName; |
| 00151 } |
| 00152 |
| 00153 <font class="keyword">const</font> <font class="keywordtype">bool</font>& |
| <a name="l00154"></a><a class="code" href="classOutputContextStack.html#a10">00154</a> <a class="code" href="classOutputContextStack.html#a10">getHasPendingStartDocument</a>()<font class="keyword"> const</font> |
| 00155 <font class="keyword"> </font>{ |
| 00156 <font class="keywordflow">return</font> (*m_stackPosition).m_hasPendingStartDocument; |
| 00157 } |
| 00158 |
| 00159 <font class="keywordtype">bool</font>& |
| <a name="l00160"></a><a class="code" href="classOutputContextStack.html#a11">00160</a> <a class="code" href="classOutputContextStack.html#a10">getHasPendingStartDocument</a>()<font class="keyword"></font> |
| 00161 <font class="keyword"> </font>{ |
| 00162 <font class="keywordflow">return</font> (*m_stackPosition).m_hasPendingStartDocument; |
| 00163 } |
| 00164 |
| 00165 <font class="keyword">const</font> <font class="keywordtype">bool</font>& |
| <a name="l00166"></a><a class="code" href="classOutputContextStack.html#a12">00166</a> <a class="code" href="classOutputContextStack.html#a12">getMustFlushPendingStartDocument</a>()<font class="keyword"> const</font> |
| 00167 <font class="keyword"> </font>{ |
| 00168 <font class="keywordflow">return</font> (*m_stackPosition).m_mustFlushPendingStartDocument; |
| 00169 } |
| 00170 |
| 00171 <font class="keywordtype">bool</font>& |
| <a name="l00172"></a><a class="code" href="classOutputContextStack.html#a13">00172</a> <a class="code" href="classOutputContextStack.html#a12">getMustFlushPendingStartDocument</a>()<font class="keyword"></font> |
| 00173 <font class="keyword"> </font>{ |
| 00174 <font class="keywordflow">return</font> (*m_stackPosition).m_mustFlushPendingStartDocument; |
| 00175 } |
| 00176 |
| 00177 size_type |
| <a name="l00178"></a><a class="code" href="classOutputContextStack.html#a14">00178</a> <a class="code" href="classOutputContextStack.html#a14">size</a>()<font class="keyword"> const</font> |
| 00179 <font class="keyword"> </font>{ |
| 00180 <font class="comment">// Since we always keep one dummy entry at the beginning,</font> |
| 00181 <font class="comment">// subtract one from the size</font> |
| 00182 assert(m_stackSize == <a class="code" href="classOutputContextStack.html#s1">size_type</a>(OutputContextStackType::const_iterator(m_stackPosition) - m_stack.<a class="code" href="classXalanDeque.html#a3">begin</a>())); |
| 00183 |
| 00184 <font class="keywordflow">return</font> m_stackSize; |
| 00185 } |
| 00186 |
| 00187 <font class="keywordtype">bool</font> |
| <a name="l00188"></a><a class="code" href="classOutputContextStack.html#a15">00188</a> <a class="code" href="classOutputContextStack.html#a15">empty</a>()<font class="keyword"> const</font> |
| 00189 <font class="keyword"> </font>{ |
| 00190 <font class="keywordflow">return</font> <a class="code" href="classOutputContextStack.html#a14">size</a>() == 0 ? <font class="keyword">true</font> : <font class="keyword">false</font>; |
| 00191 } |
| 00192 |
| 00193 <font class="keywordtype">void</font> |
| 00194 <a class="code" href="classOutputContextStack.html#a16">clear</a>(); |
| 00195 |
| 00196 <font class="keywordtype">void</font> |
| 00197 <a class="code" href="classOutputContextStack.html#a17">reset</a>(); |
| 00198 |
| 00199 <font class="keyword">private</font>: |
| 00200 |
| 00201 <font class="comment">// not implemented</font> |
| 00202 <a class="code" href="classOutputContextStack.html#a0">OutputContextStack</a>(<font class="keyword">const</font> <a class="code" href="classOutputContextStack.html">OutputContextStack</a>&); |
| 00203 |
| 00204 <font class="keywordtype">bool</font> |
| 00205 <a class="code" href="ElemAttributeSet_8hpp.html#a1">operator==</a>(<font class="keyword">const</font> <a class="code" href="classOutputContextStack.html">OutputContextStack</a>&) <font class="keyword">const</font>; |
| 00206 |
| 00207 <a class="code" href="classOutputContextStack.html">OutputContextStack</a>& |
| 00208 operator=(<font class="keyword">const</font> <a class="code" href="classOutputContextStack.html">OutputContextStack</a>&); |
| 00209 |
| 00213 <a class="code" href="classXalanDeque.html">OutputContextStackType</a> m_stack; |
| 00214 |
| 00215 OutputContextStackType::iterator m_stackPosition; |
| 00216 |
| 00217 size_type m_stackSize; |
| 00218 }; |
| 00219 |
| 00220 |
| 00221 |
| 00222 XALAN_CPP_NAMESPACE_END |
| 00223 |
| 00224 |
| 00225 |
| 00226 <font class="preprocessor">#endif // XALAN_RESULTNAMESPACESSTACK_HEADER_GUARD</font> |
| </font></pre></div><p align="center"><a href="diagramnotes.html">Interpreting class diagrams</a></p>
|
| <p><FONT color="#000000" face="arial,helvetica,sanserif" size="-1">
|
| <i><A href="http://www.stack.nl/~dimitri/doxygen/">Doxygen</A> and
|
| <A href="http://www.research.att.com/sw/tools/graphviz/">GraphViz</A> are used to generate this API documentation from the Xalan-C header files.</I></FONT></p>
|
|
|
| <TABLE border="0" cellpadding="0" cellspacing="0" width="820"><TR><TD bgcolor="#0086b2"><IMG height="1" src="../resources/dot.gif" width="1" alt="dot"></TD></TR></TABLE>
|
| <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="80%">
|
| <TR>
|
| <TD WIDTH="80%" VALIGN="TOP">
|
| <P ALIGN="CENTER"><B>Xalan-C++ XSLT Processor Version 1.10</B><BR>
|
| Copyright © 1999-2004 The Apache Software Foundation. All Rights Reserved.</i></p>
|
| </TD>
|
| </TR>
|
| <TR>
|
| <TD WIDTH="100%">
|
| <P ALIGN="CENTER"><IMG SRC="ApacheLogo.jpg" WIDTH="387" HEIGHT="100" ALIGN="BOTTOM" BORDER="0" ALT="Apache Logo">
|
| </TD>
|
| </TR>
|
| </TABLE>
|