2 * Licensed to the University Corporation for Advanced Internet
3 * Development, Inc. (UCAID) under one or more contributor license
4 * agreements. See the NOTICE file distributed with this work for
5 * additional information regarding copyright ownership.
7 * UCAID licenses this file to you under the Apache License,
8 * Version 2.0 (the "License"); you may not use this file except
9 * in compliance with the License. You may obtain a copy of the
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing,
15 * software distributed under the License is distributed on an
16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
17 * either express or implied. See the License for the specific
18 * language governing permissions and limitations under the License.
22 * xmltooling/version.h
24 * Library version macros and constants.
27 #if !defined(__xmltooling_version_h__)
28 #define __xmltooling_version_h__
30 // This is all based on Xerces, on the theory it might be useful to
31 // support this kind of stuff in the future. If they ever yank some
32 // of this stuff, it can be copied into here.
34 #include <xmltooling/base.h>
35 #include <xercesc/util/XercesVersion.hpp>
37 // ---------------------------------------------------------------------------
38 // V E R S I O N S P E C I F I C A T I O N
41 * MODIFY THESE NUMERIC VALUES TO COINCIDE WITH XMLTOOLING VERSION
42 * AND DO NOT MODIFY ANYTHING ELSE IN THIS VERSION HEADER FILE
45 #define XMLTOOLING_VERSION_MAJOR 1
46 #define XMLTOOLING_VERSION_MINOR 5
47 #define XMLTOOLING_VERSION_REVISION 0
49 /** DO NOT MODIFY BELOW THIS LINE */
52 * MAGIC THAT AUTOMATICALLY GENERATES THE FOLLOWING:
54 * gXMLToolingVersionStr, gXMLToolingFullVersionStr, gXMLToolingMajVersion, gXMLToolingMinVersion, gXMLToolingRevision
57 // ---------------------------------------------------------------------------
58 // V E R S I O N I N F O R M A T I O N
60 // XMLTooling version strings; these particular macros cannot be used for
61 // conditional compilation as they are not numeric constants
63 #define XMLTOOLING_FULLVERSIONSTR INVK_CAT3_SEP_UNDERSCORE(XMLTOOLING_VERSION_MAJOR,XMLTOOLING_VERSION_MINOR,XMLTOOLING_VERSION_REVISION)
64 #define XMLTOOLING_FULLVERSIONDOT INVK_CAT3_SEP_PERIOD(XMLTOOLING_VERSION_MAJOR,XMLTOOLING_VERSION_MINOR,XMLTOOLING_VERSION_REVISION)
65 #define XMLTOOLING_FULLVERSIONNUM INVK_CAT3_SEP_NIL(XMLTOOLING_VERSION_MAJOR,XMLTOOLING_VERSION_MINOR,XMLTOOLING_VERSION_REVISION)
66 #define XMLTOOLING_VERSIONSTR INVK_CAT2_SEP_UNDERSCORE(XMLTOOLING_VERSION_MAJOR,XMLTOOLING_VERSION_MINOR)
68 extern XMLTOOL_API const char* const gXMLToolingVersionStr;
69 extern XMLTOOL_API const char* const gXMLToolingFullVersionStr;
70 extern XMLTOOL_API const char* const gXMLToolingDotVersionStr;
71 extern XMLTOOL_API const unsigned int gXMLToolingMajVersion;
72 extern XMLTOOL_API const unsigned int gXMLToolingMinVersion;
73 extern XMLTOOL_API const unsigned int gXMLToolingRevision;
75 // XMLTooling version numeric constants that can be used for conditional
76 // compilation purposes.
78 #define _XMLTOOLING_VERSION CALC_EXPANDED_FORM (XMLTOOLING_VERSION_MAJOR,XMLTOOLING_VERSION_MINOR,XMLTOOLING_VERSION_REVISION)
80 #endif // __xmltooling_version_h__