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