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.16  2001/10/15 16:27:35  tng
00060  * Changes for Xerces-C 1.5.2
00061  *
00062  * Revision 1.15  2001/07/13 20:16:38  tng
00063  * Update for release 1.5.1.
00064  *
00065  * Revision 1.14  2001/06/05 13:52:25  tng
00066  * Change Version number from Xerces 1.4 to 1.5.  By Pei Yong Zhang.
00067  *
00068  * Revision 1.13  2001/05/11 13:26:32  tng
00069  * Copyright update.
00070  *
00071  * Revision 1.12  2001/02/08 14:15:33  tng
00072  * 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.
00073  *
00074  * Revision 1.11  2001/01/25 19:17:06  tng
00075  * const should be used instead of static const.  Fixed by Khaled Noaman.
00076  *
00077  * Revision 1.10  2001/01/12 22:09:07  tng
00078  * Various update for Xerces 1.4
00079  *
00080  * Revision 1.9  2000/11/07 18:14:39  andyh
00081  * Fix incorrect version number in gXercesMinVersion.
00082  * From Pieter Van-Dyck
00083  *
00084  * Revision 1.8  2000/11/02 07:23:27  roddey
00085  * Just a test of checkin access
00086  *
00087  * Revision 1.7  2000/08/18 21:29:14  andyh
00088  * Change version to 1.3 in preparation for upcoming Xerces 1.3
00089  * and XML4C 3.3 stable releases
00090  *
00091  * Revision 1.6  2000/08/07 20:31:34  jpolast
00092  * include  module
00093  *
00094  * Revision 1.5  2000/08/01 18:26:02  aruna1
00095  * Tru64 support added
00096  *
00097  * Revision 1.4  2000/07/29 05:36:37  jberry
00098  * Fix misspelling in Mac OS port
00099  *
00100  * Revision 1.3  2000/07/19 18:20:12  andyh
00101  * Macintosh port: fix problems with yesterday's code checkin.  A couple
00102  * of the changes were mangled or missed.
00103  *
00104  * Revision 1.2  2000/04/04 20:11:29  abagchi
00105  * Added PTX support
00106  *
00107  * Revision 1.1  2000/03/02 19:54:50  roddey
00108  * This checkin includes many changes done while waiting for the
00109  * 1.1.0 code to be finished. I can't list them all here, but a list is
00110  * available elsewhere.
00111  *
00112  * Revision 1.13  2000/03/02 01:51:00  aruna1
00113  * Sun CC 5.0 related changes
00114  *
00115  * Revision 1.12  2000/02/24 20:05:26  abagchi
00116  * Swat for removing Log from API docs
00117  *
00118  * Revision 1.11  2000/02/22 01:00:10  aruna1
00119  * GNUGDefs references removed. Now only GCCDefs is used instead
00120  *
00121  * Revision 1.10  2000/02/06 07:48:05  rahulj
00122  * Year 2K copyright swat.
00123  *
00124  * Revision 1.9  2000/02/01 23:43:32  abagchi
00125  * AS/400 related change
00126  *
00127  * Revision 1.8  2000/01/21 22:12:29  abagchi
00128  * OS390 Change: changed OE390 to OS390
00129  *
00130  * Revision 1.7  2000/01/14 01:18:35  roddey
00131  * Added a macro, XMLStrL(), which is defined one way or another according
00132  * to whether the per-compiler file defines XML_LSTRSUPPORT or not. This
00133  * allows conditional support of L"" type prefixes.
00134  *
00135  * Revision 1.6  2000/01/14 00:52:06  roddey
00136  * Updated the version information for the next release, i.e. 1.1.0
00137  *
00138  * Revision 1.5  1999/12/17 01:28:53  rahulj
00139  * Merged in changes submitted for UnixWare 7 port. Platform
00140  * specific files are still missing.
00141  *
00142  * Revision 1.4  1999/12/16 23:47:10  rahulj
00143  * Updated for version 1.0.1
00144  *
00145  * Revision 1.3  1999/12/01 17:16:16  rahulj
00146  * 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
00147  *
00148  * Revision 1.2  1999/11/10 02:02:51  abagchi
00149  * Changed version numbers
00150  *
00151  * Revision 1.1.1.1  1999/11/09 01:05:35  twl
00152  * Initial checkin
00153  *
00154  * Revision 1.3  1999/11/08 20:45:19  rahul
00155  * Swat for adding in Product name and CVS comment log variable.
00156  *
00157  */
00158 
00159 
00160 #if !defined(XERCESDEFS_HPP)
00161 #define XERCESDEFS_HPP
00162 
00163 // ---------------------------------------------------------------------------
00164 //  These are the various representations of the current version of Xerces.
00165 //  These are updated for every build. They must be at the top because they
00166 //  can be used by various per-compiler headers below.
00167 // ---------------------------------------------------------------------------
00168 #define Xerces_DLLVersionStr "1_5_2"
00169 const char* const    gXercesVersionStr = "1_5";
00170 const char* const    gXercesFullVersionStr = "1_5_2";
00171 const unsigned int   gXercesMajVersion = 1;
00172 const unsigned int   gXercesMinVersion = 5;
00173 const unsigned int   gXercesRevision   = 2;
00174 
00175 
00176 // ---------------------------------------------------------------------------
00177 //  Include the header that does automatic sensing of the current platform
00178 //  and compiler.
00179 // ---------------------------------------------------------------------------
00180 #include    <util/AutoSense.hpp>
00181 
00182 
00183 
00184 // ---------------------------------------------------------------------------
00185 //  According to the platform we include a platform specific file. This guy
00186 //  will set up any platform specific stuff, such as character mode.
00187 // ---------------------------------------------------------------------------
00188 #if defined(XML_WIN32)
00189 #include    <util/Platforms/Win32/Win32Defs.hpp>
00190 #endif
00191 
00192 #if defined(XML_AIX)
00193 #include    <util/Platforms/AIX/AIXDefs.hpp>
00194 #endif
00195 
00196 #if defined(XML_SOLARIS)
00197 #include    <util/Platforms/Solaris/SolarisDefs.hpp>
00198 #endif
00199 
00200 #if defined(XML_UNIXWARE)
00201 #include    <util/Platforms/UnixWare/UnixWareDefs.hpp>
00202 #endif
00203 
00204 #if defined(XML_HPUX)
00205 #include    <util/Platforms/HPUX/HPUXDefs.hpp>
00206 #endif
00207 
00208 #if defined(XML_IRIX)
00209 #include    <util/Platforms/IRIX/IRIXDefs.hpp>
00210 #endif
00211 
00212 #if defined(XML_TANDEM)
00213 #include    <util/Platforms/Tandem/TandemDefs.hpp>
00214 #endif
00215 
00216 #if defined(XML_LINUX)
00217 #include    <util/Platforms/Linux/LinuxDefs.hpp>
00218 #endif
00219 
00220 #if defined(XML_OS390)
00221 #include    <util/Platforms/OS390/OS390Defs.hpp>
00222 #endif
00223 
00224 #if defined(XML_PTX)
00225 #include    <util/Platforms/PTX/PTXDefs.hpp>
00226 #endif
00227 
00228 #if defined(XML_OS2)
00229 #include    <util/Platforms/OS2/OS2Defs.hpp>
00230 #endif
00231 
00232 #if defined(XML_MACOS) || defined(XML_MACOSX)
00233 #include    <util/Platforms/MacOS/MacOSDefs.hpp>
00234 #endif
00235 
00236 #if defined(XML_AS400)
00237 #include    <util/Platforms/OS400/OS400Defs.hpp>
00238 #endif
00239 
00240 #if defined(XML_TRU64)
00241 #include    <util/Platforms/Tru64/Tru64Defs.hpp>
00242 #endif
00243 
00244 
00245 // ---------------------------------------------------------------------------
00246 //  And now we subinclude a header according to the development environment
00247 //  we are on. This guy defines for each platform some basic stuff that is
00248 //  specific to the development environment.
00249 // ---------------------------------------------------------------------------
00250 #if defined(XML_VISUALCPP)
00251 #include    <util/Compilers/VCPPDefs.hpp>
00252 #endif
00253 
00254 #if defined(XML_CSET)
00255 #include    <util/Compilers/CSetDefs.hpp>
00256 #endif
00257 
00258 #if defined(XML_BORLAND)
00259 #include    <util/Compilers/BorlandCDefs.hpp>
00260 #endif
00261 
00262 #if defined(XML_SUNCC) || defined(XML_SUNCC5)
00263 #include    <util/Compilers/SunCCDefs.hpp>
00264 #endif
00265 
00266 #if defined(XML_SCOCC)
00267 #include    <util/Compilers/SCOCCDefs.hpp>
00268 #endif
00269 
00270 #if defined(XML_SOLARIS_KAICC)
00271 #include    <util/Compilers/SunKaiDefs.hpp>
00272 #endif
00273 
00274 #if defined(XML_HPUX_CC) || defined(XML_HPUX_aCC) || defined(XML_HPUX_KAICC)
00275 #include    <util/Compilers/HPCCDefs.hpp>
00276 #endif
00277 
00278 #if defined(XML_MIPSPRO_CC)
00279 #include    <util/Compilers/MIPSproDefs.hpp>
00280 #endif
00281 
00282 #if defined(XML_TANDEMCC)
00283 #include    <util/Compilers/TandemCCDefs.hpp>
00284 #endif
00285 
00286 #if defined(XML_GCC)
00287 #include    <util/Compilers/GCCDefs.hpp>
00288 #endif
00289 
00290 #if defined(XML_MVSCPP)
00291 #include    <util/Compilers/MVSCPPDefs.hpp>
00292 #endif
00293 
00294 #if defined(XML_IBMVAW32)
00295 #include    <util/Compilers/IBMVAW32Defs.hpp>
00296 #endif
00297 
00298 #if defined(XML_IBMVAOS2)
00299 #include    <util/Compilers/IBMVAOS2Defs.hpp>
00300 #endif
00301 
00302 #if defined(XML_METROWERKS)
00303 #include    <util/Compilers/CodeWarriorDefs.hpp>
00304 #endif
00305 
00306 #if defined(XML_PTX_CC)
00307 #include    <util/Compilers/PTXCCDefs.hpp>
00308 #endif
00309 
00310 #if defined(XML_AS400)
00311 #include    <util/Compilers/OS400SetDefs.hpp>
00312 #endif
00313 
00314 #if defined(XML_DECCXX)
00315 #include    <util/Compilers/DECCXXDefs.hpp>
00316 #endif
00317 
00318 
00319 // ---------------------------------------------------------------------------
00320 //  Some general typedefs that are defined for internal flexibility.
00321 //
00322 //  Note  that UTF16Ch is fixed at 16 bits, whereas XMLCh floats in size per
00323 //  platform, to whatever is the native wide char format there. UCS4Ch is
00324 //  fixed at 32 bits. The types we defined them in terms of are defined per
00325 //  compiler, using whatever types are the right ones for them to get these
00326 //  16/32 bit sizes.
00327 // ---------------------------------------------------------------------------
00328 typedef unsigned char       XMLByte;
00329 typedef XMLUInt16           UTF16Ch;
00330 typedef XMLUInt32           UCS4Ch;
00331 
00332 
00333 
00334 // ---------------------------------------------------------------------------
00335 //  Handle boolean. If the platform can handle booleans itself, then we
00336 //  map our boolean type to the native type. Otherwise we create a default
00337 //  one as an int and define const values for true and false.
00338 //
00339 //  This flag will be set in the per-development environment stuff above.
00340 // ---------------------------------------------------------------------------
00341 #if defined(NO_NATIVE_BOOL)
00342   #ifndef bool
00343     typedef int     bool;
00344   #endif
00345   #ifndef true
00346     #define  true     1
00347   #endif
00348   #ifndef false
00349     #define false 0
00350   #endif
00351 #endif
00352 
00353 
00354 // ---------------------------------------------------------------------------
00355 //  According to whether the compiler suports L"" type strings, we define
00356 //  the XMLStrL() macro one way or another.
00357 // ---------------------------------------------------------------------------
00358 #if defined(XML_LSTRSUPPORT)
00359 #define XMLStrL(str)  L##str
00360 #else
00361 #define XMLStrL(str)  str
00362 #endif
00363 
00364 
00365 
00366 // ---------------------------------------------------------------------------
00367 //  Set up the import/export keyword  for our core projects. The
00368 //  PLATFORM_XXXX keywords are set in the per-development environment
00369 //  include above.
00370 // ---------------------------------------------------------------------------
00371 #if defined(PROJ_XMLUTIL)
00372 #define  PLATFORM_EXPORT
00373 #else
00374 #define  PLATFORM_IMPORT
00375 #endif
00376 
00377 #if defined(PROJ_XMLPARSER)
00378 #define  PLATFORM_EXPORT
00379 #else
00380 #define  PLATFORM_IMPORT
00381 #endif
00382 
00383 #if defined(PROJ_SAX4C)
00384 #define  PLATFORM_EXPORT
00385 #else
00386 #define  PLATFORM_IMPORT
00387 #endif
00388 
00389 #if defined(PROJ_SAX2)
00390 #define  PLATFORM_EXPORT
00391 #else
00392 #define  PLATFORM_IMPORT
00393 #endif
00394 
00395 #if defined(PROJ_DOM)
00396 #define  PLATFORM_EXPORT
00397 #else
00398 #define  PLATFORM_IMPORT
00399 #endif
00400 
00401 #if defined(PROJ_PARSERS)
00402 #define   PLATFORM_EXPORT
00403 #else
00404 #define   PLATFORM_IMPORT
00405 #endif
00406 
00407 #if defined(PROJ_VALIDATORS)
00408 #define VALIDATORS_EXPORT  PLATFORM_EXPORT
00409 #else
00410 #define VALIDATORS_EXPORT  PLATFORM_IMPORT
00411 #endif
00412 
00413 #endif


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