Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

XalanVersion.hpp

Go to the documentation of this file.
00001 /*
00002  * Copyright 1999-2004 The Apache Software Foundation.
00003  *
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  *
00008  *     http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016 
00017 #if !defined(XALANVERSION_HEADER_GUARD_1357924680)
00018 #define XALANVERSION_HEADER_GUARD_1357924680
00019 
00020 // ---------------------------------------------------------------------------
00021 // X A L A N   V E R S I O N   H E A D E R   D O C U M E N T A T I O N
00022 
00110 
00111 // ---------------------------------------------------------------------------
00112 // X A L A N   V E R S I O N   S P E C I F I C A T I O N
00113 
00118 
00119 #define XALAN_VERSION_MAJOR 1
00120 #define XALAN_VERSION_MINOR 10
00121 #define XALAN_VERSION_REVISION 0
00122 
00123 
00125 
00132 
00133 // ---------------------------------------------------------------------------
00134 // T W O   A R G U M E N T   C O N C A T E N A T I O N   M A C R O S
00135 
00136 // two argument concatenation routines
00137 #define CAT2_SEP_UNDERSCORE(a, b) #a "_" #b
00138 #define CAT2_SEP_PERIOD(a, b) #a "." #b
00139 #define CAT2_SEP_NIL(a, b) #a #b
00140 #define CAT2_RAW_NUMERIC(a, b) a ## b
00141 #define CAT2_RAW_NUMERIC_SEP_UNDERSCORE(a, b) a ## _ ## b 
00142 
00143 // two argument macro invokers
00144 #define INVK_CAT2_SEP_UNDERSCORE(a,b) CAT2_SEP_UNDERSCORE(a,b)
00145 #define INVK_CAT2_SEP_PERIOD(a,b)     CAT2_SEP_PERIOD(a,b)
00146 #define INVK_CAT2_STR_SEP_NIL(a,b)    CAT2_SEP_NIL(a,b)
00147 #define INVK_CAT2_RAW_NUMERIC(a,b)    CAT2_RAW_NUMERIC(a,b)
00148 #define INVK_CAT2_RAW_NUMERIC_SEP_UNDERSCORE(a,b)    CAT2_RAW_NUMERIC_SEP_UNDERSCORE(a,b)
00149 
00150 // ---------------------------------------------------------------------------
00151 // T H R E E   A R G U M E N T   C O N C A T E N A T I O N   M A C R O S
00152 
00153 // three argument concatenation routines
00154 #define CAT3_SEP_UNDERSCORE(a, b, c) #a "_" #b "_" #c
00155 #define CAT3_SEP_PERIOD(a, b, c) #a "." #b "." #c
00156 #define CAT3_SEP_NIL(a, b, c) #a #b #c
00157 #define CAT3_RAW_NUMERIC(a, b, c) a ## b ## c
00158 #define CAT3_RAW_NUMERIC_SEP_UNDERSCORE(a, b, c) a ## _ ## b ## _ ## c
00159 
00160 // three argument macro invokers
00161 #define INVK_CAT3_SEP_UNDERSCORE(a,b,c) CAT3_SEP_UNDERSCORE(a,b,c)
00162 #define INVK_CAT3_SEP_PERIOD(a,b,c)     CAT3_SEP_PERIOD(a,b,c)
00163 #define INVK_CAT3_SEP_NIL(a,b,c)        CAT3_SEP_NIL(a,b,c)
00164 #define INVK_CAT3_RAW_NUMERIC(a,b,c)    CAT3_RAW_NUMERIC(a,b,c)
00165 #define INVK_CAT3_RAW_NUMERIC_SEP_UNDERSCORE(a,b,c)    CAT3_RAW_NUMERIC_SEP_UNDERSCORE(a,b,c)
00166 
00167 // ---------------------------------------------------------------------------
00168 // C A L C U L A T E   V E R S I O N   -   E X P A N D E D   F O R M
00169 
00170 #define MULTIPLY(factor,value) factor * value
00171 #define CALC_EXPANDED_FORM(a,b,c) ( MULTIPLY(10000,a) + MULTIPLY(100,b) + MULTIPLY(1,c) )
00172 
00173 // ---------------------------------------------------------------------------
00174 // X A L A N   V E R S I O N   I N F O R M A T I O N
00175 
00176 // Xalan version strings; these particular macros cannot be used for
00177 // conditional compilation as they are not numeric constants
00178 
00179 #define XALAN_FULLVERSIONSTR INVK_CAT3_SEP_UNDERSCORE(XALAN_VERSION_MAJOR,XALAN_VERSION_MINOR,XALAN_VERSION_REVISION)
00180 #define XALAN_FULLVERSIONDOT INVK_CAT3_SEP_PERIOD(XALAN_VERSION_MAJOR,XALAN_VERSION_MINOR,XALAN_VERSION_REVISION)
00181 #define XALAN_FULLVERSIONNUM INVK_CAT3_SEP_NIL(XALAN_VERSION_MAJOR,XALAN_VERSION_MINOR,XALAN_VERSION_REVISION)
00182 #define XALAN_VERSIONSTR     INVK_CAT2_SEP_UNDERSCORE(XALAN_VERSION_MAJOR,XALAN_VERSION_MINOR)
00183 
00184 // Xalan C++ Namespace string, concatenated with full version string
00185 #define XALAN_PRODUCT xalanc
00186 #define XALAN_CPP_NAMESPACE INVK_CAT3_RAW_NUMERIC_SEP_UNDERSCORE(XALAN_PRODUCT,XALAN_VERSION_MAJOR,XALAN_VERSION_MINOR)
00187 
00188 
00189 // original from Xalan header
00190 #define Xalan_DLLVersionStr XALAN_FULLVERSIONSTR
00191 
00192 const char* const    gXalanVersionStr = XALAN_VERSIONSTR;
00193 const char* const    gXalanFullVersionStr = XALAN_FULLVERSIONSTR;
00194 const unsigned int   gXalanMajVersion = XALAN_VERSION_MAJOR;
00195 const unsigned int   gXalanMinVersion = XALAN_VERSION_MINOR;
00196 const unsigned int   gXalanRevision   = XALAN_VERSION_REVISION;
00197 
00198 // Xalan version numeric constants that can be used for conditional
00199 // compilation purposes.
00200 
00201 #define _XALAN_VERSION CALC_EXPANDED_FORM (XALAN_VERSION_MAJOR,XALAN_VERSION_MINOR,XALAN_VERSION_REVISION)
00202 
00203 #endif // XALANVERSION_HEADER_GUARD_1357924680

Interpreting class diagrams

Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.

dot

Xalan-C++ XSLT Processor Version 1.10
Copyright © 1999-2004 The Apache Software Foundation. All Rights Reserved.

Apache Logo