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