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

Revision 358, 38.7 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>AutoSense.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>AutoSense.hpp</h1><a href="AutoSense_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-2002,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: AutoSense.hpp,v $</font>
6200019 <font class="comment"> * Revision 1.15  2004/09/08 13:56:21  peiyongz</font>
6300020 <font class="comment"> * Apache License Version 2.0</font>
6400021 <font class="comment"> *</font>
6500022 <font class="comment"> * Revision 1.14  2004/02/17 15:56:50  neilg</font>
6600023 <font class="comment"> * fix for bug 25035; much thanks to Abe Backus</font>
6700024 <font class="comment"> *</font>
6800025 <font class="comment"> * Revision 1.13  2004/02/04 13:26:44  amassari</font>
6900026 <font class="comment"> * Added support for the Interix platform (Windows Services for Unix 3.5)</font>
7000027 <font class="comment"> *</font>
7100028 <font class="comment"> * Revision 1.12  2003/05/21 21:08:04  knoaman</font>
7200029 <font class="comment"> * gcc 2.95.x is generating an internal error for some template definitions, so</font>
7300030 <font class="comment"> * we use the default memory manger in such cases.</font>
7400031 <font class="comment"> *</font>
7500032 <font class="comment"> * Revision 1.11  2003/05/12 09:44:19  gareth</font>
7600033 <font class="comment"> * Port to NetBSD. Patch by Hiramatsu Yoshifumi.</font>
7700034 <font class="comment"> *</font>
7800035 <font class="comment"> * Revision 1.10  2003/03/27 16:16:43  tng</font>
7900036 <font class="comment"> * use __IBMCPP__ instead of __xlC__ to determine xlC compiler</font>
8000037 <font class="comment"> *</font>
8100038 <font class="comment"> * Revision 1.9  2003/03/13 22:11:46  tng</font>
8200039 <font class="comment"> * [Bug 17858] Support for QNX/Neutrino.  Patch from Chris McKillop.</font>
8300040 <font class="comment"> *</font>
8400041 <font class="comment"> * Revision 1.8  2002/12/02 20:40:49  tng</font>
8500042 <font class="comment"> * [Bug 12490] Patches required to build Xerces-C++ on BeOS R5.  Patch from Andrew Bachmann.</font>
8600043 <font class="comment"> *</font>
8700044 <font class="comment"> * Revision 1.7  2002/10/29 18:58:33  tng</font>
8800045 <font class="comment"> * Support for Linux/390</font>
8900046 <font class="comment"> *</font>
9000047 <font class="comment"> * Revision 1.6  2002/08/23 20:56:00  tng</font>
9100048 <font class="comment"> * [Bug 11981] inproper "AND" operator in AutoSense.hpp.</font>
9200049 <font class="comment"> *</font>
9300050 <font class="comment"> * Revision 1.5  2002/08/19 18:35:56  tng</font>
9400051 <font class="comment"> * [Bug 6467] Installing Xerces C++ on cygwin environment.</font>
9500052 <font class="comment"> *</font>
9600053 <font class="comment"> * Revision 1.4  2002/07/12 16:48:49  jberry</font>
9700054 <font class="comment"> * Remove reliance on XML_MACOSX. XML_MACOS is used solely. Where qualification</font>
9800055 <font class="comment"> * by compiler is required, look for the compiler explicitly such as with</font>
9900056 <font class="comment"> * XML_METROWERKS or __APPLE__ (for the Apple GCC compiler).</font>
10000057 <font class="comment"> *</font>
10100058 <font class="comment"> * Add a few tweaks for compatibility with GCC3.1.</font>
10200059 <font class="comment"> *</font>
10300060 <font class="comment"> * This change may address Bug 10649.</font>
10400061 <font class="comment"> *</font>
10500062 <font class="comment"> * Revision 1.3  2002/03/04 20:31:14  tng</font>
10600063 <font class="comment"> * [Bug 2868] AIX 4.3.3 mutex/atomic-operation changes for build.</font>
10700064 <font class="comment"> *</font>
10800065 <font class="comment"> * Revision 1.2  2002/02/27 22:38:34  peiyongz</font>
10900066 <font class="comment"> * Bug# 6445 Caldera (SCO) OpenServer Port : patch from Martin Kalen</font>
11000067 <font class="comment"> *</font>
11100068 <font class="comment"> * Revision 1.1.1.1  2002/02/01 22:22:09  peiyongz</font>
11200069 <font class="comment"> * sane_include</font>
11300070 <font class="comment"> *</font>
11400071 <font class="comment"> * Revision 1.21  2001/11/29 18:25:18  tng</font>
11500072 <font class="comment"> * FreeBSD support by Michael Huedepohl.</font>
11600073 <font class="comment"> *</font>
11700074 <font class="comment"> * Revision 1.20  2001/05/11 13:26:26  tng</font>
11800075 <font class="comment"> * Copyright update.</font>
11900076 <font class="comment"> *</font>
12000077 <font class="comment"> * Revision 1.19  2001/03/23 19:01:25  tng</font>
12100078 <font class="comment"> * [Bug 1018]  AutoSense looks for "IRIX" when it should look for "sgi" or "__sgi".  By Jeff Harrell.</font>
12200079 <font class="comment"> *</font>
12300080 <font class="comment"> * Revision 1.18  2001/02/09 14:40:01  tng</font>
12400081 <font class="comment"> * Update support for SCO UnixWare 7 (gcc).  Tested under UnixWare 7.1.1 with gcc version 2.95.2 19991024 (release) with gmake 3.79.1.  Updated by Martin Kalen.</font>
12500082 <font class="comment"> *</font>
12600083 <font class="comment"> * Revision 1.17  2001/01/26 21:59:25  tng</font>
12700084 <font class="comment"> * Change bug-todo list to xml format.  Other documentation fixes.</font>
12800085 <font class="comment"> *</font>
12900086 <font class="comment"> * Revision 1.16  2000/10/09 18:15:43  jberry</font>
13000087 <font class="comment"> * Modify sensing of Mac OS X.</font>
13100088 <font class="comment"> * PR:</font>
13200089 <font class="comment"> * Obtained from:</font>
13300090 <font class="comment"> * Submitted by:</font>
13400091 <font class="comment"> * Reviewed by:</font>
13500092 <font class="comment"> * PR:</font>
13600093 <font class="comment"> * Obtained from:</font>
13700094 <font class="comment"> * Submitted by:</font>
13800095 <font class="comment"> * Reviewed by:</font>
13900096 <font class="comment"> *</font>
14000097 <font class="comment"> * Revision 1.15  2000/09/21 00:54:18  aruna1</font>
14100098 <font class="comment"> * OS2 related changes given by Bill Schindler</font>
14200099 <font class="comment"> *</font>
14300100 <font class="comment"> * Revision 1.14  2000/08/01 18:26:02  aruna1</font>
14400101 <font class="comment"> * Tru64 support added</font>
14500102 <font class="comment"> *</font>
14600103 <font class="comment"> * Revision 1.13  2000/07/18 18:25:58  andyh</font>
14700104 <font class="comment"> * Mac OS update.</font>
14800105 <font class="comment"> * Contributed by James Berry &lt;jberry@criticalpath.com&gt;</font>
14900106 <font class="comment"> *</font>
15000107 <font class="comment"> * Revision 1.12  2000/04/04 20:11:29  abagchi</font>
15100108 <font class="comment"> * Added PTX support</font>
15200109 <font class="comment"> *</font>
15300110 <font class="comment"> * Revision 1.11  2000/03/02 19:54:37  roddey</font>
15400111 <font class="comment"> * This checkin includes many changes done while waiting for the</font>
15500112 <font class="comment"> * 1.1.0 code to be finished. I can't list them all here, but a list is</font>
15600113 <font class="comment"> * available elsewhere.</font>
15700114 <font class="comment"> *</font>
15800115 <font class="comment"> * Revision 1.10  2000/03/02 01:51:00  aruna1</font>
15900116 <font class="comment"> * Sun CC 5.0 related changes</font>
16000117 <font class="comment"> *</font>
16100118 <font class="comment"> * Revision 1.9  2000/02/24 20:05:23  abagchi</font>
16200119 <font class="comment"> * Swat for removing Log from API docs</font>
16300120 <font class="comment"> *</font>
16400121 <font class="comment"> * Revision 1.8  2000/02/22 01:00:10  aruna1</font>
16500122 <font class="comment"> * GNUGDefs references removed. Now only GCCDefs is used instead</font>
16600123 <font class="comment"> *</font>
16700124 <font class="comment"> * Revision 1.7  2000/02/06 07:48:00  rahulj</font>
16800125 <font class="comment"> * Year 2K copyright swat.</font>
16900126 <font class="comment"> *</font>
17000127 <font class="comment"> * Revision 1.6  2000/02/01 23:43:22  abagchi</font>
17100128 <font class="comment"> * AS/400 related change</font>
17200129 <font class="comment"> *</font>
17300130 <font class="comment"> * Revision 1.5  2000/01/21 22:12:29  abagchi</font>
17400131 <font class="comment"> * OS390 Change: changed OE390 to OS390</font>
17500132 <font class="comment"> *</font>
17600133 <font class="comment"> * Revision 1.4  1999/12/18 00:47:01  rahulj</font>
17700134 <font class="comment"> * Merged in some changes for OS390.</font>
17800135 <font class="comment"> *</font>
17900136 <font class="comment"> * Revision 1.3  1999/12/17 01:28:53  rahulj</font>
18000137 <font class="comment"> * Merged in changes submitted for UnixWare 7 port. Platform</font>
18100138 <font class="comment"> * specific files are still missing.</font>
18200139 <font class="comment"> *</font>
18300140 <font class="comment"> * Revision 1.2  1999/12/01 17:16:16  rahulj</font>
18400141 <font class="comment"> * Added support for IRIX 6.5.5 using SGI MIPSpro C++ 7.3 and 7.21 generating 32 bit objects. Changes submitted by Marc Stuessel</font>
18500142 <font class="comment"> *</font>
18600143 <font class="comment"> * Revision 1.1.1.1  1999/11/09 01:03:55  twl</font>
18700144 <font class="comment"> * Initial checkin</font>
18800145 <font class="comment"> *</font>
18900146 <font class="comment"> * Revision 1.2  1999/11/08 20:45:03  rahul</font>
19000147 <font class="comment"> * Swat for adding in Product name and CVS comment log variable.</font>
19100148 <font class="comment"> *</font>
19200149 <font class="comment"> */</font>
19300150
19400151 <font class="preprocessor">#ifndef AUTOSENSE_HPP</font>
19500152 <font class="preprocessor"></font><font class="preprocessor">#define AUTOSENSE_HPP</font>
19600153 <font class="preprocessor"></font>
19700154 <font class="comment">// ---------------------------------------------------------------------------</font>
19800155 <font class="comment">//  This section attempts to auto detect the operating system. It will set</font>
19900156 <font class="comment">//  up XercesC specific defines that are used by the rest of the code.</font>
20000157 <font class="comment">// ---------------------------------------------------------------------------</font>
20100158 <font class="preprocessor">#if defined(_AIX)</font>
20200159 <font class="preprocessor"></font><font class="preprocessor">    #define XML_AIX</font>
20300160 <font class="preprocessor"></font><font class="preprocessor">    #define XML_UNIX</font>
20400161 <font class="preprocessor"></font><font class="preprocessor">    #if defined(_AIXVERSION_430)</font>
20500162 <font class="preprocessor"></font><font class="preprocessor">        #define XML_AIX43  // for use of POSIX compliant pthread functions</font>
20600163 <font class="preprocessor"></font><font class="preprocessor">    #endif</font>
20700164 <font class="preprocessor"></font><font class="preprocessor">#elif defined(_SEQUENT_)</font>
20800165 <font class="preprocessor"></font><font class="preprocessor">    #define XML_PTX</font>
20900166 <font class="preprocessor"></font><font class="preprocessor">    #define XML_UNIX</font>
21000167 <font class="preprocessor"></font><font class="preprocessor">#elif defined(_HP_UX) || defined(__hpux) || defined(_HPUX_SOURCE)</font>
21100168 <font class="preprocessor"></font><font class="preprocessor">    #define XML_HPUX</font>
21200169 <font class="preprocessor"></font><font class="preprocessor">    #define XML_UNIX</font>
21300170 <font class="preprocessor"></font><font class="preprocessor">#elif defined(SOLARIS) || defined(__SVR4)</font>
21400171 <font class="preprocessor"></font><font class="preprocessor">    #define XML_SOLARIS</font>
21500172 <font class="preprocessor"></font><font class="preprocessor">    #define XML_UNIX</font>
21600173 <font class="preprocessor"></font><font class="preprocessor">#elif defined(_SCO_DS)</font>
21700174 <font class="preprocessor"></font><font class="preprocessor">    #define XML_OPENSERVER</font>
21800175 <font class="preprocessor"></font><font class="preprocessor">    #define XML_UNIX</font>
21900176 <font class="preprocessor"></font><font class="preprocessor">#elif defined(__UNIXWARE__) || defined(__USLC__)</font>
22000177 <font class="preprocessor"></font><font class="preprocessor">    #define XML_UNIXWARE</font>
22100178 <font class="preprocessor"></font><font class="preprocessor">    #define XML_UNIX</font>
22200179 <font class="preprocessor"></font><font class="preprocessor">#elif defined(__BEOS__)</font>
22300180 <font class="preprocessor"></font><font class="preprocessor">    #define XML_BEOS</font>
22400181 <font class="preprocessor"></font><font class="preprocessor">    #define XML_UNIX</font>
22500182 <font class="preprocessor"></font><font class="preprocessor">#elif defined(__QNXNTO__)</font>
22600183 <font class="preprocessor"></font><font class="preprocessor">    #define XML_QNX</font>
22700184 <font class="preprocessor"></font><font class="preprocessor">    #define XML_UNIX</font>
22800185 <font class="preprocessor"></font><font class="preprocessor">#elif defined(__linux__)</font>
22900186 <font class="preprocessor"></font><font class="preprocessor">    #define XML_LINUX</font>
23000187 <font class="preprocessor"></font><font class="preprocessor">    #define XML_UNIX</font>
23100188 <font class="preprocessor"></font><font class="preprocessor">    #if defined(__s390__)</font>
23200189 <font class="preprocessor"></font><font class="preprocessor">        #define XML_LINUX_390</font>
23300190 <font class="preprocessor"></font><font class="preprocessor">    #endif</font>
23400191 <font class="preprocessor"></font><font class="preprocessor">#elif defined(__FreeBSD__)</font>
23500192 <font class="preprocessor"></font><font class="preprocessor">    #define XML_FREEBSD</font>
23600193 <font class="preprocessor"></font><font class="preprocessor">    #define XML_UNIX</font>
23700194 <font class="preprocessor"></font><font class="preprocessor">#elif defined(IRIX) || defined(__sgi)</font>
23800195 <font class="preprocessor"></font><font class="preprocessor">    #define XML_IRIX</font>
23900196 <font class="preprocessor"></font><font class="preprocessor">    #define XML_UNIX</font>
24000197 <font class="preprocessor"></font><font class="preprocessor">#elif defined(__MVS__)</font>
24100198 <font class="preprocessor"></font><font class="preprocessor">    #define XML_OS390</font>
24200199 <font class="preprocessor"></font><font class="preprocessor">    #define XML_UNIX</font>
24300200 <font class="preprocessor"></font><font class="preprocessor">#elif defined(EXM_OS390)</font>
24400201 <font class="preprocessor"></font><font class="preprocessor">    #define XML_OS390</font>
24500202 <font class="preprocessor"></font><font class="preprocessor">    #define XML_UNIX</font>
24600203 <font class="preprocessor"></font><font class="preprocessor">#elif defined(__OS400__)</font>
24700204 <font class="preprocessor"></font><font class="preprocessor">    #define XML_AS400</font>
24800205 <font class="preprocessor"></font><font class="preprocessor">    #define XML_UNIX</font>
24900206 <font class="preprocessor"></font><font class="preprocessor">#elif defined(__OS2__)</font>
25000207 <font class="preprocessor"></font><font class="preprocessor">    #define XML_OS2</font>
25100208 <font class="preprocessor"></font><font class="preprocessor">#elif defined(__TANDEM)</font>
25200209 <font class="preprocessor"></font><font class="preprocessor">    #define XML_TANDEM</font>
25300210 <font class="preprocessor"></font><font class="preprocessor">    #define XML_UNIX</font>
25400211 <font class="preprocessor"></font><font class="preprocessor">    #define XML_CSET</font>
25500212 <font class="preprocessor"></font><font class="preprocessor">#elif defined(__CYGWIN__)</font>
25600213 <font class="preprocessor"></font><font class="preprocessor">    #define XML_CYGWIN</font>
25700214 <font class="preprocessor"></font><font class="preprocessor">    #ifndef WIN32</font>
25800215 <font class="preprocessor"></font><font class="preprocessor">      #define WIN32</font>
25900216 <font class="preprocessor"></font><font class="preprocessor">    #endif</font>
26000217 <font class="preprocessor"></font><font class="preprocessor">#elif defined(_WIN32) || defined(WIN32)</font>
26100218 <font class="preprocessor"></font><font class="preprocessor">    #define XML_WIN32</font>
26200219 <font class="preprocessor"></font><font class="preprocessor">    #ifndef WIN32</font>
26300220 <font class="preprocessor"></font><font class="preprocessor">      #define WIN32</font>
26400221 <font class="preprocessor"></font><font class="preprocessor">    #endif</font>
26500222 <font class="preprocessor"></font><font class="preprocessor">#elif defined(__WINDOWS__)</font>
26600223 <font class="preprocessor"></font>
26700224     <font class="comment">// IBM VisualAge special handling</font>
26800225 <font class="preprocessor">    #if defined(__32BIT__)</font>
26900226 <font class="preprocessor"></font><font class="preprocessor">        #define XML_WIN32</font>
27000227 <font class="preprocessor"></font><font class="preprocessor">    #else</font>
27100228 <font class="preprocessor"></font><font class="preprocessor">        #define XML_WIN16</font>
27200229 <font class="preprocessor"></font><font class="preprocessor">    #endif</font>
27300230 <font class="preprocessor"></font><font class="preprocessor">#elif defined(__MSDXML__)</font>
27400231 <font class="preprocessor"></font><font class="preprocessor">    #define XML_DOS</font>
27500232 <font class="preprocessor"></font>
27600233 <font class="preprocessor">#elif defined(macintosh) || (defined(__APPLE__) &amp;&amp; defined(__MACH__))</font>
27700234 <font class="preprocessor"></font><font class="preprocessor">    #define XML_MACOS</font>
27800235 <font class="preprocessor"></font><font class="preprocessor">#elif defined(__alpha) &amp;&amp; defined(__osf__)</font>
27900236 <font class="preprocessor"></font><font class="preprocessor">    #define XML_TRU64</font>
28000237 <font class="preprocessor"></font><font class="preprocessor">#elif defined(__NetBSD__)</font>
28100238 <font class="preprocessor"></font><font class="preprocessor">    #define XML_NETBSD</font>
28200239 <font class="preprocessor"></font><font class="preprocessor">#elif defined(__INTERIX)</font>
28300240 <font class="preprocessor"></font><font class="preprocessor">    #define XML_INTERIX</font>
28400241 <font class="preprocessor"></font><font class="preprocessor">    #define XML_UNIX</font>
28500242 <font class="preprocessor"></font><font class="preprocessor">#else</font>
28600243 <font class="preprocessor"></font><font class="preprocessor">    #error Code requires port to host OS!</font>
28700244 <font class="preprocessor"></font><font class="preprocessor">#endif</font>
28800245 <font class="preprocessor"></font>
28900246
29000247 <font class="comment">// ---------------------------------------------------------------------------</font>
29100248 <font class="comment">//  This section attempts to autodetect the compiler being used. It will set</font>
29200249 <font class="comment">//  up Xerces specific defines that can be used by the rest of the code.</font>
29300250 <font class="comment">// ---------------------------------------------------------------------------</font>
29400251 <font class="preprocessor">#if defined(__BORLANDC__)</font>
29500252 <font class="preprocessor"></font><font class="preprocessor">    #define XML_BORLAND</font>
29600253 <font class="preprocessor"></font><font class="preprocessor">#elif defined(_MSC_VER)</font>
29700254 <font class="preprocessor"></font><font class="preprocessor">    #define XML_VISUALCPP</font>
29800255 <font class="preprocessor"></font><font class="preprocessor">#elif defined(XML_SOLARIS)</font>
29900256 <font class="preprocessor"></font><font class="preprocessor">    #if defined(__SUNPRO_CC) &amp;&amp; (__SUNPRO_CC &gt;=0x500)</font>
30000257 <font class="preprocessor"></font><font class="preprocessor">        #define XML_SUNCC5</font>
30100258 <font class="preprocessor"></font><font class="preprocessor">    #elif defined(__SUNPRO_CC) &amp;&amp; (__SUNPRO_CC &lt;0x500)</font>
30200259 <font class="preprocessor"></font><font class="preprocessor">        #define XML_SUNCC</font>
30300260 <font class="preprocessor"></font><font class="preprocessor">    #elif defined(_EDG_RUNTIME_USES_NAMESPACES)</font>
30400261 <font class="preprocessor"></font><font class="preprocessor">        #define XML_SOLARIS_KAICC</font>
30500262 <font class="preprocessor"></font><font class="preprocessor">    #elif defined(__GNUG__)</font>
30600263 <font class="preprocessor"></font><font class="preprocessor">        #define XML_GCC</font>
30700264 <font class="preprocessor"></font><font class="preprocessor">    #else</font>
30800265 <font class="preprocessor"></font><font class="preprocessor">        #error Code requires port to current development environment</font>
30900266 <font class="preprocessor"></font><font class="preprocessor">    #endif</font>
31000267 <font class="preprocessor"></font><font class="preprocessor">#elif defined (__QNXNTO__)</font>
31100268 <font class="preprocessor"></font><font class="preprocessor">    #define XML_QCC</font>
31200269 <font class="preprocessor"></font><font class="preprocessor">#elif defined (__GNUG__) || defined(__BEOS__) || defined(__linux__) || defined(__CYGWIN__)</font>
31300270 <font class="preprocessor"></font><font class="preprocessor">    #define XML_GCC</font>
31400271 <font class="preprocessor"></font><font class="preprocessor">#elif defined(XML_HPUX)</font>
31500272 <font class="preprocessor"></font><font class="preprocessor">    #if defined(EXM_HPUX)</font>
31600273 <font class="preprocessor"></font><font class="preprocessor">        #define XML_HPUX_KAICC</font>
31700274 <font class="preprocessor"></font><font class="preprocessor">    #elif (__cplusplus == 1)</font>
31800275 <font class="preprocessor"></font><font class="preprocessor">        #define XML_HPUX_CC</font>
31900276 <font class="preprocessor"></font><font class="preprocessor">    #elif (__cplusplus == 199707 || __cplusplus == 199711)</font>
32000277 <font class="preprocessor"></font><font class="preprocessor">        #define XML_HPUX_aCC</font>
32100278 <font class="preprocessor"></font><font class="preprocessor">    #endif</font>
32200279 <font class="preprocessor"></font><font class="preprocessor">#elif defined(XML_IRIX)</font>
32300280 <font class="preprocessor"></font><font class="preprocessor">    #define XML_MIPSPRO_CC</font>
32400281 <font class="preprocessor"></font><font class="preprocessor">#elif defined(XML_PTX)</font>
32500282 <font class="preprocessor"></font><font class="preprocessor">    #define XML_PTX_CC</font>
32600283 <font class="preprocessor"></font><font class="preprocessor">#elif defined(XML_TANDEM)</font>
32700284 <font class="preprocessor"></font><font class="preprocessor">    #define XML_TANDEMCC</font>
32800285 <font class="preprocessor"></font><font class="preprocessor">#elif defined(__MVS__) &amp;&amp; defined(__cplusplus)</font>
32900286 <font class="preprocessor"></font><font class="preprocessor">    #define XML_MVSCPP</font>
33000287 <font class="preprocessor"></font><font class="preprocessor">#elif defined(EXM_OS390) &amp;&amp; defined(__cplusplus)</font>
33100288 <font class="preprocessor"></font><font class="preprocessor">    #define XML_MVSCPP</font>
33200289 <font class="preprocessor"></font><font class="preprocessor">#elif defined(__IBMC__) || defined(__IBMCPP__)</font>
33300290 <font class="preprocessor"></font><font class="preprocessor">    #if defined(XML_WIN32)</font>
33400291 <font class="preprocessor"></font><font class="preprocessor">        #define XML_IBMVAW32</font>
33500292 <font class="preprocessor"></font><font class="preprocessor">    #elif defined(XML_OS2)</font>
33600293 <font class="preprocessor"></font><font class="preprocessor">        #define XML_IBMVAOS2</font>
33700294 <font class="preprocessor"></font><font class="preprocessor">        #if (__IBMC__ &gt;= 400 || __IBMCPP__ &gt;= 400)</font>
33800295 <font class="preprocessor"></font><font class="preprocessor">            #define XML_IBMVA4_OS2</font>
33900296 <font class="preprocessor"></font><font class="preprocessor">        #endif</font>
34000297 <font class="preprocessor"></font><font class="preprocessor">    #elif defined(XML_AIX)</font>
34100298 <font class="preprocessor"></font><font class="preprocessor">        #define XML_CSET              </font>
34200299 <font class="preprocessor"></font><font class="preprocessor">    #endif</font>
34300300 <font class="preprocessor"></font><font class="preprocessor">#elif defined(XML_TRU64) &amp;&amp; defined(__DECCXX)</font>
34400301 <font class="preprocessor"></font><font class="preprocessor">    #define XML_DECCXX</font>
34500302 <font class="preprocessor"></font><font class="preprocessor">#elif defined(__MWERKS__)</font>
34600303 <font class="preprocessor"></font><font class="preprocessor">    #define XML_METROWERKS</font>
34700304 <font class="preprocessor"></font><font class="preprocessor">#elif defined(__OS400__)</font>
34800305 <font class="preprocessor"></font><font class="preprocessor">#else</font>
34900306 <font class="preprocessor"></font><font class="preprocessor">    #error Code requires port to current development environment</font>
35000307 <font class="preprocessor"></font><font class="preprocessor">#endif</font>
35100308 <font class="preprocessor"></font>
35200309 <font class="comment">// ---------------------------------------------------------------------------</font>
35300310 <font class="comment">//  The gcc compiler 2.95... is generating an internal error for some template</font>
35400311 <font class="comment">//  definitions. So, if we are compiling with gcc, have a specific define that</font>
35500312 <font class="comment">//  we can later use in the code.</font>
35600313 <font class="comment">// ---------------------------------------------------------------------------</font>
35700314 <font class="preprocessor">#if defined(__GNUC__)</font>
35800315 <font class="preprocessor"></font><font class="preprocessor">#define XML_GCC_VERSION (__GNUC__ * 10000 \</font>
35900316 <font class="preprocessor">                         + __GNUC_MINOR__ * 100 \</font>
36000317 <font class="preprocessor">                         + __GNUC_PATCHLEVEL__)</font>
36100318 <font class="preprocessor"></font><font class="preprocessor">#endif</font>
36200319 <font class="preprocessor"></font>
36300320
36400321 <font class="preprocessor">#endif</font>
365</pre></div>    </FONT></TD></TR></TABLE><BR>
366</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>
367              Copyright &copy; 1994-2004 The Apache Software Foundation.
368              All Rights Reserved.
369            </I></FONT></TD></TR></TABLE></BODY></HTML>
Note: See TracBrowser for help on using the repository browser.