source: NonGTP/Xerces/xerces/doc/html/apiDocs/XMLEntityDecl_8hpp-source.html @ 358

Revision 358, 38.2 KB checked in by bittner, 19 years ago (diff)

xerces added

Line 
1<HTML><HEAD><SCRIPT language="JavaScript" src="../resources/script.js" type="text/javascript"></SCRIPT><TITLE>XMLEntityDecl.hpp Source File</TITLE><link href="XercesApi.css" rel="stylesheet" type="text/css"></HEAD><BODY alink="#ff0000" bgcolor="#ffffff" leftmargin="4" link="#0000ff" marginheight="4" marginwidth="4" text="#000000" topmargin="4" vlink="#0000aa"><TABLE border="0" cellpadding="0" cellspacing="0" width="620"><TR><TD align="left" height="60" rowspan="3" valign="top" width="135"><IMG border="0" height="60" hspace="0" src="../resources/logo.gif" vspace="0" width="135"></TD><TD align="left" colspan="4" height="5" valign="top" width="456"><IMG border="0" height="5" hspace="0" src="../resources/line.gif" vspace="0" width="456"></TD><TD align="left" height="60" rowspan="3" valign="top" width="29"><IMG border="0" height="60" hspace="0" src="../resources/right.gif" vspace="0" width="29"></TD></TR><TR><TD align="left" bgcolor="#0086b2" colspan="4" height="35" valign="top" width="456"><IMG alt="" border="0" height="35" hspace="0" src="../graphics/api-header.jpg" vspace="0" width="456"></TD></TR><TR><TD align="left" height="20" valign="top" width="168"><IMG border="0" height="20" hspace="0" src="../resources/bottom.gif" vspace="0" width="168"></TD><TD align="left" height="20" valign="top" width="96"><A href="http://xml.apache.org/" onMouseOut="rolloverOff('xml');" onMouseOver="rolloverOn('xml');" target="new"><IMG alt="http://xml.apache.org/" border="0" height="20" hspace="0" name="xml" onLoad="rolloverLoad('xml','../resources/button-xml-hi.gif','../resources/button-xml-lo.gif');" src="../resources/button-xml-lo.gif" vspace="0" width="96"></A></TD><TD align="left" height="20" valign="top" width="96"><A href="http://www.apache.org/" onMouseOut="rolloverOff('asf');" onMouseOver="rolloverOn('asf');" target="new"><IMG alt="http://www.apache.org/" border="0" height="20" hspace="0" name="asf" onLoad="rolloverLoad('asf','../resources/button-asf-hi.gif','../resources/button-asf-lo.gif');" src="../resources/button-asf-lo.gif" vspace="0" width="96"></A></TD><TD align="left" height="20" valign="top" width="96"><A href="http://www.w3.org/" onMouseOut="rolloverOff('w3c');" onMouseOver="rolloverOn('w3c');" target="new"><IMG alt="http://www.w3.org/" border="0" height="20" hspace="0" name="w3c" onLoad="rolloverLoad('w3c','../resources/button-w3c-hi.gif','../resources/button-w3c-lo.gif');" src="../resources/button-w3c-lo.gif" vspace="0" width="96"></A></TD></TR></TABLE><TABLE border="0" cellpadding="0" cellspacing="0" width="620"><TR><TD align="left" valign="top" width="120"><IMG border="0" height="14" hspace="0" src="../resources/join.gif" vspace="0" width="120"><BR>
2  <A href="../../index.html" onMouseOut="rolloverOff('side-ext-2');" onMouseOver="rolloverOn('side-ext-2');"><IMG alt="Home" border="0" height="12" hspace="0" name="side-ext-2" onLoad="rolloverLoad('side-ext-2','../graphics/ext-2-label-2.jpg','../graphics/ext-2-label-3.jpg');" src="../graphics/ext-2-label-3.jpg" vspace="0" width="120"></A><BR>
3
4  <IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR>
5
6  <A href="../index.html" onMouseOut="rolloverOff('side-index');" onMouseOver="rolloverOn('side-index');"><IMG alt="Readme" border="0" height="12" hspace="0" name="side-index" onLoad="rolloverLoad('side-index','../graphics/index-label-2.jpg','../graphics/index-label-3.jpg');" src="../graphics/index-label-3.jpg" vspace="0" width="120"></A><BR>
7  <A href="../releases.html" onMouseOut="rolloverOff('side-releases');" onMouseOver="rolloverOn('side-releases');"><IMG alt="Release Info" border="0" height="12" hspace="0" name="side-releases" onLoad="rolloverLoad('side-releases','../graphics/releases-label-2.jpg','../graphics/releases-label-3.jpg');" src="../graphics/releases-label-3.jpg" vspace="0" width="120"></A><BR>
8  <IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR>
9  <A href="../install.html" onMouseOut="rolloverOff('side-install');" onMouseOver="rolloverOn('side-install');"><IMG alt="Installation" border="0" height="12" hspace="0" name="side-install" onLoad="rolloverLoad('side-install','../graphics/install-label-2.jpg','../graphics/install-label-3.jpg');" src="../graphics/install-label-3.jpg" vspace="0" width="120"></A><BR>
10  <A href="http://xml.apache.org/dist/xerces-c/" onMouseOut="rolloverOff('side-ext-18');" onMouseOver="rolloverOn('side-ext-18');"><IMG alt="Download" border="0" height="12" hspace="0" name="side-ext-18" onLoad="rolloverLoad('side-ext-18','../graphics/ext-18-label-2.jpg','../graphics/ext-18-label-3.jpg');" src="../graphics/ext-18-label-3.jpg" vspace="0" width="120"></A><BR>
11  <A href="../build.html" onMouseOut="rolloverOff('side-build');" onMouseOver="rolloverOn('side-build');"><IMG alt="Build" border="0" height="12" hspace="0" name="side-build" onLoad="rolloverLoad('side-build','../graphics/build-label-2.jpg','../graphics/build-label-3.jpg');" src="../graphics/build-label-3.jpg" vspace="0" width="120"></A><BR>
12
13  <IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR>
14  <A href="../faqs.html" onMouseOut="rolloverOff('side-faqs');" onMouseOver="rolloverOn('side-faqs');"><IMG alt="FAQs" border="0" height="12" hspace="0" name="side-faqs" onLoad="rolloverLoad('side-faqs','../graphics/faqs-label-2.jpg','../graphics/faqs-label-3.jpg');" src="../graphics/faqs-label-3.jpg" vspace="0" width="120"></A><BR> 
15  <A href="../samples.html" onMouseOut="rolloverOff('side-samples');" onMouseOver="rolloverOn('side-samples');"><IMG alt="Samples" border="0" height="12" hspace="0" name="side-samples" onLoad="rolloverLoad('side-samples','../graphics/samples-label-2.jpg','../graphics/samples-label-3.jpg');" src="../graphics/samples-label-3.jpg" vspace="0" width="120"></A><BR>
16  <A href="../api.html" onMouseOut="rolloverOff('side-api');" onMouseOver="rolloverOn('side-api');"><IMG alt="API Docs" border="0" height="12" hspace="0" name="side-api" onLoad="rolloverLoad('side-api','../graphics/api-label-2.jpg','../graphics/api-label-3.jpg');" src="../graphics/api-label-3.jpg" vspace="0" width="120"></A><BR> 
17
18  <IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR> 
19  <A href="../ApacheDOMC++Binding.html" onMouseOut="rolloverOff('side-ext-68');" onMouseOver="rolloverOn('side-ext-68');"><IMG alt="DOM C++ Binding" border="0" height="12" hspace="0" name="side-ext-68" onLoad="rolloverLoad('side-ext-68','../graphics/ext-68-label-2.jpg','../graphics/ext-68-label-3.jpg');" src="../graphics/ext-68-label-3.jpg" vspace="0" width="120"></A><BR>
20
21  <A href="../program.html" onMouseOut="rolloverOff('side-program');" onMouseOver="rolloverOn('side-program');"><IMG alt="Programming" border="0" height="12" hspace="0" name="side-program" onLoad="rolloverLoad('side-program','../graphics/program-label-2.jpg','../graphics/program-label-3.jpg');" src="../graphics/program-label-3.jpg" vspace="0" width="120"></A><BR>
22  <A href="../migrate.html" onMouseOut="rolloverOff('side-migrate');" onMouseOver="rolloverOn('side-migrate');"><IMG alt="Migration Guide" border="0" height="12" hspace="0" name="side-migrate" onLoad="rolloverLoad('side-migrate','../graphics/migrate-label-2.jpg','../graphics/migrate-label-3.jpg');" src="../graphics/migrate-label-3.jpg" vspace="0" width="120"></A><BR>
23
24  <IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR>
25
26  <A href="../feedback.html" onMouseOut="rolloverOff('side-feedback');" onMouseOver="rolloverOn('side-feedback');"><IMG alt="Feedback" border="0" height="12" hspace="0" name="side-feedback" onLoad="rolloverLoad('side-feedback','../graphics/feedback-label-2.jpg','../graphics/feedback-label-3.jpg');" src="../graphics/feedback-label-3.jpg" vspace="0" width="120"></A><BR>
27  <A href="../bug-report.html" onMouseOut="rolloverOff('side-bug-report');" onMouseOver="rolloverOn('side-bug-report');"><IMG alt="Bug-Reporting" border="0" height="12" hspace="0" name="side-bug-report" onLoad="rolloverLoad('side-bug-report','../graphics/bug-report-label-2.jpg','../graphics/bug-report-label-3.jpg');" src="../graphics/bug-report-label-3.jpg" vspace="0" width="120"></A><BR> 
28  <A href="../pdf.html" onMouseOut="rolloverOff('side-pdf');" onMouseOver="rolloverOn('side-pdf');"><IMG alt="PDF Document" border="0" height="12" hspace="0" name="side-pdf" onLoad="rolloverLoad('side-pdf','../graphics/pdf-label-2.jpg','../graphics/pdf-label-3.jpg');" src="../graphics/pdf-label-3.jpg" vspace="0" width="120"></A><BR>
29
30  <IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR>
31
32  <A href="http://xml.apache.org/websrc/cvsweb.cgi/xml-xerces/c/" onMouseOut="rolloverOff('side-ext-100');" onMouseOver="rolloverOn('side-ext-100');"><IMG alt="CVS Repository" border="0" height="12" hspace="0" name="side-ext-100" onLoad="rolloverLoad('side-ext-100','../graphics/ext-100-label-2.jpg','../graphics/ext-100-label-3.jpg');" src="../graphics/ext-100-label-3.jpg" vspace="0" width="120"></A><BR>
33
34  <A href="http://marc.theaimsgroup.com/?l=xerces-c-dev" onMouseOut="rolloverOff('side-ext-102');" onMouseOver="rolloverOn('side-ext-102');"><IMG alt="Mail Archive" border="0" height="12" hspace="0" name="side-ext-102" onLoad="rolloverLoad('side-ext-102','../graphics/ext-102-label-2.jpg','../graphics/ext-102-label-3.jpg');" src="../graphics/ext-102-label-3.jpg" vspace="0" width="120"></A><BR>
35
36
37<IMG border="0" height="14" hspace="0" src="../resources/close.gif" vspace="0" width="120"><BR></TD><TD align="left" valign="top" width="500"><TABLE border="0" cellpadding="3" cellspacing="0"><TR><TD>
38    <TABLE border="0" cellpadding="0" cellspacing="0" width="494"><TR><TD bgcolor="#FFFFFF" colspan="2" width="494"><TABLE border="0" cellpadding="0" cellspacing="0" width="494"><TR><TD bgcolor="#039acc" height="1" width="1"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="1"></TD><TD bgcolor="#039acc" height="1" width="492"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="492"></TD><TD bgcolor="#0086b2" height="1" width="1"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="1"></TD></TR><TR><TD bgcolor="#039acc" width="1"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="1"></TD><TD bgcolor="#0086b2" width="492"><FONT color="#ffffff" face="arial,helvetica,sanserif" size="+1"><IMG border="0" height="2" hspace="0" src="../resources/void.gif" vspace="0" width="2"><B>API Docs for SAX and DOM</B></FONT></TD><TD bgcolor="#017299" width="1"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="1"></TD></TR><TR><TD bgcolor="#0086b2" height="1" width="1"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="1"></TD><TD bgcolor="#017299" height="1" width="492"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="492"></TD><TD bgcolor="#017299" height="1" width="1"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="1"></TD></TR></TABLE></TD></TR><TR><TD width="10">&nbsp;</TD><TD width="484"><FONT color="#000000" face="arial,helvetica,sanserif">
39
40            <P>
41<!-- Generated by Doxygen 1.2.14 -->
42<center>
43<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>
44<hr><h1>XMLEntityDecl.hpp</h1><a href="XMLEntityDecl_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <font class="comment">/*</font>
4500002 <font class="comment"> * Copyright 1999-2004 The Apache Software Foundation.</font>
4600003 <font class="comment"> * </font>
4700004 <font class="comment"> * Licensed under the Apache License, Version 2.0 (the "License");</font>
4800005 <font class="comment"> * you may not use this file except in compliance with the License.</font>
4900006 <font class="comment"> * You may obtain a copy of the License at</font>
5000007 <font class="comment"> * </font>
5100008 <font class="comment"> *      http://www.apache.org/licenses/LICENSE-2.0</font>
5200009 <font class="comment"> * </font>
5300010 <font class="comment"> * Unless required by applicable law or agreed to in writing, software</font>
5400011 <font class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</font>
5500012 <font class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</font>
5600013 <font class="comment"> * See the License for the specific language governing permissions and</font>
5700014 <font class="comment"> * limitations under the License.</font>
5800015 <font class="comment"> */</font>
5900016
6000017 <font class="comment">/*</font>
6100018 <font class="comment"> * $Log: XMLEntityDecl.hpp,v $</font>
6200019 <font class="comment"> * Revision 1.10  2004/09/08 13:55:59  peiyongz</font>
6300020 <font class="comment"> * Apache License Version 2.0</font>
6400021 <font class="comment"> *</font>
6500022 <font class="comment"> * Revision 1.9  2003/12/01 23:23:25  neilg</font>
6600023 <font class="comment"> * fix for bug 25118; thanks to Jeroen Witmond</font>
6700024 <font class="comment"> *</font>
6800025 <font class="comment"> * Revision 1.8  2003/10/10 16:23:29  peiyongz</font>
6900026 <font class="comment"> * Implementation of Serialization/Deserialization</font>
7000027 <font class="comment"> *</font>
7100028 <font class="comment"> * Revision 1.7  2003/05/16 21:36:55  knoaman</font>
7200029 <font class="comment"> * Memory manager implementation: Modify constructors to pass in the memory manager.</font>
7300030 <font class="comment"> *</font>
7400031 <font class="comment"> * Revision 1.6  2003/05/15 18:26:07  knoaman</font>
7500032 <font class="comment"> * Partial implementation of the configurable memory manager.</font>
7600033 <font class="comment"> *</font>
7700034 <font class="comment"> * Revision 1.5  2003/04/21 20:46:01  knoaman</font>
7800035 <font class="comment"> * Use XMLString::release to prepare for configurable memory manager.</font>
7900036 <font class="comment"> *</font>
8000037 <font class="comment"> * Revision 1.4  2003/03/07 18:08:10  tng</font>
8100038 <font class="comment"> * Return a reference instead of void for operator=</font>
8200039 <font class="comment"> *</font>
8300040 <font class="comment"> * Revision 1.3  2002/11/04 15:00:21  tng</font>
8400041 <font class="comment"> * C++ Namespace Support.</font>
8500042 <font class="comment"> *</font>
8600043 <font class="comment"> * Revision 1.2  2002/08/22 19:27:41  tng</font>
8700044 <font class="comment"> * [Bug 11448] DomCount has problems with XHTML1.1 DTD.</font>
8800045 <font class="comment"> *</font>
8900046 <font class="comment"> * Revision 1.1.1.1  2002/02/01 22:21:51  peiyongz</font>
9000047 <font class="comment"> * sane_include</font>
9100048 <font class="comment"> *</font>
9200049 <font class="comment"> * Revision 1.6  2000/02/24 20:00:23  abagchi</font>
9300050 <font class="comment"> * Swat for removing Log from API docs</font>
9400051 <font class="comment"> *</font>
9500052 <font class="comment"> * Revision 1.5  2000/02/16 23:03:48  roddey</font>
9600053 <font class="comment"> * More documentation updates</font>
9700054 <font class="comment"> *</font>
9800055 <font class="comment"> * Revision 1.4  2000/02/16 21:42:58  aruna1</font>
9900056 <font class="comment"> * API Doc++ summary changes in</font>
10000057 <font class="comment"> *</font>
10100058 <font class="comment"> * Revision 1.3  2000/02/15 01:21:30  roddey</font>
10200059 <font class="comment"> * Some initial documentation improvements. More to come...</font>
10300060 <font class="comment"> *</font>
10400061 <font class="comment"> * Revision 1.2  2000/02/06 07:47:48  rahulj</font>
10500062 <font class="comment"> * Year 2K copyright swat.</font>
10600063 <font class="comment"> *</font>
10700064 <font class="comment"> * Revision 1.1.1.1  1999/11/09 01:08:32  twl</font>
10800065 <font class="comment"> * Initial checkin</font>
10900066 <font class="comment"> *</font>
11000067 <font class="comment"> * Revision 1.2  1999/11/08 20:44:38  rahul</font>
11100068 <font class="comment"> * Swat for adding in Product name and CVS comment log variable.</font>
11200069 <font class="comment"> *</font>
11300070 <font class="comment"> */</font>
11400071
11500072 <font class="preprocessor">#if !defined(XMLENTITYDECL_HPP)</font>
116<a name="l00073"></a><a class="code" href="XMLEntityDecl_8hpp.html#a0">00073</a> <font class="preprocessor"></font><font class="preprocessor">#define XMLENTITYDECL_HPP</font>
11700074 <font class="preprocessor"></font>
11800075 <font class="preprocessor">#include &lt;<a class="code" href="XMemory_8hpp.html">xercesc/util/XMemory.hpp</a>&gt;</font>
11900076 <font class="preprocessor">#include &lt;<a class="code" href="PlatformUtils_8hpp.html">xercesc/util/PlatformUtils.hpp</a>&gt;</font>
12000077 <font class="preprocessor">#include &lt;<a class="code" href="XMLString_8hpp.html">xercesc/util/XMLString.hpp</a>&gt;</font>
12100078 <font class="preprocessor">#include &lt;xercesc/internal/XSerializable.hpp&gt;</font>
12200079
12300080 <a class="code" href="XercesDefs_8hpp.html#a2">XERCES_CPP_NAMESPACE_BEGIN</a>
12400081
125<a name="l00100"></a><a class="code" href="classXMLEntityDecl.html">00100</a> <font class="keyword">class </font><a class="code" href="XercesDefs_8hpp.html#a9"></a> <a class="code" href="classXMLEntityDecl.html">XMLEntityDecl</a> : <font class="keyword">public</font> XSerializable, <font class="keyword">public</font> <a class="code" href="classXMemory.html">XMemory</a>
12600101 {
12700102 <font class="keyword">public</font>:
12800103     <font class="comment">// -----------------------------------------------------------------------</font>
12900104     <font class="comment">//  Constructors and Destructor</font>
13000105     <font class="comment">// -----------------------------------------------------------------------</font>
13100106
13200109
13300113     <a class="code" href="classXMLEntityDecl.html">XMLEntityDecl</a>(<a class="code" href="classMemoryManager.html">MemoryManager</a>* <font class="keyword">const</font> manager = <a class="code" href="classXMLPlatformUtils.html#z488_4">XMLPlatformUtils::fgMemoryManager</a>);
13400114
13500121     <a class="code" href="classXMLEntityDecl.html">XMLEntityDecl</a>
13600122     (
13700123         <font class="keyword">const</font>   XMLCh* <font class="keyword">const</font>    entName
13800124         , <a class="code" href="classMemoryManager.html">MemoryManager</a>* <font class="keyword">const</font> manager = <a class="code" href="classXMLPlatformUtils.html#z488_4">XMLPlatformUtils::fgMemoryManager</a>
13900125     );
14000126
14100135     <a class="code" href="classXMLEntityDecl.html">XMLEntityDecl</a>
14200136     (
14300137         <font class="keyword">const</font>   XMLCh* <font class="keyword">const</font>    entName
14400138         , <font class="keyword">const</font> XMLCh* <font class="keyword">const</font>    value
14500139         , <a class="code" href="classMemoryManager.html">MemoryManager</a>* <font class="keyword">const</font> manager = <a class="code" href="classXMLPlatformUtils.html#z488_4">XMLPlatformUtils::fgMemoryManager</a>
14600140     );
14700141
14800150     <a class="code" href="classXMLEntityDecl.html">XMLEntityDecl</a>
14900151     (
15000152         <font class="keyword">const</font>   XMLCh* <font class="keyword">const</font>    entName
15100153         , <font class="keyword">const</font> XMLCh           value
15200154         , <a class="code" href="classMemoryManager.html">MemoryManager</a>* <font class="keyword">const</font> manager = <a class="code" href="classXMLPlatformUtils.html#z488_4">XMLPlatformUtils::fgMemoryManager</a>
15300155     );
15400157
15500160
15600164     <font class="keyword">virtual</font> ~<a class="code" href="classXMLEntityDecl.html">XMLEntityDecl</a>();
15700165
15800167
15900168
16000169     <font class="comment">// -----------------------------------------------------------------------</font>
16100170     <font class="comment">//  Virtual entity decl interface</font>
16200171     <font class="comment">// -----------------------------------------------------------------------</font>
16300172
16400175
16500183     <font class="keyword">virtual</font> <font class="keywordtype">bool</font> getDeclaredInIntSubset() <font class="keyword">const</font> = 0;
16600184
16700190     <font class="keyword">virtual</font> <font class="keywordtype">bool</font> getIsParameter() <font class="keyword">const</font> = 0;
16800191
16900197     <font class="keyword">virtual</font> <font class="keywordtype">bool</font> getIsSpecialChar() <font class="keyword">const</font> = 0;
17000198
17100200
17200201
17300202     <font class="comment">// -----------------------------------------------------------------------</font>
17400203     <font class="comment">//  Getter methods</font>
17500204     <font class="comment">// -----------------------------------------------------------------------</font>
17600205
17700208
17800213     <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> getId() <font class="keyword">const</font>;
17900214
18000220     <font class="keyword">const</font> XMLCh* getName() <font class="keyword">const</font>;
18100221
18200226     <font class="keyword">const</font> XMLCh* getNotationName() <font class="keyword">const</font>;
18300227
18400232     <font class="keyword">const</font> XMLCh* getPublicId() <font class="keyword">const</font>;
18500233
18600238     <font class="keyword">const</font> XMLCh* getSystemId() <font class="keyword">const</font>;
18700239
18800243     <font class="keyword">const</font> XMLCh* getBaseURI() <font class="keyword">const</font>;
18900244
19000250     <font class="keyword">const</font> XMLCh* getValue() <font class="keyword">const</font>;
19100251
19200257     <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> getValueLen() <font class="keyword">const</font>;
19300258
19400263     <font class="keywordtype">bool</font> isExternal() <font class="keyword">const</font>;
19500264
19600270     <font class="keywordtype">bool</font> isUnparsed() <font class="keyword">const</font>;
19700271
19800279     <a class="code" href="classMemoryManager.html">MemoryManager</a>* getMemoryManager() <font class="keyword">const</font>;
19900280
20000282
20100283
20200284     <font class="comment">// -----------------------------------------------------------------------</font>
20300285     <font class="comment">//  Setter methods</font>
20400286     <font class="comment">// -----------------------------------------------------------------------</font>
20500287
20600290
20700299     <font class="keywordtype">void</font> setName
20800300     (
20900301         <font class="keyword">const</font>   XMLCh* <font class="keyword">const</font>    entName
21000302     );
21100303
21200310     <font class="keywordtype">void</font> setNotationName(<font class="keyword">const</font> XMLCh* <font class="keyword">const</font> newName);
21300311
21400318     <font class="keywordtype">void</font> setPublicId(<font class="keyword">const</font> XMLCh* <font class="keyword">const</font> newId);
21500319
21600329     <font class="keywordtype">void</font> setSystemId(<font class="keyword">const</font> XMLCh* <font class="keyword">const</font> newId);
21700330
21800337     <font class="keywordtype">void</font> setBaseURI(<font class="keyword">const</font> XMLCh* <font class="keyword">const</font> newId);
21900338
22000346     <font class="keywordtype">void</font> setValue(<font class="keyword">const</font> XMLCh* <font class="keyword">const</font> newValue);
22100347
22200349
22300350     <font class="comment">/* For internal use only */</font>
22400351     <font class="keywordtype">void</font> setId(<font class="keyword">const</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> newId);
22500352
22600353
22700354     <font class="comment">// -----------------------------------------------------------------------</font>
22800355     <font class="comment">//  Support named pool syntax</font>
22900356     <font class="comment">// -----------------------------------------------------------------------</font>
23000357
23100360
23200367     <font class="keyword">const</font> XMLCh* getKey() <font class="keyword">const</font>;
23300368
23400370
23500371     <font class="comment">/***</font>
23600372 <font class="comment">     * Support for Serialization/De-serialization</font>
23700373 <font class="comment">     ***/</font>
23800374     DECL_XSERIALIZABLE(<a class="code" href="classXMLEntityDecl.html">XMLEntityDecl</a>)
23900375
24000376 <font class="keyword">private</font> :
24100377     <font class="comment">// -----------------------------------------------------------------------</font>
24200378     <font class="comment">//  Unimplemented constructors and operators</font>
24300379     <font class="comment">// -----------------------------------------------------------------------</font>
24400380     <a class="code" href="classXMLEntityDecl.html">XMLEntityDecl</a>(<font class="keyword">const</font> <a class="code" href="classXMLEntityDecl.html">XMLEntityDecl</a>&amp;);
24500381     <a class="code" href="classXMLEntityDecl.html">XMLEntityDecl</a>&amp; operator=(<a class="code" href="classXMLEntityDecl.html">XMLEntityDecl</a>&amp;);
24600382
24700383
24800384     <font class="comment">// -----------------------------------------------------------------------</font>
24900385     <font class="comment">//  XMLEntityDecl: Private helper methods</font>
25000386     <font class="comment">// -----------------------------------------------------------------------</font>
25100387     <font class="keywordtype">void</font> cleanUp();
25200388
25300389
25400390     <font class="comment">// -----------------------------------------------------------------------</font>
25500391     <font class="comment">//  Private data members</font>
25600392     <font class="comment">//</font>
25700393     <font class="comment">//  fId</font>
25800394     <font class="comment">//      This is the unique id given to this entity decl.</font>
25900395     <font class="comment">//</font>
26000396     <font class="comment">//  fName</font>
26100397     <font class="comment">//      The name of the enitity. Entity names are never namespace based.</font>
26200398     <font class="comment">//</font>
26300399     <font class="comment">//  fNotationName</font>
26400400     <font class="comment">//      The optional notation of the entity. If there was none, then its</font>
26500401     <font class="comment">//      empty.</font>
26600402     <font class="comment">//</font>
26700403     <font class="comment">//  fPublicId</font>
26800404     <font class="comment">//      The public id of the entity, which can be empty.</font>
26900405     <font class="comment">//</font>
27000406     <font class="comment">//  fSystemId</font>
27100407     <font class="comment">//      The system id of the entity.</font>
27200408     <font class="comment">//</font>
27300409     <font class="comment">//  fValue</font>
27400410     <font class="comment">//  fValueLen</font>
27500411     <font class="comment">//      The entity's value and length, which is only valid if its an</font>
27600412     <font class="comment">//      internal style entity.</font>
27700413     <font class="comment">//</font>
27800414     <font class="comment">//  fBaseURI</font>
27900415     <font class="comment">//      The base URI of the entity.   According to XML InfoSet, such value</font>
28000416     <font class="comment">//      is the URI where it is declared (NOT referenced).</font>
28100417     <font class="comment">// -----------------------------------------------------------------------</font>
28200418     <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font>    fId;
28300419     <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font>    fValueLen;
28400420     XMLCh*          fValue;
28500421     XMLCh*          fName;
28600422     XMLCh*          fNotationName;
28700423     XMLCh*          fPublicId;
28800424     XMLCh*          fSystemId;
28900425     XMLCh*          fBaseURI;
29000426     <a class="code" href="classMemoryManager.html">MemoryManager</a>*  fMemoryManager;
29100427 };
29200428
29300429
29400430 <font class="comment">// ---------------------------------------------------------------------------</font>
29500431 <font class="comment">//  XMLEntityDecl: Getter methods</font>
29600432 <font class="comment">// ---------------------------------------------------------------------------</font>
297<a name="l00433"></a><a class="code" href="classXMLEntityDecl.html#z270_0">00433</a> <font class="keyword">inline</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> <a class="code" href="classXMLEntityDecl.html#z270_0">XMLEntityDecl::getId</a>()<font class="keyword"> const</font>
29800434 <font class="keyword"></font>{
29900435     <font class="keywordflow">return</font> fId;
30000436 }
30100437
302<a name="l00438"></a><a class="code" href="classXMLEntityDecl.html#z270_1">00438</a> <font class="keyword">inline</font> <font class="keyword">const</font> XMLCh* <a class="code" href="classXMLEntityDecl.html#z270_1">XMLEntityDecl::getName</a>()<font class="keyword"> const</font>
30300439 <font class="keyword"></font>{
30400440     <font class="keywordflow">return</font> fName;
30500441 }
30600442
307<a name="l00443"></a><a class="code" href="classXMLEntityDecl.html#z270_2">00443</a> <font class="keyword">inline</font> <font class="keyword">const</font> XMLCh* <a class="code" href="classXMLEntityDecl.html#z270_2">XMLEntityDecl::getNotationName</a>()<font class="keyword"> const</font>
30800444 <font class="keyword"></font>{
30900445     <font class="keywordflow">return</font> fNotationName;
31000446 }
31100447
312<a name="l00448"></a><a class="code" href="classXMLEntityDecl.html#z270_3">00448</a> <font class="keyword">inline</font> <font class="keyword">const</font> XMLCh* <a class="code" href="classXMLEntityDecl.html#z270_3">XMLEntityDecl::getPublicId</a>()<font class="keyword"> const</font>
31300449 <font class="keyword"></font>{
31400450     <font class="keywordflow">return</font> fPublicId;
31500451 }
31600452
317<a name="l00453"></a><a class="code" href="classXMLEntityDecl.html#z270_4">00453</a> <font class="keyword">inline</font> <font class="keyword">const</font> XMLCh* <a class="code" href="classXMLEntityDecl.html#z270_4">XMLEntityDecl::getSystemId</a>()<font class="keyword"> const</font>
31800454 <font class="keyword"></font>{
31900455     <font class="keywordflow">return</font> fSystemId;
32000456 }
32100457
322<a name="l00458"></a><a class="code" href="classXMLEntityDecl.html#z270_5">00458</a> <font class="keyword">inline</font> <font class="keyword">const</font> XMLCh* <a class="code" href="classXMLEntityDecl.html#z270_5">XMLEntityDecl::getBaseURI</a>()<font class="keyword"> const</font>
32300459 <font class="keyword"></font>{
32400460     <font class="keywordflow">return</font> fBaseURI;
32500461 }
32600462
327<a name="l00463"></a><a class="code" href="classXMLEntityDecl.html#z270_6">00463</a> <font class="keyword">inline</font> <font class="keyword">const</font> XMLCh* <a class="code" href="classXMLEntityDecl.html#z270_6">XMLEntityDecl::getValue</a>()<font class="keyword"> const</font>
32800464 <font class="keyword"></font>{
32900465     <font class="keywordflow">return</font> fValue;
33000466 }
33100467
332<a name="l00468"></a><a class="code" href="classXMLEntityDecl.html#z270_7">00468</a> <font class="keyword">inline</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> <a class="code" href="classXMLEntityDecl.html#z270_7">XMLEntityDecl::getValueLen</a>()<font class="keyword"> const</font>
33300469 <font class="keyword"></font>{
33400470     <font class="keywordflow">return</font> fValueLen;
33500471 }
33600472
337<a name="l00473"></a><a class="code" href="classXMLEntityDecl.html#z270_8">00473</a> <font class="keyword">inline</font> <font class="keywordtype">bool</font> <a class="code" href="classXMLEntityDecl.html#z270_8">XMLEntityDecl::isExternal</a>()<font class="keyword"> const</font>
33800474 <font class="keyword"></font>{
33900475     <font class="comment">// If it has a system or public id, its external</font>
34000476     <font class="keywordflow">return</font> ((fPublicId != 0) || (fSystemId != 0));
34100477 }
34200478
343<a name="l00479"></a><a class="code" href="classXMLEntityDecl.html#z270_9">00479</a> <font class="keyword">inline</font> <font class="keywordtype">bool</font> <a class="code" href="classXMLEntityDecl.html#z270_9">XMLEntityDecl::isUnparsed</a>()<font class="keyword"> const</font>
34400480 <font class="keyword"></font>{
34500481     <font class="comment">// If it has a notation, its unparsed</font>
34600482     <font class="keywordflow">return</font> (fNotationName != 0);
34700483 }
34800484
349<a name="l00485"></a><a class="code" href="classXMLEntityDecl.html#z270_10">00485</a> <font class="keyword">inline</font> <a class="code" href="classMemoryManager.html">MemoryManager</a>* <a class="code" href="classXMLEntityDecl.html#z270_10">XMLEntityDecl::getMemoryManager</a>()<font class="keyword"> const</font>
35000486 <font class="keyword"></font>{
35100487     <font class="keywordflow">return</font> fMemoryManager;
35200488 }
35300489
35400490 <font class="comment">// ---------------------------------------------------------------------------</font>
35500491 <font class="comment">//  XMLEntityDecl: Setter methods</font>
35600492 <font class="comment">// ---------------------------------------------------------------------------</font>
357<a name="l00493"></a><a class="code" href="classXMLEntityDecl.html#a0">00493</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> <a class="code" href="classXMLEntityDecl.html#a0">XMLEntityDecl::setId</a>(<font class="keyword">const</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> newId)
35800494 {
35900495     fId = newId;
36000496 }
36100497
362<a name="l00498"></a><a class="code" href="classXMLEntityDecl.html#z271_1">00498</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> <a class="code" href="classXMLEntityDecl.html#z271_1">XMLEntityDecl::setNotationName</a>(<font class="keyword">const</font> XMLCh* <font class="keyword">const</font> newName)
36300499 {
36400500     <font class="keywordflow">if</font> (fNotationName)
36500501         fMemoryManager-&gt;<a class="code" href="classMemoryManager.html#z221_1">deallocate</a>(fNotationName);
36600502
36700503     fNotationName = <a class="code" href="classXMLString.html#z518_0">XMLString::replicate</a>(newName, fMemoryManager);
36800504 }
36900505
370<a name="l00506"></a><a class="code" href="classXMLEntityDecl.html#z271_2">00506</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> <a class="code" href="classXMLEntityDecl.html#z271_2">XMLEntityDecl::setPublicId</a>(<font class="keyword">const</font> XMLCh* <font class="keyword">const</font> newId)
37100507 {
37200508     <font class="keywordflow">if</font> (fPublicId)
37300509         fMemoryManager-&gt;<a class="code" href="classMemoryManager.html#z221_1">deallocate</a>(fPublicId);
37400510
37500511     fPublicId = <a class="code" href="classXMLString.html#z518_0">XMLString::replicate</a>(newId, fMemoryManager);
37600512 }
37700513
378<a name="l00514"></a><a class="code" href="classXMLEntityDecl.html#z271_3">00514</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> <a class="code" href="classXMLEntityDecl.html#z271_3">XMLEntityDecl::setSystemId</a>(<font class="keyword">const</font> XMLCh* <font class="keyword">const</font> newId)
37900515 {
38000516     <font class="keywordflow">if</font> (fSystemId)
38100517         fMemoryManager-&gt;<a class="code" href="classMemoryManager.html#z221_1">deallocate</a>(fSystemId);
38200518
38300519     fSystemId = <a class="code" href="classXMLString.html#z518_0">XMLString::replicate</a>(newId, fMemoryManager);
38400520 }
38500521
386<a name="l00522"></a><a class="code" href="classXMLEntityDecl.html#z271_4">00522</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> <a class="code" href="classXMLEntityDecl.html#z271_4">XMLEntityDecl::setBaseURI</a>(<font class="keyword">const</font> XMLCh* <font class="keyword">const</font> newId)
38700523 {
38800524     <font class="keywordflow">if</font> (fBaseURI)
38900525         fMemoryManager-&gt;<a class="code" href="classMemoryManager.html#z221_1">deallocate</a>(fBaseURI);
39000526
39100527     fBaseURI = <a class="code" href="classXMLString.html#z518_0">XMLString::replicate</a>(newId, fMemoryManager);
39200528 }
39300529
394<a name="l00530"></a><a class="code" href="classXMLEntityDecl.html#z271_5">00530</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> <a class="code" href="classXMLEntityDecl.html#z271_5">XMLEntityDecl::setValue</a>(<font class="keyword">const</font> XMLCh* <font class="keyword">const</font> newValue)
39500531 {
39600532     <font class="keywordflow">if</font> (fValue)
39700533         fMemoryManager-&gt;<a class="code" href="classMemoryManager.html#z221_1">deallocate</a>(fValue);
39800534
39900535     fValue = <a class="code" href="classXMLString.html#z518_0">XMLString::replicate</a>(newValue, fMemoryManager);
40000536     fValueLen = <a class="code" href="classXMLString.html#z519_8">XMLString::stringLen</a>(newValue);
40100537 }
40200538
40300539
40400540 <font class="comment">// ---------------------------------------------------------------------------</font>
40500541 <font class="comment">//  XMLEntityDecl: Support named pool syntax</font>
40600542 <font class="comment">// ---------------------------------------------------------------------------</font>
407<a name="l00543"></a><a class="code" href="classXMLEntityDecl.html#z272_0">00543</a> <font class="keyword">inline</font> <font class="keyword">const</font> XMLCh* <a class="code" href="classXMLEntityDecl.html#z272_0">XMLEntityDecl::getKey</a>()<font class="keyword"> const</font>
40800544 <font class="keyword"></font>{
40900545     <font class="keywordflow">return</font> fName;
41000546 }
41100547
41200548 <a class="code" href="XercesDefs_8hpp.html#a3">XERCES_CPP_NAMESPACE_END</a>
41300549
41400550 <font class="preprocessor">#endif</font>
415</pre></div>    </FONT></TD></TR></TABLE><BR>
416</TD></TR></TABLE></TD></TR></TABLE><BR><TABLE border="0" cellpadding="0" cellspacing="0" width="620"><TR><TD bgcolor="#0086b2"><IMG height="1" src="images/dot.gif" width="1" alt=""></TD></TR><TR><TD align="center"><FONT color="#0086b2" size="-1"><I>
417              Copyright &copy; 1994-2004 The Apache Software Foundation.
418              All Rights Reserved.
419            </I></FONT></TD></TR></TABLE></BODY></HTML>
Note: See TracBrowser for help on using the repository browser.