Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > by-pkgid > 3c90d4f0807cc46df5c0517e9fe40564 > files > 410

xalan-c-doc-1.4-2mdk.ppc.rpm

<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.4</h3>
</BODY>
<!-- Generated by Doxygen 1.1.2 on Mon Sep 16 08:25:12 2002 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; </center>
<hr><h1>OutputContextStack.hpp</h1><a href="OutputContextStack.hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 /*
00002  * The Apache Software License, Version 1.1
00003  *
00004  *
00005  * Copyright (c) 1999-2000 The Apache Software Foundation.  All rights 
00006  * reserved.
00007  *
00008  * Redistribution and use in source and binary forms, with or without
00009  * modification, are permitted provided that the following conditions
00010  * are met:
00011  *
00012  * 1. Redistributions of source code must retain the above copyright
00013  *    notice, this list of conditions and the following disclaimer. 
00014  *
00015  * 2. Redistributions in binary form must reproduce the above copyright
00016  *    notice, this list of conditions and the following disclaimer in
00017  *    the documentation and/or other materials provided with the
00018  *    distribution.
00019  *
00020  * 3. The end-user documentation included with the redistribution,
00021  *    if any, must include the following acknowledgment:  
00022  *       "This product includes software developed by the
00023  *        Apache Software Foundation (http://www.apache.org/)."
00024  *    Alternately, this acknowledgment may appear in the software itself,
00025  *    if and wherever such third-party acknowledgments normally appear.
00026  *
00027  * 4. The names "Xalan" and "Apache Software Foundation" must
00028  *    not be used to endorse or promote products derived from this
00029  *    software without prior written permission. For written 
00030  *    permission, please contact apache@apache.org.
00031  *
00032  * 5. Products derived from this software may not be called "Apache",
00033  *    nor may "Apache" appear in their name, without prior written
00034  *    permission of the Apache Software Foundation.
00035  *
00036  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
00037  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
00038  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
00039  * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
00040  * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
00041  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
00042  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
00043  * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
00044  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
00045  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
00046  * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
00047  * SUCH DAMAGE.
00048  * ====================================================================
00049  *
00050  * This software consists of voluntary contributions made by many
00051  * individuals on behalf of the Apache Software Foundation and was
00052  * originally based on software copyright (c) 1999, International
00053  * Business Machines, Inc., http://www.ibm.com.  For more
00054  * information on the Apache Software Foundation, please see
00055  * &lt;http://www.apache.org/&gt;.
00056  */
00057 #if !defined(XALAN_OUTPUTCONTEXTSTACK_HEADER_GUARD)
<a name="l00058"><a class="code" href="OutputContextStack.hpp.html#a0">00058</a></a> #define XALAN_OUTPUTCONTEXTSTACK_HEADER_GUARD
00059 
00060 
00061 
00062 // Base include file.  Must be first.
00063 #include &lt;XSLT/XSLTDefinitions.hpp&gt;
00064 
00065 
00066 
00067 #include &lt;deque&gt;
00068 
00069 
00070 
00071 #include &lt;XalanDOM/XalanDOMString.hpp&gt;
00072 
00073 
00074 
00075 #include &lt;PlatformSupport/AttributeListImpl.hpp&gt;
00076 #include &lt;PlatformSupport/DOMStringHelper.hpp&gt;
00077 
00078 
00079 
00080 class <a class="code" href="class_formatterlistener.html">FormatterListener</a>;
00081 
00082 
00083 
<a name="l00084"><a class="code" href="class_outputcontextstack.html">00084</a></a> class XALAN_XSLT_EXPORT <a class="code" href="class_outputcontextstack.html">OutputContextStack</a>
00085 {
00086 public:
00087 
<a name="l00088"><a class="code" href="class_outputcontextstack__outputcontext.html">00088</a></a>     struct OutputContext
00089     {
<a name="l00090"><a class="code" href="class_outputcontextstack__outputcontext.html#a0">00090</a></a>         OutputContext(<a class="code" href="class_formatterlistener.html">FormatterListener</a>*    theListener = 0) :
00091             m_flistener(theListener),
00092             m_pendingAttributes(),
00093             m_pendingElementName(),
00094             m_hasPendingStartDocument(false),
00095             m_mustFlushPendingStartDocument(false)
00096         {
00097         }
00098 
<a name="l00099"><a class="code" href="class_outputcontextstack__outputcontext.html#a1">00099</a></a>         ~OutputContext()
00100         {
00101         }
00102 
00103         void
<a name="l00104"><a class="code" href="class_outputcontextstack__outputcontext.html#a2">00104</a></a>         reset()
00105         {
00106             m_flistener = 0;
00107 
00108             m_pendingAttributes.clear();
00109 
00110             ::clear(m_pendingElementName);
00111 
00112             m_hasPendingStartDocument = false;
00113 
00114             m_mustFlushPendingStartDocument = false;
00115         }
00116 
<a name="l00117"><a class="code" href="class_outputcontextstack__outputcontext.html#m0">00117</a></a>         <a class="code" href="class_formatterlistener.html">FormatterListener</a>*  m_flistener;
00118 
<a name="l00119"><a class="code" href="class_outputcontextstack__outputcontext.html#m1">00119</a></a>         <a class="code" href="class_attributelistimpl.html">AttributeListImpl</a>   m_pendingAttributes;
00120 
<a name="l00121"><a class="code" href="class_outputcontextstack__outputcontext.html#m2">00121</a></a>         <a class="code" href="class_xalandomstring.html">XalanDOMString</a>      m_pendingElementName;
00122 
<a name="l00123"><a class="code" href="class_outputcontextstack__outputcontext.html#m3">00123</a></a>         bool                m_hasPendingStartDocument;
00124 
<a name="l00125"><a class="code" href="class_outputcontextstack__outputcontext.html#m4">00125</a></a>         bool                m_mustFlushPendingStartDocument;
00126     };
00127 
00128 #if defined(XALAN_NO_NAMESPACES)
00129     typedef deque&lt;OutputContext&gt;            OutputContextStackType;
00130 #else
<a name="l00131"><a class="code" href="class_outputcontextstack.html#s0">00131</a></a>     typedef std::deque&lt;OutputContext&gt;       OutputContextStackType;
00132 #endif
00133 
<a name="l00134"><a class="code" href="class_outputcontextstack.html#s1">00134</a></a>     typedef OutputContextStackType::size_type   size_type;
00135 
00136     explicit
00137     OutputContextStack();
00138 
00139     ~OutputContextStack();
00140 
00141     void
00142     pushContext(<a class="code" href="class_formatterlistener.html">FormatterListener</a>*  theListener = 0);
00143 
00144     void
00145     popContext();
00146 
00147     <a class="code" href="class_formatterlistener.html">FormatterListener</a>*
<a name="l00148"><a class="code" href="class_outputcontextstack.html#a4">00148</a></a>     getFormatterListener() const
00149     {
00150         return (*m_stackPosition).m_flistener;
00151     }
00152 
00153     <a class="code" href="class_formatterlistener.html">FormatterListener</a>*&amp;
<a name="l00154"><a class="code" href="class_outputcontextstack.html#a5">00154</a></a>     getFormatterListener()
00155     {
00156         return (*m_stackPosition).m_flistener;
00157     }
00158 
00159     const <a class="code" href="class_attributelistimpl.html">AttributeListImpl</a>&amp;
<a name="l00160"><a class="code" href="class_outputcontextstack.html#a6">00160</a></a>     getPendingAttributes() const
00161     {
00162         return (*m_stackPosition).m_pendingAttributes;
00163     }
00164 
00165     <a class="code" href="class_attributelistimpl.html">AttributeListImpl</a>&amp;
<a name="l00166"><a class="code" href="class_outputcontextstack.html#a7">00166</a></a>     getPendingAttributes()
00167     {
00168         return (*m_stackPosition).m_pendingAttributes;
00169     }
00170 
00171     const <a class="code" href="class_xalandomstring.html">XalanDOMString</a>&amp;
<a name="l00172"><a class="code" href="class_outputcontextstack.html#a8">00172</a></a>     getPendingElementName() const
00173     {
00174         return (*m_stackPosition).m_pendingElementName;
00175     }
00176 
00177     <a class="code" href="class_xalandomstring.html">XalanDOMString</a>&amp;
<a name="l00178"><a class="code" href="class_outputcontextstack.html#a9">00178</a></a>     getPendingElementName()
00179     {
00180         return (*m_stackPosition).m_pendingElementName;
00181     }
00182 
00183     const bool&amp;
<a name="l00184"><a class="code" href="class_outputcontextstack.html#a10">00184</a></a>     getHasPendingStartDocument() const
00185     {
00186         return (*m_stackPosition).m_hasPendingStartDocument;
00187     }
00188 
00189     bool&amp;
<a name="l00190"><a class="code" href="class_outputcontextstack.html#a11">00190</a></a>     getHasPendingStartDocument()
00191     {
00192         return (*m_stackPosition).m_hasPendingStartDocument;
00193     }
00194 
00195     const bool&amp;
<a name="l00196"><a class="code" href="class_outputcontextstack.html#a12">00196</a></a>     getMustFlushPendingStartDocument() const
00197     {
00198         return (*m_stackPosition).m_mustFlushPendingStartDocument;
00199     }
00200 
00201     bool&amp;
<a name="l00202"><a class="code" href="class_outputcontextstack.html#a13">00202</a></a>     getMustFlushPendingStartDocument()
00203     {
00204         return (*m_stackPosition).m_mustFlushPendingStartDocument;
00205     }
00206 
00207     size_type
<a name="l00208"><a class="code" href="class_outputcontextstack.html#a14">00208</a></a>     size() const
00209     {
00210         // Since we always keep one dummy entry at the beginning,
00211         // subtract one from the size
00212         return m_stack.size() - 1;
00213     }
00214 
00215     bool
<a name="l00216"><a class="code" href="class_outputcontextstack.html#a15">00216</a></a>     empty() const
00217     {
00218         return size() == 0 ? true : false;
00219     }
00220 
00221     void
00222     clear();
00223 
00224     void
00225     reset();
00226 
00227 private:
00228 
00229     // not implemented
00230     OutputContextStack(const <a class="code" href="class_outputcontextstack.html">OutputContextStack</a>&amp;);
00231 
00232     bool
00233     operator==(const <a class="code" href="class_outputcontextstack.html">OutputContextStack</a>&amp;) const;
00234 
00235     <a class="code" href="class_outputcontextstack.html">OutputContextStack</a>&amp;
00236     operator=(const <a class="code" href="class_outputcontextstack.html">OutputContextStack</a>&amp;);
00237 
00241     OutputContextStackType              m_stack;
00242 
00243     OutputContextStackType::iterator    m_stackPosition;
00244 };
00245 
00246 
00247 
00248 #endif  // XALAN_RESULTNAMESPACESSTACK_HEADER_GUARD
</div></pre><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="images/dot.gif" width="1"></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.4</B><BR>
			Copyright &copy; 2000, 2001, 2002 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">
		</TD>
	</TR>
</TABLE>