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