http://xml.apache.org/http://www.apache.org/http://www.w3.org/

Home

Readme
Download
Installation
Build

API Docs
Samples
Schema

FAQs
Programming
Migration

Releases
Bug-Reporting
Feedback

Y2K Compliance
PDF Document

CVS Repository
Mail Archive

API Docs for SAX and DOM
 

Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

XercesDefs.hpp

Go to the documentation of this file.
00001 /*
00002  * The Apache Software License, Version 1.1
00003  *
00004  * Copyright (c) 1999-2001 The Apache Software Foundation.  All rights
00005  * reserved.
00006  *
00007  * Redistribution and use in source and binary forms, with or without
00008  * modification, are permitted provided that the following conditions
00009  * are met:
00010  *
00011  * 1. Redistributions of source code must retain the above copyright
00012  *    notice, this list of conditions and the following disclaimer.
00013  *
00014  * 2. Redistributions in binary form must reproduce the above copyright
00015  *    notice, this list of conditions and the following disclaimer in
00016  *    the documentation and/or other materials provided with the
00017  *    distribution.
00018  *
00019  * 3. The end-user documentation included with the redistribution,
00020  *    if any, must include the following acknowledgment:
00021  *       "This product includes software developed by the
00022  *        Apache Software Foundation (http://www.apache.org/)."
00023  *    Alternately, this acknowledgment may appear in the software itself,
00024  *    if and wherever such third-party acknowledgments normally appear.
00025  *
00026  * 4. The names "Xerces" and "Apache Software Foundation" must
00027  *    not be used to endorse or promote products derived from this
00028  *    software without prior written permission. For written
00029  *    permission, please contact apache\@apache.org.
00030  *
00031  * 5. Products derived from this software may not be called "Apache",
00032  *    nor may "Apache" appear in their name, without prior written
00033  *    permission of the Apache Software Foundation.
00034  *
00035  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
00036  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
00037  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
00038  * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
00039  * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
00040  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
00041  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
00042  * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
00043  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
00044  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
00045  * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
00046  * SUCH DAMAGE.
00047  * ====================================================================
00048  *
00049  * This software consists of voluntary contributions made by many
00050  * individuals on behalf of the Apache Software Foundation, and was
00051  * originally based on software copyright (c) 1999, International
00052  * Business Machines, Inc., http://www.ibm.com .  For more information
00053  * on the Apache Software Foundation, please see
00054  * <http://www.apache.org/>.
00055  */
00056 
00057 /*
00058  * $Log: XercesDefs.hpp,v $
00059  * Revision 1.18  2001/11/29 18:25:18  tng
00060  * FreeBSD support by Michael Huedepohl.
00061  *
00062  * Revision 1.17  2001/11/23 17:19:33  tng
00063  * Change from 1.5.2 to 1.6.0
00064  *
00065  * Revision 1.16  2001/10/15 16:27:35  tng
00066  * Changes for Xerces-C 1.5.2
00067  *
00068  * Revision 1.15  2001/07/13 20:16:38  tng
00069  * Update for release 1.5.1.
00070  *
00071  * Revision 1.14  2001/06/05 13:52:25  tng
00072  * Change Version number from Xerces 1.4 to 1.5.  By Pei Yong Zhang.
00073  *
00074  * Revision 1.13  2001/05/11 13:26:32  tng
00075  * Copyright update.
00076  *
00077  * Revision 1.12  2001/02/08 14:15:33  tng
00078  * enable COMPAQ Tru64 UNIX machines to build xerces-c with gcc (tested using COMPAQ gcc version2.95.2 19991024 (release) and Tru64 V5.0 1094).  Added by Martin Kalen.
00079  *
00080  * Revision 1.11  2001/01/25 19:17:06  tng
00081  * const should be used instead of static const.  Fixed by Khaled Noaman.
00082  *
00083  * Revision 1.10  2001/01/12 22:09:07  tng
00084  * Various update for Xerces 1.4
00085  *
00086  * Revision 1.9  2000/11/07 18:14:39  andyh
00087  * Fix incorrect version number in gXercesMinVersion.
00088  * From Pieter Van-Dyck
00089  *
00090  * Revision 1.8  2000/11/02 07:23:27  roddey
00091  * Just a test of checkin access
00092  *
00093  * Revision 1.7  2000/08/18 21:29:14  andyh
00094  * Change version to 1.3 in preparation for upcoming Xerces 1.3
00095  * and XML4C 3.3 stable releases
00096  *
00097  * Revision 1.6  2000/08/07 20:31:34  jpolast
00098  * include  module
00099  *
00100  * Revision 1.5  2000/08/01 18:26:02  aruna1
00101  * Tru64 support added
00102  *
00103  * Revision 1.4  2000/07/29 05:36:37  jberry
00104  * Fix misspelling in Mac OS port
00105  *
00106  * Revision 1.3  2000/07/19 18:20:12  andyh
00107  * Macintosh port: fix problems with yesterday's code checkin.  A couple
00108  * of the changes were mangled or missed.
00109  *
00110  * Revision 1.2  2000/04/04 20:11:29  abagchi
00111  * Added PTX support
00112  *
00113  * Revision 1.1  2000/03/02 19:54:50  roddey
00114  * This checkin includes many changes done while waiting for the
00115  * 1.1.0 code to be finished. I can't list them all here, but a list is
00116  * available elsewhere.
00117  *
00118  * Revision 1.13  2000/03/02 01:51:00  aruna1
00119  * Sun CC 5.0 related changes
00120  *
00121  * Revision 1.12  2000/02/24 20:05:26  abagchi
00122  * Swat for removing Log from API docs
00123  *
00124  * Revision 1.11  2000/02/22 01:00:10  aruna1
00125  * GNUGDefs references removed. Now only GCCDefs is used instead
00126  *
00127  * Revision 1.10  2000/02/06 07:48:05  rahulj
00128  * Year 2K copyright swat.
00129  *
00130  * Revision 1.9  2000/02/01 23:43:32  abagchi
00131  * AS/400 related change
00132  *
00133  * Revision 1.8  2000/01/21 22:12:29  abagchi
00134  * OS390 Change: changed OE390 to OS390
00135  *
00136  * Revision 1.7  2000/01/14 01:18:35  roddey
00137  * Added a macro, XMLStrL(), which is defined one way or another according
00138  * to whether the per-compiler file defines XML_LSTRSUPPORT or not. This
00139  * allows conditional support of L"" type prefixes.
00140  *
00141  * Revision 1.6  2000/01/14 00:52:06  roddey
00142  * Updated the version information for the next release, i.e. 1.1.0
00143  *
00144  * Revision 1.5  1999/12/17 01:28:53  rahulj
00145  * Merged in changes submitted for UnixWare 7 port. Platform
00146  * specific files are still missing.
00147  *
00148  * Revision 1.4  1999/12/16 23:47:10  rahulj
00149  * Updated for version 1.0.1
00150  *
00151  * Revision 1.3  1999/12/01 17:16:16  rahulj
00152  * 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
00153  *
00154  * Revision 1.2  1999/11/10 02:02:51  abagchi
00155  * Changed version numbers
00156  *
00157  * Revision 1.1.1.1  1999/11/09 01:05:35  twl
00158  * Initial checkin
00159  *
00160  * Revision 1.3  1999/11/08 20:45:19  rahul
00161  * Swat for adding in Product name and CVS comment log variable.
00162  *
00163  */
00164 
00165 
00166 #if !defined(XERCESDEFS_HPP)
00167 #define XERCESDEFS_HPP
00168 
00169 // ---------------------------------------------------------------------------
00170 //  These are the various representations of the current version of Xerces.
00171 //  These are updated for every build. They must be at the top because they
00172 //  can be used by various per-compiler headers below.
00173 // ---------------------------------------------------------------------------
00174 #define Xerces_DLLVersionStr "1_6_0"
00175 const char* const    gXercesVersionStr = "1_6";
00176 const char* const    gXercesFullVersionStr = "1_6_0";
00177 const unsigned int   gXercesMajVersion = 1;
00178 const unsigned int   gXercesMinVersion = 6;
00179 const unsigned int   gXercesRevision   = 0;
00180 
00181 
00182 // ---------------------------------------------------------------------------
00183 //  Include the header that does automatic sensing of the current platform
00184 //  and compiler.
00185 // ---------------------------------------------------------------------------
00186 #include    <util/AutoSense.hpp>
00187 
00188 
00189 
00190 // ---------------------------------------------------------------------------
00191 //  According to the platform we include a platform specific file. This guy
00192 //  will set up any platform specific stuff, such as character mode.
00193 // ---------------------------------------------------------------------------
00194 #if defined(XML_WIN32)
00195 #include    <util/Platforms/Win32/Win32Defs.hpp>
00196 #endif
00197 
00198 #if defined(XML_AIX)
00199 #include    <util/Platforms/AIX/AIXDefs.hpp>
00200 #endif
00201 
00202 #if defined(XML_SOLARIS)
00203 #include    <util/Platforms/Solaris/SolarisDefs.hpp>
00204 #endif
00205 
00206 #if defined(XML_UNIXWARE)
00207 #include    <util/Platforms/UnixWare/UnixWareDefs.hpp>
00208 #endif
00209 
00210 #if defined(XML_HPUX)
00211 #include    <util/Platforms/HPUX/HPUXDefs.hpp>
00212 #endif
00213 
00214 #if defined(XML_IRIX)
00215 #include    <util/Platforms/IRIX/IRIXDefs.hpp>
00216 #endif
00217 
00218 #if defined(XML_TANDEM)
00219 #include    <util/Platforms/Tandem/TandemDefs.hpp>
00220 #endif
00221 
00222 #if defined(XML_LINUX)
00223 #include    <util/Platforms/Linux/LinuxDefs.hpp>
00224 #endif
00225 
00226 #if defined(XML_FREEBSD)
00227 #include    <util/Platforms/FreeBSD/FreeBSDDefs.hpp>
00228 #endif
00229 
00230 #if defined(XML_OS390)
00231 #include    <util/Platforms/OS390/OS390Defs.hpp>
00232 #endif
00233 
00234 #if defined(XML_PTX)
00235 #include    <util/Platforms/PTX/PTXDefs.hpp>
00236 #endif
00237 
00238 #if defined(XML_OS2)
00239 #include    <util/Platforms/OS2/OS2Defs.hpp>
00240 #endif
00241 
00242 #if defined(XML_MACOS) || defined(XML_MACOSX)
00243 #include    <util/Platforms/MacOS/MacOSDefs.hpp>
00244 #endif
00245 
00246 #if defined(XML_AS400)
00247 #include    <util/Platforms/OS400/OS400Defs.hpp>
00248 #endif
00249 
00250 #if defined(XML_TRU64)
00251 #include    <util/Platforms/Tru64/Tru64Defs.hpp>
00252 #endif
00253 
00254 
00255 // ---------------------------------------------------------------------------
00256 //  And now we subinclude a header according to the development environment
00257 //  we are on. This guy defines for each platform some basic stuff that is
00258 //  specific to the development environment.
00259 // ---------------------------------------------------------------------------
00260 #if defined(XML_VISUALCPP)
00261 #include    <util/Compilers/VCPPDefs.hpp>
00262 #endif
00263 
00264 #if defined(XML_CSET)
00265 #include    <util/Compilers/CSetDefs.hpp>
00266 #endif
00267 
00268 #if defined(XML_BORLAND)
00269 #include    <util/Compilers/BorlandCDefs.hpp>
00270 #endif
00271 
00272 #if defined(XML_SUNCC) || defined(XML_SUNCC5)
00273 #include    <util/Compilers/SunCCDefs.hpp>
00274 #endif
00275 
00276 #if defined(XML_SCOCC)
00277 #include    <util/Compilers/SCOCCDefs.hpp>
00278 #endif
00279 
00280 #if defined(XML_SOLARIS_KAICC)
00281 #include    <util/Compilers/SunKaiDefs.hpp>
00282 #endif
00283 
00284 #if defined(XML_HPUX_CC) || defined(XML_HPUX_aCC) || defined(XML_HPUX_KAICC)
00285 #include    <util/Compilers/HPCCDefs.hpp>
00286 #endif
00287 
00288 #if defined(XML_MIPSPRO_CC)
00289 #include    <util/Compilers/MIPSproDefs.hpp>
00290 #endif
00291 
00292 #if defined(XML_TANDEMCC)
00293 #include    <util/Compilers/TandemCCDefs.hpp>
00294 #endif
00295 
00296 #if defined(XML_GCC)
00297 #include    <util/Compilers/GCCDefs.hpp>
00298 #endif
00299 
00300 #if defined(XML_MVSCPP)
00301 #include    <util/Compilers/MVSCPPDefs.hpp>
00302 #endif
00303 
00304 #if defined(XML_IBMVAW32)
00305 #include    <util/Compilers/IBMVAW32Defs.hpp>
00306 #endif
00307 
00308 #if defined(XML_IBMVAOS2)
00309 #include    <util/Compilers/IBMVAOS2Defs.hpp>
00310 #endif
00311 
00312 #if defined(XML_METROWERKS)
00313 #include    <util/Compilers/CodeWarriorDefs.hpp>
00314 #endif
00315 
00316 #if defined(XML_PTX_CC)
00317 #include    <util/Compilers/PTXCCDefs.hpp>
00318 #endif
00319 
00320 #if defined(XML_AS400)
00321 #include    <util/Compilers/OS400SetDefs.hpp>
00322 #endif
00323 
00324 #if defined(XML_DECCXX)
00325 #include    <util/Compilers/DECCXXDefs.hpp>
00326 #endif
00327 
00328 
00329 // ---------------------------------------------------------------------------
00330 //  Some general typedefs that are defined for internal flexibility.
00331 //
00332 //  Note  that UTF16Ch is fixed at 16 bits, whereas XMLCh floats in size per
00333 //  platform, to whatever is the native wide char format there. UCS4Ch is
00334 //  fixed at 32 bits. The types we defined them in terms of are defined per
00335 //  compiler, using whatever types are the right ones for them to get these
00336 //  16/32 bit sizes.
00337 // ---------------------------------------------------------------------------
00338 typedef unsigned char       XMLByte;
00339 typedef XMLUInt16           UTF16Ch;
00340 typedef XMLUInt32           UCS4Ch;
00341 
00342 
00343 
00344 // ---------------------------------------------------------------------------
00345 //  Handle boolean. If the platform can handle booleans itself, then we
00346 //  map our boolean type to the native type. Otherwise we create a default
00347 //  one as an int and define const values for true and false.
00348 //
00349 //  This flag will be set in the per-development environment stuff above.
00350 // ---------------------------------------------------------------------------
00351 #if defined(NO_NATIVE_BOOL)
00352   #ifndef bool
00353     typedef int     bool;
00354   #endif
00355   #ifndef true
00356     #define  true     1
00357   #endif
00358   #ifndef false
00359     #define false 0
00360   #endif
00361 #endif
00362 
00363 
00364 // ---------------------------------------------------------------------------
00365 //  According to whether the compiler suports L"" type strings, we define
00366 //  the XMLStrL() macro one way or another.
00367 // ---------------------------------------------------------------------------
00368 #if defined(XML_LSTRSUPPORT)
00369 #define XMLStrL(str)  L##str
00370 #else
00371 #define XMLStrL(str)  str
00372 #endif
00373 
00374 
00375 
00376 // ---------------------------------------------------------------------------
00377 //  Set up the import/export keyword  for our core projects. The
00378 //  PLATFORM_XXXX keywords are set in the per-development environment
00379 //  include above.
00380 // ---------------------------------------------------------------------------
00381 #if defined(PROJ_XMLUTIL)
00382 #define  PLATFORM_EXPORT
00383 #else
00384 #define  PLATFORM_IMPORT
00385 #endif
00386 
00387 #if defined(PROJ_XMLPARSER)
00388 #define  PLATFORM_EXPORT
00389 #else
00390 #define  PLATFORM_IMPORT
00391 #endif
00392 
00393 #if defined(PROJ_SAX4C)
00394 #define  PLATFORM_EXPORT
00395 #else
00396 #define  PLATFORM_IMPORT
00397 #endif
00398 
00399 #if defined(PROJ_SAX2)
00400 #define  PLATFORM_EXPORT
00401 #else
00402 #define  PLATFORM_IMPORT
00403 #endif
00404 
00405 #if defined(PROJ_DOM)
00406 #define  PLATFORM_EXPORT
00407 #else
00408 #define  PLATFORM_IMPORT
00409 #endif
00410 
00411 #if defined(PROJ_PARSERS)
00412 #define   PLATFORM_EXPORT
00413 #else
00414 #define   PLATFORM_IMPORT
00415 #endif
00416 
00417 #if defined(PROJ_VALIDATORS)
00418 #define VALIDATORS_EXPORT  PLATFORM_EXPORT
00419 #else
00420 #define VALIDATORS_EXPORT  PLATFORM_IMPORT
00421 #endif
00422 
00423 #endif


Copyright © 2000 The Apache Software Foundation. All Rights Reserved.