1 | <HTML><HEAD><SCRIPT language="JavaScript" src="../resources/script.js" type="text/javascript"></SCRIPT><TITLE>XMLFormatter.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"> </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> <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>
|
---|
44 | <hr><h1>XMLFormatter.hpp</h1><a href="XMLFormatter_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <font class="comment">/*</font>
|
---|
45 | 00002 <font class="comment"> * Copyright 1999-2000,2004 The Apache Software Foundation.</font>
|
---|
46 | 00003 <font class="comment"> * </font>
|
---|
47 | 00004 <font class="comment"> * Licensed under the Apache License, Version 2.0 (the "License");</font>
|
---|
48 | 00005 <font class="comment"> * you may not use this file except in compliance with the License.</font>
|
---|
49 | 00006 <font class="comment"> * You may obtain a copy of the License at</font>
|
---|
50 | 00007 <font class="comment"> * </font>
|
---|
51 | 00008 <font class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</font>
|
---|
52 | 00009 <font class="comment"> * </font>
|
---|
53 | 00010 <font class="comment"> * Unless required by applicable law or agreed to in writing, software</font>
|
---|
54 | 00011 <font class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</font>
|
---|
55 | 00012 <font class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</font>
|
---|
56 | 00013 <font class="comment"> * See the License for the specific language governing permissions and</font>
|
---|
57 | 00014 <font class="comment"> * limitations under the License.</font>
|
---|
58 | 00015 <font class="comment"> */</font>
|
---|
59 | 00016
|
---|
60 | 00017 <font class="comment">/*</font>
|
---|
61 | 00018 <font class="comment"> * $Log: XMLFormatter.hpp,v $</font>
|
---|
62 | 00019 <font class="comment"> * Revision 1.21 2004/09/08 13:55:59 peiyongz</font>
|
---|
63 | 00020 <font class="comment"> * Apache License Version 2.0</font>
|
---|
64 | 00021 <font class="comment"> *</font>
|
---|
65 | 00022 <font class="comment"> * Revision 1.20 2004/01/29 11:46:29 cargilld</font>
|
---|
66 | 00023 <font class="comment"> * Code cleanup changes to get rid of various compiler diagnostic messages.</font>
|
---|
67 | 00024 <font class="comment"> *</font>
|
---|
68 | 00025 <font class="comment"> * Revision 1.19 2003/12/01 23:23:25 neilg</font>
|
---|
69 | 00026 <font class="comment"> * fix for bug 25118; thanks to Jeroen Witmond</font>
|
---|
70 | 00027 <font class="comment"> *</font>
|
---|
71 | 00028 <font class="comment"> * Revision 1.18 2003/10/10 02:06:09 neilg</font>
|
---|
72 | 00029 <font class="comment"> * fix for bug 21780; thanks to David Cargill</font>
|
---|
73 | 00030 <font class="comment"> *</font>
|
---|
74 | 00031 <font class="comment"> * Revision 1.17 2003/09/22 08:50:04 gareth</font>
|
---|
75 | 00032 <font class="comment"> * doc fix</font>
|
---|
76 | 00033 <font class="comment"> *</font>
|
---|
77 | 00034 <font class="comment"> * Revision 1.16 2003/09/08 21:48:36 peiyongz</font>
|
---|
78 | 00035 <font class="comment"> * Restore pre2.3 constructors</font>
|
---|
79 | 00036 <font class="comment"> *</font>
|
---|
80 | 00037 <font class="comment"> * Revision 1.15 2003/05/30 16:11:43 gareth</font>
|
---|
81 | 00038 <font class="comment"> * Fixes so we compile under VC7.1. Patch by Alberto Massari.</font>
|
---|
82 | 00039 <font class="comment"> *</font>
|
---|
83 | 00040 <font class="comment"> * Revision 1.14 2003/05/16 21:36:55 knoaman</font>
|
---|
84 | 00041 <font class="comment"> * Memory manager implementation: Modify constructors to pass in the memory manager.</font>
|
---|
85 | 00042 <font class="comment"> *</font>
|
---|
86 | 00043 <font class="comment"> * Revision 1.13 2003/05/15 18:26:07 knoaman</font>
|
---|
87 | 00044 <font class="comment"> * Partial implementation of the configurable memory manager.</font>
|
---|
88 | 00045 <font class="comment"> *</font>
|
---|
89 | 00046 <font class="comment"> * Revision 1.12 2003/03/17 03:19:52 peiyongz</font>
|
---|
90 | 00047 <font class="comment"> * Bug#18051 memory leakage in XMLFormatter</font>
|
---|
91 | 00048 <font class="comment"> *</font>
|
---|
92 | 00049 <font class="comment"> * Revision 1.11 2003/03/16 06:00:43 peiyongz</font>
|
---|
93 | 00050 <font class="comment"> * Bug#17983 Formatter does not escape control characters</font>
|
---|
94 | 00051 <font class="comment"> *</font>
|
---|
95 | 00052 <font class="comment"> * Revision 1.10 2003/03/11 12:58:36 tng</font>
|
---|
96 | 00053 <font class="comment"> * Fix compilation error on AIX.</font>
|
---|
97 | 00054 <font class="comment"> *</font>
|
---|
98 | 00055 <font class="comment"> * Revision 1.9 2003/03/07 21:42:37 tng</font>
|
---|
99 | 00056 <font class="comment"> * [Bug 17589] Refactoring ... . Patch from Jacques Legare.</font>
|
---|
100 | 00057 <font class="comment"> *</font>
|
---|
101 | 00058 <font class="comment"> * Revision 1.8 2003/03/07 18:08:10 tng</font>
|
---|
102 | 00059 <font class="comment"> * Return a reference instead of void for operator=</font>
|
---|
103 | 00060 <font class="comment"> *</font>
|
---|
104 | 00061 <font class="comment"> * Revision 1.7 2003/01/31 00:30:48 jberry</font>
|
---|
105 | 00062 <font class="comment"> * Syntax error in declaration</font>
|
---|
106 | 00063 <font class="comment"> *</font>
|
---|
107 | 00064 <font class="comment"> * Revision 1.6 2003/01/28 18:32:33 peiyongz</font>
|
---|
108 | 00065 <font class="comment"> * Bug#13694: Allow Xerces to write the BOM to XML files</font>
|
---|
109 | 00066 <font class="comment"> *</font>
|
---|
110 | 00067 <font class="comment"> * Revision 1.5 2003/01/24 20:20:22 tng</font>
|
---|
111 | 00068 <font class="comment"> * Add method flush to XMLFormatTarget</font>
|
---|
112 | 00069 <font class="comment"> *</font>
|
---|
113 | 00070 <font class="comment"> * Revision 1.4 2002/11/04 15:00:21 tng</font>
|
---|
114 | 00071 <font class="comment"> * C++ Namespace Support.</font>
|
---|
115 | 00072 <font class="comment"> *</font>
|
---|
116 | 00073 <font class="comment"> * Revision 1.3 2002/07/30 16:29:16 tng</font>
|
---|
117 | 00074 <font class="comment"> * [Bug 8550] No explanation of XMLFormatter escape options.</font>
|
---|
118 | 00075 <font class="comment"> *</font>
|
---|
119 | 00076 <font class="comment"> * Revision 1.2 2002/06/21 19:31:23 peiyongz</font>
|
---|
120 | 00077 <font class="comment"> * getTranscoder() added;</font>
|
---|
121 | 00078 <font class="comment"> *</font>
|
---|
122 | 00079 <font class="comment"> * Revision 1.1.1.1 2002/02/01 22:21:52 peiyongz</font>
|
---|
123 | 00080 <font class="comment"> * sane_include</font>
|
---|
124 | 00081 <font class="comment"> *</font>
|
---|
125 | 00082 <font class="comment"> * Revision 1.7 2000/10/17 19:25:38 andyh</font>
|
---|
126 | 00083 <font class="comment"> * XMLFormatTarget, removed version of writeChars with no length. Can not be</font>
|
---|
127 | 00084 <font class="comment"> * safely used, and obscured other errors.</font>
|
---|
128 | 00085 <font class="comment"> *</font>
|
---|
129 | 00086 <font class="comment"> * Revision 1.6 2000/10/10 23:54:58 andyh</font>
|
---|
130 | 00087 <font class="comment"> * XMLFormatter patch, contributed by Bill Schindler. Fix problems with</font>
|
---|
131 | 00088 <font class="comment"> * output to multi-byte encodings.</font>
|
---|
132 | 00089 <font class="comment"> *</font>
|
---|
133 | 00090 <font class="comment"> * Revision 1.5 2000/04/07 01:01:56 roddey</font>
|
---|
134 | 00091 <font class="comment"> * Fixed an error message so that it indicated the correct radix for the rep</font>
|
---|
135 | 00092 <font class="comment"> * token. Get all of the basic output formatting functionality in place for</font>
|
---|
136 | 00093 <font class="comment"> * at least ICU and Win32 transcoders.</font>
|
---|
137 | 00094 <font class="comment"> *</font>
|
---|
138 | 00095 <font class="comment"> * Revision 1.4 2000/04/06 23:50:38 roddey</font>
|
---|
139 | 00096 <font class="comment"> * Now the low level formatter handles doing char refs for</font>
|
---|
140 | 00097 <font class="comment"> * unrepresentable chars (in addition to the replacement char style</font>
|
---|
141 | 00098 <font class="comment"> * already done.)</font>
|
---|
142 | 00099 <font class="comment"> *</font>
|
---|
143 | 00100 <font class="comment"> * Revision 1.3 2000/04/06 19:09:21 roddey</font>
|
---|
144 | 00101 <font class="comment"> * Some more improvements to output formatting. Now it will correctly</font>
|
---|
145 | 00102 <font class="comment"> * handle doing the 'replacement char' style of dealing with chars</font>
|
---|
146 | 00103 <font class="comment"> * that are unrepresentable.</font>
|
---|
147 | 00104 <font class="comment"> *</font>
|
---|
148 | 00105 <font class="comment"> * Revision 1.2 2000/04/05 00:20:16 roddey</font>
|
---|
149 | 00106 <font class="comment"> * More updates for the low level formatted output support</font>
|
---|
150 | 00107 <font class="comment"> *</font>
|
---|
151 | 00108 <font class="comment"> * Revision 1.1 2000/03/28 19:43:17 roddey</font>
|
---|
152 | 00109 <font class="comment"> * Fixes for signed/unsigned warnings. New work for two way transcoding</font>
|
---|
153 | 00110 <font class="comment"> * stuff.</font>
|
---|
154 | 00111 <font class="comment"> *</font>
|
---|
155 | 00112 <font class="comment"> */</font>
|
---|
156 | 00113
|
---|
157 | 00114 <font class="preprocessor">#if !defined(XMLFORMATTER_HPP)</font>
|
---|
158 | <a name="l00115"></a><a class="code" href="XMLFormatter_8hpp.html#a0">00115</a> <font class="preprocessor"></font><font class="preprocessor">#define XMLFORMATTER_HPP</font>
|
---|
159 | 00116 <font class="preprocessor"></font>
|
---|
160 | 00117 <font class="preprocessor">#include <<a class="code" href="PlatformUtils_8hpp.html">xercesc/util/PlatformUtils.hpp</a>></font>
|
---|
161 | 00118
|
---|
162 | 00119 <a class="code" href="XercesDefs_8hpp.html#a2">XERCES_CPP_NAMESPACE_BEGIN</a>
|
---|
163 | 00120
|
---|
164 | <a name="l00121"></a><a class="code" href="XMLFormatter_8hpp.html#a1">00121</a> <font class="keyword">class </font><a class="code" href="classXMLFormatTarget.html">XMLFormatTarget</a>;
|
---|
165 | 00122 <font class="keyword">class </font><a class="code" href="classXMLTranscoder.html">XMLTranscoder</a>;
|
---|
166 | 00123
|
---|
167 | <a name="l00133"></a><a class="code" href="classXMLFormatter.html">00133</a> <font class="keyword">class </font><a class="code" href="XercesDefs_8hpp.html#a9"></a> <a class="code" href="classXMLFormatter.html">XMLFormatter</a> : <font class="keyword">public</font> <a class="code" href="classXMemory.html">XMemory</a>
|
---|
168 | 00134 {
|
---|
169 | 00135 <font class="keyword">public</font>:
|
---|
170 | 00136 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
171 | 00137 <font class="comment">// Class types</font>
|
---|
172 | 00138 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
173 | <a name="l00216"></a><a class="code" href="classXMLFormatter.html#z279_0">00216</a> <font class="comment"></font> <font class="keyword">enum</font> EscapeFlags
|
---|
174 | 00217 {
|
---|
175 | 00218 NoEscapes
|
---|
176 | 00219 , StdEscapes
|
---|
177 | 00220 , AttrEscapes
|
---|
178 | 00221 , CharEscapes
|
---|
179 | 00222
|
---|
180 | 00223 <font class="comment">// Special values, don't use directly</font>
|
---|
181 | 00224 , EscapeFlags_Count
|
---|
182 | 00225 , DefaultEscape = 999
|
---|
183 | 00226 };
|
---|
184 | 00227
|
---|
185 | <a name="l00244"></a><a class="code" href="classXMLFormatter.html#z279_1">00244</a> <font class="keyword">enum</font> UnRepFlags
|
---|
186 | 00245 {
|
---|
187 | 00246 UnRep_Fail
|
---|
188 | 00247 , UnRep_CharRef
|
---|
189 | 00248 , UnRep_Replace
|
---|
190 | 00249
|
---|
191 | 00250 , DefaultUnRep = 999
|
---|
192 | 00251 };
|
---|
193 | 00253
|
---|
194 | 00254
|
---|
195 | 00255 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
196 | 00256 <font class="comment">// Constructors and Destructor</font>
|
---|
197 | 00257 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
198 | 00269 <font class="comment"></font> <a class="code" href="classXMLFormatter.html">XMLFormatter</a>
|
---|
199 | 00270 (
|
---|
200 | 00271 <font class="keyword">const</font> XMLCh* <font class="keyword">const</font> outEncoding
|
---|
201 | 00272 , <font class="keyword">const</font> XMLCh* <font class="keyword">const</font> docVersion
|
---|
202 | 00273 , <a class="code" href="classXMLFormatTarget.html">XMLFormatTarget</a>* <font class="keyword">const</font> target
|
---|
203 | 00274 , <font class="keyword">const</font> EscapeFlags escapeFlags = NoEscapes
|
---|
204 | 00275 , <font class="keyword">const</font> UnRepFlags unrepFlags = UnRep_Fail
|
---|
205 | 00276 , <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>
|
---|
206 | 00277 );
|
---|
207 | 00278
|
---|
208 | 00279 <a class="code" href="classXMLFormatter.html">XMLFormatter</a>
|
---|
209 | 00280 (
|
---|
210 | 00281 <font class="keyword">const</font> <font class="keywordtype">char</font>* <font class="keyword">const</font> outEncoding
|
---|
211 | 00282 , <font class="keyword">const</font> <font class="keywordtype">char</font>* <font class="keyword">const</font> docVersion
|
---|
212 | 00283 , <a class="code" href="classXMLFormatTarget.html">XMLFormatTarget</a>* <font class="keyword">const</font> target
|
---|
213 | 00284 , <font class="keyword">const</font> EscapeFlags escapeFlags = NoEscapes
|
---|
214 | 00285 , <font class="keyword">const</font> UnRepFlags unrepFlags = UnRep_Fail
|
---|
215 | 00286 , <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>
|
---|
216 | 00287 );
|
---|
217 | 00288
|
---|
218 | 00289 <a class="code" href="classXMLFormatter.html">XMLFormatter</a>
|
---|
219 | 00290 (
|
---|
220 | 00291 <font class="keyword">const</font> XMLCh* <font class="keyword">const</font> outEncoding
|
---|
221 | 00292 , <a class="code" href="classXMLFormatTarget.html">XMLFormatTarget</a>* <font class="keyword">const</font> target
|
---|
222 | 00293 , <font class="keyword">const</font> EscapeFlags escapeFlags = NoEscapes
|
---|
223 | 00294 , <font class="keyword">const</font> UnRepFlags unrepFlags = UnRep_Fail
|
---|
224 | 00295 , <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>
|
---|
225 | 00296 );
|
---|
226 | 00297
|
---|
227 | 00298 <a class="code" href="classXMLFormatter.html">XMLFormatter</a>
|
---|
228 | 00299 (
|
---|
229 | 00300 <font class="keyword">const</font> <font class="keywordtype">char</font>* <font class="keyword">const</font> outEncoding
|
---|
230 | 00301 , <a class="code" href="classXMLFormatTarget.html">XMLFormatTarget</a>* <font class="keyword">const</font> target
|
---|
231 | 00302 , <font class="keyword">const</font> EscapeFlags escapeFlags = NoEscapes
|
---|
232 | 00303 , <font class="keyword">const</font> UnRepFlags unrepFlags = UnRep_Fail
|
---|
233 | 00304 , <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>
|
---|
234 | 00305 );
|
---|
235 | 00306
|
---|
236 | 00307 ~<a class="code" href="classXMLFormatter.html">XMLFormatter</a>();
|
---|
237 | 00309
|
---|
238 | 00310
|
---|
239 | 00311 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
240 | 00312 <font class="comment">// Formatting methods</font>
|
---|
241 | 00313 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
242 | 00323 <font class="comment"></font> <font class="keywordtype">void</font> formatBuf
|
---|
243 | 00324 (
|
---|
244 | 00325 <font class="keyword">const</font> XMLCh* <font class="keyword">const</font> toFormat
|
---|
245 | 00326 , <font class="keyword">const</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> count
|
---|
246 | 00327 , <font class="keyword">const</font> EscapeFlags escapeFlags = DefaultEscape
|
---|
247 | 00328 , <font class="keyword">const</font> UnRepFlags unrepFlags = DefaultUnRep
|
---|
248 | 00329 );
|
---|
249 | 00330
|
---|
250 | 00334 <a class="code" href="classXMLFormatter.html">XMLFormatter</a>& <font class="keyword">operator</font><<
|
---|
251 | 00335 (
|
---|
252 | 00336 <font class="keyword">const</font> XMLCh* <font class="keyword">const</font> toFormat
|
---|
253 | 00337 );
|
---|
254 | 00338
|
---|
255 | 00339 <a class="code" href="classXMLFormatter.html">XMLFormatter</a>& <font class="keyword">operator</font><<
|
---|
256 | 00340 (
|
---|
257 | 00341 <font class="keyword">const</font> XMLCh toFormat
|
---|
258 | 00342 );
|
---|
259 | 00343
|
---|
260 | 00344 <font class="keywordtype">void</font> writeBOM(<font class="keyword">const</font> <a class="code" href="XercesDefs_8hpp.html#a16">XMLByte</a>* <font class="keyword">const</font> toFormat
|
---|
261 | 00345 , <font class="keyword">const</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> count);
|
---|
262 | 00346
|
---|
263 | 00348
|
---|
264 | 00349 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
265 | 00350 <font class="comment">// Getter methods</font>
|
---|
266 | 00351 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
267 | 00358 <font class="comment"></font> <font class="keyword">const</font> XMLCh* getEncodingName() <font class="keyword">const</font>;
|
---|
268 | 00359
|
---|
269 | 00363 <font class="keyword">inline</font> <font class="keyword">const</font> <a class="code" href="classXMLTranscoder.html">XMLTranscoder</a>* getTranscoder() <font class="keyword">const</font>;
|
---|
270 | 00364
|
---|
271 | 00366
|
---|
272 | 00367 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
273 | 00368 <font class="comment">// Setter methods</font>
|
---|
274 | 00369 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
275 | 00375 <font class="comment"></font> <font class="keywordtype">void</font> setEscapeFlags
|
---|
276 | 00376 (
|
---|
277 | 00377 <font class="keyword">const</font> EscapeFlags newFlags
|
---|
278 | 00378 );
|
---|
279 | 00379
|
---|
280 | 00383 <font class="keywordtype">void</font> setUnRepFlags
|
---|
281 | 00384 (
|
---|
282 | 00385 <font class="keyword">const</font> UnRepFlags newFlags
|
---|
283 | 00386 );
|
---|
284 | 00387
|
---|
285 | 00392 <a class="code" href="classXMLFormatter.html">XMLFormatter</a>& <font class="keyword">operator</font><<
|
---|
286 | 00393 (
|
---|
287 | 00394 <font class="keyword">const</font> EscapeFlags newFlags
|
---|
288 | 00395 );
|
---|
289 | 00396
|
---|
290 | 00401 <a class="code" href="classXMLFormatter.html">XMLFormatter</a>& <font class="keyword">operator</font><<
|
---|
291 | 00402 (
|
---|
292 | 00403 <font class="keyword">const</font> UnRepFlags newFlags
|
---|
293 | 00404 );
|
---|
294 | 00406
|
---|
295 | 00407
|
---|
296 | 00408 <font class="keyword">private</font> :
|
---|
297 | 00409 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
298 | 00410 <font class="comment">// Unimplemented constructors and operators</font>
|
---|
299 | 00411 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
300 | 00412 <a class="code" href="classXMLFormatter.html">XMLFormatter</a>();
|
---|
301 | 00413 <a class="code" href="classXMLFormatter.html">XMLFormatter</a>(<font class="keyword">const</font> <a class="code" href="classXMLFormatter.html">XMLFormatter</a>&);
|
---|
302 | 00414 <a class="code" href="classXMLFormatter.html">XMLFormatter</a>& operator=(<font class="keyword">const</font> <a class="code" href="classXMLFormatter.html">XMLFormatter</a>&);
|
---|
303 | 00415
|
---|
304 | 00416
|
---|
305 | 00417 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
306 | 00418 <font class="comment">// Private class constants</font>
|
---|
307 | 00419 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
308 | 00420 <font class="keyword">enum</font> Constants
|
---|
309 | 00421 {
|
---|
310 | 00422 kTmpBufSize = 16 * 1024
|
---|
311 | 00423 };
|
---|
312 | 00424
|
---|
313 | 00425
|
---|
314 | 00426 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
315 | 00427 <font class="comment">// Private helper methods</font>
|
---|
316 | 00428 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
317 | 00429 <font class="keyword">const</font> <a class="code" href="XercesDefs_8hpp.html#a16">XMLByte</a>* getCharRef(<font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> & count,
|
---|
318 | 00430 <a class="code" href="XercesDefs_8hpp.html#a16">XMLByte</a>* &ref,
|
---|
319 | 00431 <font class="keyword">const</font> XMLCh * stdRef);
|
---|
320 | 00432
|
---|
321 | 00433 <font class="keywordtype">void</font> writeCharRef(<font class="keyword">const</font> XMLCh &toWrite);
|
---|
322 | 00434 <font class="keywordtype">void</font> writeCharRef(<font class="keywordtype">unsigned</font> <font class="keywordtype">long</font> toWrite);
|
---|
323 | 00435
|
---|
324 | 00436 <font class="keywordtype">bool</font> inEscapeList(<font class="keyword">const</font> <a class="code" href="classXMLFormatter.html#z279_0">XMLFormatter::EscapeFlags</a> escStyle
|
---|
325 | 00437 , <font class="keyword">const</font> XMLCh toCheck);
|
---|
326 | 00438
|
---|
327 | 00439
|
---|
328 | 00440 <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> handleUnEscapedChars(<font class="keyword">const</font> XMLCh * srcPtr,
|
---|
329 | 00441 <font class="keyword">const</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> count,
|
---|
330 | 00442 <font class="keyword">const</font> UnRepFlags unrepFlags);
|
---|
331 | 00443
|
---|
332 | 00444 <font class="keywordtype">void</font> specialFormat
|
---|
333 | 00445 (
|
---|
334 | 00446 <font class="keyword">const</font> XMLCh* <font class="keyword">const</font> toFormat
|
---|
335 | 00447 , <font class="keyword">const</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> count
|
---|
336 | 00448 , <font class="keyword">const</font> EscapeFlags escapeFlags
|
---|
337 | 00449 );
|
---|
338 | 00450
|
---|
339 | 00451
|
---|
340 | 00452 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
341 | 00453 <font class="comment">// Private, non-virtual methods</font>
|
---|
342 | 00454 <font class="comment">//</font>
|
---|
343 | 00455 <font class="comment">// fEscapeFlags</font>
|
---|
344 | 00456 <font class="comment">// The escape flags we were told to use in formatting. These are</font>
|
---|
345 | 00457 <font class="comment">// defaults set in the ctor, which can be overridden on a particular</font>
|
---|
346 | 00458 <font class="comment">// call.</font>
|
---|
347 | 00459 <font class="comment">//</font>
|
---|
348 | 00460 <font class="comment">// fOutEncoding</font>
|
---|
349 | 00461 <font class="comment">// This the name of the output encoding. Saved mainly for meaningful</font>
|
---|
350 | 00462 <font class="comment">// error messages.</font>
|
---|
351 | 00463 <font class="comment">//</font>
|
---|
352 | 00464 <font class="comment">// fTarget</font>
|
---|
353 | 00465 <font class="comment">// This is the target object for the formatting operation.</font>
|
---|
354 | 00466 <font class="comment">//</font>
|
---|
355 | 00467 <font class="comment">// fUnRepFlags</font>
|
---|
356 | 00468 <font class="comment">// The unrepresentable flags that indicate how to react when a</font>
|
---|
357 | 00469 <font class="comment">// character cannot be represented in the target encoding.</font>
|
---|
358 | 00470 <font class="comment">//</font>
|
---|
359 | 00471 <font class="comment">// fXCoder</font>
|
---|
360 | 00472 <font class="comment">// This the transcoder that we will use. It is created using the</font>
|
---|
361 | 00473 <font class="comment">// encoding name we were told to use.</font>
|
---|
362 | 00474 <font class="comment">//</font>
|
---|
363 | 00475 <font class="comment">// fTmpBuf</font>
|
---|
364 | 00476 <font class="comment">// An output buffer that we use to transcode chars into before we</font>
|
---|
365 | 00477 <font class="comment">// send them off to be output.</font>
|
---|
366 | 00478 <font class="comment">//</font>
|
---|
367 | 00479 <font class="comment">// fAposRef</font>
|
---|
368 | 00480 <font class="comment">// fAmpRef</font>
|
---|
369 | 00481 <font class="comment">// fGTRef</font>
|
---|
370 | 00482 <font class="comment">// fLTRef</font>
|
---|
371 | 00483 <font class="comment">// fQuoteRef</font>
|
---|
372 | 00484 <font class="comment">// These are character refs for the standard char refs, in the</font>
|
---|
373 | 00485 <font class="comment">// output encoding. They are faulted in as required, by transcoding</font>
|
---|
374 | 00486 <font class="comment">// them from fixed Unicode versions.</font>
|
---|
375 | 00487 <font class="comment">//</font>
|
---|
376 | 00488 <font class="comment">// fIsXML11</font>
|
---|
377 | 00489 <font class="comment">// for performance reason, we do not store the actual version string</font>
|
---|
378 | 00490 <font class="comment">// and do the string comparison again and again.</font>
|
---|
379 | 00491 <font class="comment">//</font>
|
---|
380 | 00492 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
381 | 00493 EscapeFlags fEscapeFlags;
|
---|
382 | 00494 XMLCh* fOutEncoding;
|
---|
383 | 00495 <a class="code" href="classXMLFormatTarget.html">XMLFormatTarget</a>* fTarget;
|
---|
384 | 00496 UnRepFlags fUnRepFlags;
|
---|
385 | 00497 <a class="code" href="classXMLTranscoder.html">XMLTranscoder</a>* fXCoder;
|
---|
386 | 00498 <a class="code" href="XercesDefs_8hpp.html#a16">XMLByte</a> fTmpBuf[kTmpBufSize + 4];
|
---|
387 | 00499 <a class="code" href="XercesDefs_8hpp.html#a16">XMLByte</a>* fAposRef;
|
---|
388 | 00500 <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> fAposLen;
|
---|
389 | 00501 <a class="code" href="XercesDefs_8hpp.html#a16">XMLByte</a>* fAmpRef;
|
---|
390 | 00502 <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> fAmpLen;
|
---|
391 | 00503 <a class="code" href="XercesDefs_8hpp.html#a16">XMLByte</a>* fGTRef;
|
---|
392 | 00504 <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> fGTLen;
|
---|
393 | 00505 <a class="code" href="XercesDefs_8hpp.html#a16">XMLByte</a>* fLTRef;
|
---|
394 | 00506 <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> fLTLen;
|
---|
395 | 00507 <a class="code" href="XercesDefs_8hpp.html#a16">XMLByte</a>* fQuoteRef;
|
---|
396 | 00508 <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> fQuoteLen;
|
---|
397 | 00509 <font class="keywordtype">bool</font> fIsXML11;
|
---|
398 | 00510 <a class="code" href="classMemoryManager.html">MemoryManager</a>* fMemoryManager;
|
---|
399 | 00511 };
|
---|
400 | 00512
|
---|
401 | 00513
|
---|
402 | <a name="l00514"></a><a class="code" href="classXMLFormatTarget.html">00514</a> <font class="keyword">class </font><a class="code" href="XercesDefs_8hpp.html#a9"></a> XMLFormatTarget : <font class="keyword">public</font> <a class="code" href="classXMemory.html">XMemory</a>
|
---|
403 | 00515 {
|
---|
404 | 00516 <font class="keyword">public</font>:
|
---|
405 | 00517 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
406 | 00518 <font class="comment">// Constructors and Destructor</font>
|
---|
407 | 00519 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
408 | <a name="l00520"></a><a class="code" href="classXMLFormatTarget.html#a0">00520</a> <font class="keyword">virtual</font> ~XMLFormatTarget() {}
|
---|
409 | 00521
|
---|
410 | 00522
|
---|
411 | 00523 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
412 | 00524 <font class="comment">// Virtual interface</font>
|
---|
413 | 00525 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
414 | 00526 <font class="keyword">virtual</font> <font class="keywordtype">void</font> writeChars
|
---|
415 | 00527 (
|
---|
416 | 00528 <font class="keyword">const</font> <a class="code" href="XercesDefs_8hpp.html#a16">XMLByte</a>* <font class="keyword">const</font> toWrite
|
---|
417 | 00529 , <font class="keyword">const</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> count
|
---|
418 | 00530 , <a class="code" href="classXMLFormatter.html">XMLFormatter</a>* <font class="keyword">const</font> formatter
|
---|
419 | 00531 ) = 0;
|
---|
420 | 00532
|
---|
421 | <a name="l00533"></a><a class="code" href="classXMLFormatTarget.html#a2">00533</a> <font class="keyword">virtual</font> <font class="keywordtype">void</font> flush() {};
|
---|
422 | 00534
|
---|
423 | 00535
|
---|
424 | 00536 <font class="keyword">protected</font> :
|
---|
425 | 00537 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
426 | 00538 <font class="comment">// Hidden constructors and operators</font>
|
---|
427 | 00539 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
428 | <a name="l00540"></a><a class="code" href="classXMLFormatTarget.html#b0">00540</a> <a class="code" href="XMLFormatter_8hpp.html#a1">XMLFormatTarget</a>() {};
|
---|
429 | 00541
|
---|
430 | 00542 <font class="keyword">private</font>:
|
---|
431 | 00543 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
432 | 00544 <font class="comment">// Unimplemented constructors and operators</font>
|
---|
433 | 00545 <font class="comment">// -----------------------------------------------------------------------</font>
|
---|
434 | 00546 <a class="code" href="XMLFormatter_8hpp.html#a1">XMLFormatTarget</a>(<font class="keyword">const</font> XMLFormatTarget&);
|
---|
435 | 00547 XMLFormatTarget& operator=(<font class="keyword">const</font> XMLFormatTarget&);
|
---|
436 | 00548 };
|
---|
437 | 00549
|
---|
438 | 00550
|
---|
439 | 00551 <font class="comment">// ---------------------------------------------------------------------------</font>
|
---|
440 | 00552 <font class="comment">// XMLFormatter: Getter methods</font>
|
---|
441 | 00553 <font class="comment">// ---------------------------------------------------------------------------</font>
|
---|
442 | <a name="l00554"></a><a class="code" href="classXMLFormatter.html#z282_0">00554</a> <font class="keyword">inline</font> <font class="keyword">const</font> XMLCh* <a class="code" href="classXMLFormatter.html#z282_0">XMLFormatter::getEncodingName</a>()<font class="keyword"> const</font>
|
---|
443 | 00555 <font class="keyword"></font>{
|
---|
444 | 00556 <font class="keywordflow">return</font> fOutEncoding;
|
---|
445 | 00557 }
|
---|
446 | 00558
|
---|
447 | <a name="l00559"></a><a class="code" href="classXMLFormatter.html#z282_1">00559</a> <font class="keyword">inline</font> <font class="keyword">const</font> <a class="code" href="classXMLTranscoder.html">XMLTranscoder</a>* <a class="code" href="classXMLFormatter.html#z282_1">XMLFormatter::getTranscoder</a>()<font class="keyword"> const</font>
|
---|
448 | 00560 <font class="keyword"></font>{
|
---|
449 | 00561 <font class="keywordflow">return</font> fXCoder;
|
---|
450 | 00562 }
|
---|
451 | 00563
|
---|
452 | 00564 <font class="comment">// ---------------------------------------------------------------------------</font>
|
---|
453 | 00565 <font class="comment">// XMLFormatter: Setter methods</font>
|
---|
454 | 00566 <font class="comment">// ---------------------------------------------------------------------------</font>
|
---|
455 | <a name="l00567"></a><a class="code" href="classXMLFormatter.html#z283_0">00567</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> <a class="code" href="classXMLFormatter.html#z283_0">XMLFormatter::setEscapeFlags</a>(<font class="keyword">const</font> EscapeFlags newFlags)
|
---|
456 | 00568 {
|
---|
457 | 00569 fEscapeFlags = newFlags;
|
---|
458 | 00570 }
|
---|
459 | 00571
|
---|
460 | <a name="l00572"></a><a class="code" href="classXMLFormatter.html#z283_1">00572</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> <a class="code" href="classXMLFormatter.html#z283_1">XMLFormatter::setUnRepFlags</a>(<font class="keyword">const</font> UnRepFlags newFlags)
|
---|
461 | 00573 {
|
---|
462 | 00574 fUnRepFlags = newFlags;
|
---|
463 | 00575 }
|
---|
464 | 00576
|
---|
465 | 00577
|
---|
466 | <a name="l00578"></a><a class="code" href="classXMLFormatter.html#z283_2">00578</a> <font class="keyword">inline</font> <a class="code" href="classXMLFormatter.html">XMLFormatter</a>& <a class="code" href="classXMLFormatter.html#z281_1">XMLFormatter::operator<<</a>(<font class="keyword">const</font> EscapeFlags newFlags)
|
---|
467 | 00579 {
|
---|
468 | 00580 fEscapeFlags = newFlags;
|
---|
469 | 00581 <font class="keywordflow">return</font> *<font class="keyword">this</font>;
|
---|
470 | 00582 }
|
---|
471 | 00583
|
---|
472 | <a name="l00584"></a><a class="code" href="classXMLFormatter.html#z283_3">00584</a> <font class="keyword">inline</font> <a class="code" href="classXMLFormatter.html">XMLFormatter</a>& <a class="code" href="classXMLFormatter.html#z281_1">XMLFormatter::operator<<</a>(<font class="keyword">const</font> UnRepFlags newFlags)
|
---|
473 | 00585 {
|
---|
474 | 00586 fUnRepFlags = newFlags;
|
---|
475 | 00587 <font class="keywordflow">return</font> *<font class="keyword">this</font>;
|
---|
476 | 00588 }
|
---|
477 | 00589
|
---|
478 | 00590 <a class="code" href="XercesDefs_8hpp.html#a3">XERCES_CPP_NAMESPACE_END</a>
|
---|
479 | 00591
|
---|
480 | 00592 <font class="preprocessor">#endif</font>
|
---|
481 | </pre></div> </FONT></TD></TR></TABLE><BR>
|
---|
482 | </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>
|
---|
483 | Copyright © 1994-2004 The Apache Software Foundation.
|
---|
484 | All Rights Reserved.
|
---|
485 | </I></FONT></TD></TR></TABLE></BODY></HTML>
|
---|