blob: ffe028722e644c697264436bbde2f80700efccbc [file] [log] [blame]
<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> &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>XSLException.hpp</h1><a href="XSLException_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(XSLEXCEPTION_HEADER_GUARD_1357924680)</font>
<a name="l00017"></a><a class="code" href="XSLException_8hpp.html#a0">00017</a> <font class="preprocessor"></font><font class="preprocessor">#define XSLEXCEPTION_HEADER_GUARD_1357924680</font>
00018 <font class="preprocessor"></font>
00019
00020
00021 <font class="comment">// Base include file. Must be first.</font>
00022 <font class="preprocessor">#include &lt;<a class="code" href="PlatformSupportDefinitions_8hpp.html">xalanc/PlatformSupport/PlatformSupportDefinitions.hpp</a>&gt;</font>
00023
00024
00025
00026 <font class="preprocessor">#include &lt;<a class="code" href="DOMStringHelper_8hpp.html">xalanc/PlatformSupport/DOMStringHelper.hpp</a>&gt;</font>
00027 <font class="preprocessor">#include &lt;<a class="code" href="XalanLocator_8hpp.html">xalanc/PlatformSupport/XalanLocator.hpp</a>&gt;</font>
00028
00029
00030
00031 XALAN_CPP_NAMESPACE_BEGIN
00032
00033
00034
<a name="l00035"></a><a class="code" href="XSLException_8hpp.html#a1">00035</a> <font class="keyword">typedef</font> XERCES_CPP_NAMESPACE_QUALIFIER Locator LocatorType;
00036
00037
00038
<a name="l00039"></a><a class="code" href="classXSLException.html">00039</a> <font class="keyword">class </font>XALAN_PLATFORMSUPPORT_EXPORT <a class="code" href="classXSLException.html">XSLException</a>
00040 {
00041 <font class="keyword">public</font>:
00042
<a name="l00043"></a><a class="code" href="classXSLException.html#s0">00043</a> <font class="keyword">typedef</font> XalanLocator::size_type size_type;
00044
00054 <a class="code" href="classXSLException.html#a0">XSLException</a>(
00055 <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>&amp; theMessage,
00056 <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>&amp; theURI,
00057 <font class="keywordtype">int</font> theLineNumber,
00058 <font class="keywordtype">int</font> theColumnNumber,
00059 MemoryManagerType&amp; theManager);
00067 <a class="code" href="classXSLException.html#a0">XSLException</a>(
00068 <font class="keyword">const</font> LocatorType&amp; theLocator,
00069 <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>&amp; theMessage,
00070 MemoryManagerType&amp; theManager);
00077 <a class="code" href="classXSLException.html#a0">XSLException</a>(
00078 <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>&amp; theMessage,
00079 MemoryManagerType&amp; theManager);
00080
00081
00082 <a class="code" href="classXSLException.html#a0">XSLException</a>(<font class="keyword">const</font> <a class="code" href="classXSLException.html">XSLException</a>&amp; other);
00083
00084 <font class="keyword">virtual</font>
00085 <a class="code" href="classXSLException.html#a4">~XSLException</a>();
00086
00092 <font class="keyword">virtual</font> <font class="keyword">const</font> XalanDOMChar*
00093 <a class="code" href="classXSLException.html#a5">getType</a>() <font class="keyword">const</font> = 0;
00094
00100 <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>&amp;
<a name="l00101"></a><a class="code" href="classXSLException.html#a6">00101</a> <a class="code" href="classXSLException.html#a6">getMessage</a>()<font class="keyword"> const</font>
00102 <font class="keyword"> </font>{
00103 <font class="keywordflow">return</font> m_message;
00104 }
00105
00111 <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>&amp;
<a name="l00112"></a><a class="code" href="classXSLException.html#a7">00112</a> <a class="code" href="classXSLException.html#a7">getURI</a>()<font class="keyword"> const</font>
00113 <font class="keyword"> </font>{
00114 <font class="keywordflow">return</font> m_uri;
00115 }
00116
00122 size_type
<a name="l00123"></a><a class="code" href="classXSLException.html#a8">00123</a> <a class="code" href="classXSLException.html#a8">getLineNumber</a>()<font class="keyword"> const</font>
00124 <font class="keyword"> </font>{
00125 <font class="keywordflow">return</font> m_lineNumber;
00126 }
00127
00133 size_type
<a name="l00134"></a><a class="code" href="classXSLException.html#a9">00134</a> <a class="code" href="classXSLException.html#a9">getColumnNumber</a>()<font class="keyword"> const</font>
00135 <font class="keyword"> </font>{
00136 <font class="keywordflow">return</font> m_columnNumber;
00137 }
00138
00139
00140 MemoryManagerType&amp;
<a name="l00141"></a><a class="code" href="classXSLException.html#a10">00141</a> <a class="code" href="classXSLException.html#a10">getMemoryManager</a>()<font class="keyword">const</font>
00142 {
00143 <font class="comment">//#pragma message ("Breaks the const-correctness !")</font>
00144 <a class="code" href="classXalanDOMString.html">XalanDOMString</a>* pnt = const_cast&lt;XalanDOMString*&gt;(&amp;m_message);
00145 <font class="keywordflow">return</font> pnt-&gt;<a class="code" href="classXalanDOMString.html#a72">getMemoryManager</a>();
00146 }
00147
00148 <font class="keywordtype">void</font>
00149 <a class="code" href="classXSLException.html#a11">defaultFormat</a>(<a class="code" href="classXalanDOMString.html">XalanDOMString</a>&amp; theBuffer) <font class="keyword">const</font>;
00150
00151 <font class="keyword">static</font> <font class="keywordtype">void</font>
<a name="l00152"></a><a class="code" href="classXSLException.html#d0">00152</a> <a class="code" href="classXSLException.html#a11">defaultFormat</a>(
00153 <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>&amp; theMessage,
00154 <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>&amp; theURI,
00155 size_type theLineNumber,
00156 size_type theColumnNumber,
00157 <font class="keyword">const</font> XalanDOMChar* theType,
00158 <a class="code" href="classXalanDOMString.html">XalanDOMString</a>&amp; theBuffer)<font class="keyword"></font>
00159 <font class="keyword"> </font>{
00160 <a class="code" href="classXSLException.html#a11">defaultFormat</a>(
00161 theMessage.<a class="code" href="classXalanDOMString.html#a33">c_str</a>(),
00162 theMessage.<a class="code" href="classXalanDOMString.html#a19">size</a>(),
00163 theURI.<a class="code" href="classXalanDOMString.html#a33">c_str</a>(),
00164 theURI.<a class="code" href="classXalanDOMString.html#a19">size</a>(),
00165 theLineNumber,
00166 theColumnNumber,
00167 theType,
00168 <a class="code" href="classXalanDOMString.html#a20">XalanDOMString::length</a>(theType),
00169 theBuffer);
00170 }
00171
00172 <font class="keyword">static</font> <font class="keywordtype">void</font>
<a name="l00173"></a><a class="code" href="classXSLException.html#d1">00173</a> <a class="code" href="classXSLException.html#a11">defaultFormat</a>(
00174 <font class="keyword">const</font> XalanDOMChar* theMessage,
00175 <font class="keyword">const</font> XalanDOMChar* theURI,
00176 size_type theLineNumber,
00177 size_type theColumnNumber,
00178 <font class="keyword">const</font> XalanDOMChar* theType,
00179 <a class="code" href="classXalanDOMString.html">XalanDOMString</a>&amp; theBuffer)<font class="keyword"></font>
00180 <font class="keyword"> </font>{
00181 assert(theMessage != 0 &amp;&amp; theURI != 0 &amp;&amp; theType != 0);
00182
00183 <a class="code" href="classXSLException.html#a11">defaultFormat</a>(
00184 theMessage,
00185 XalanDOMString::length(theMessage),
00186 theURI,
00187 <a class="code" href="classXalanDOMString.html#a20">XalanDOMString::length</a>(theURI),
00188 theLineNumber,
00189 theColumnNumber,
00190 theType,
00191 <a class="code" href="classXalanDOMString.html#a20">XalanDOMString::length</a>(theType),
00192 theBuffer);
00193 }
00194
00195 <font class="keyword">static</font> <font class="keywordtype">void</font>
00196 <a class="code" href="classXSLException.html#a11">defaultFormat</a>(
00197 <font class="keyword">const</font> XalanDOMChar* theMessage,
00198 <font class="keyword">const</font> XalanDOMString::size_type theMessageLength,
00199 <font class="keyword">const</font> XalanDOMChar* theURI,
00200 <font class="keyword">const</font> XalanDOMString::size_type theURILength,
00201 size_type theLineNumber,
00202 size_type theColumnNumber,
00203 <font class="keyword">const</font> XalanDOMChar* theType,
00204 <font class="keyword">const</font> XalanDOMString::size_type theTypeLength,
00205 <a class="code" href="classXalanDOMString.html">XalanDOMString</a>&amp; theBuffer);
00206
00207 <font class="keyword">private</font>:
00208
00209 <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a> m_message;
00210 <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a> m_uri;
00211
00212 <font class="keyword">const</font> size_type m_lineNumber;
00213 <font class="keyword">const</font> size_type m_columnNumber;
00214
00215
00216 };
00217
00218
00219
00220 XALAN_CPP_NAMESPACE_END
00221
00222
00223
00224 <font class="preprocessor">#endif // XSLEXCEPTION_HEADER_GUARD_1357924680</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 &copy; 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>