00001 /* 00002 * The Apache Software License, Version 1.1 00003 * 00004 * 00005 * Copyright (c) 1999 The Apache Software Foundation. All rights 00006 * reserved. 00007 * 00008 * Redistribution and use in source and binary forms, with or without 00009 * modification, are permitted provided that the following conditions 00010 * are met: 00011 * 00012 * 1. Redistributions of source code must retain the above copyright 00013 * notice, this list of conditions and the following disclaimer. 00014 * 00015 * 2. Redistributions in binary form must reproduce the above copyright 00016 * notice, this list of conditions and the following disclaimer in 00017 * the documentation and/or other materials provided with the 00018 * distribution. 00019 * 00020 * 3. The end-user documentation included with the redistribution, 00021 * if any, must include the following acknowledgment: 00022 * "This product includes software developed by the 00023 * Apache Software Foundation (http://www.apache.org/)." 00024 * Alternately, this acknowledgment may appear in the software itself, 00025 * if and wherever such third-party acknowledgments normally appear. 00026 * 00027 * 4. The names "<WebSig>" and "Apache Software Foundation" must 00028 * not be used to endorse or promote products derived from this 00029 * software without prior written permission. For written 00030 * permission, please contact apache@apache.org. 00031 * 00032 * 5. Products derived from this software may not be called "Apache", 00033 * nor may "Apache" appear in their name, without prior written 00034 * permission of the Apache Software Foundation. 00035 * 00036 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED 00037 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 00038 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 00039 * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR 00040 * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 00041 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 00042 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF 00043 * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 00044 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 00045 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 00046 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 00047 * SUCH DAMAGE. 00048 * ==================================================================== 00049 * 00050 * This software consists of voluntary contributions made by many 00051 * individuals on behalf of the Apache Software Foundation and was 00052 * originally based on software copyright (c) 2001, Institute for 00053 * Data Communications Systems, <http://www.nue.et-inf.uni-siegen.de/>. 00054 * The development of this software was partly funded by the European 00055 * Commission in the <WebSig> project in the ISIS Programme. 00056 * For more information on the Apache Software Foundation, please see 00057 * <http://www.apache.org/>. 00058 */ 00059 00060 /* 00061 * XSEC 00062 * 00063 * XSECDefs := File for general XSEC definitions 00064 * 00065 * Author(s): Berin Lautenbach 00066 * 00067 * $Id: XSECDefs.hpp,v 1.4 2003/03/15 04:21:24 blautenb Exp $ 00068 * 00069 */ 00070 00071 // Use Xerces to do the "hard work in determining compilers etc." for us 00072 00073 #ifndef XSECDEFS_HEADER 00074 #define XSECDEFS_HEADER 00075 00076 // Include the generated include file 00077 00078 #if defined (_WIN32) 00079 # if defined (_DEBUG) 00080 # include <afx.h> 00081 # include <crtdbg.h> 00082 # endif 00083 # include <xsec/framework/XSECW32Config.hpp> 00084 #else 00085 # include <xsec/framework/XSECConfig.hpp> 00086 #endif 00087 00088 // General includes 00089 00090 #include <assert.h> 00091 #include <stdlib.h> 00092 00093 // Xalan 00094 00095 //#include <Include/PlatformDefinitions.hpp> 00096 00097 // Xerces 00098 00099 #include <xercesc/util/XercesDefs.hpp> 00100 00101 // -------------------------------------------------------------------------------- 00102 // Namespace Handling 00103 // -------------------------------------------------------------------------------- 00104 00105 // Use an approach similar to that used in Xalan to process Xerces namespaces 00106 00107 #if defined(XERCES_HAS_CPP_NAMESPACE) 00108 # define XSEC_USING_XERCES(NAME) using XERCES_CPP_NAMESPACE :: NAME 00109 # define XSEC_DECLARE_XERCES_CLASS(NAME) namespace XERCES_CPP_NAMESPACE { class NAME; } \ 00110 using XERCES_CPP_NAMESPACE::NAME 00111 # define XSEC_DECLARE_XERCES_STRUCT(NAME) namespace XERCES_CPP_NAMESPACE { struct NAME; } 00112 #else 00113 # define XERCES_CPP_NAMESPACE_QUALIFIER 00114 # define XERCES_CPP_NAMESPACE_BEGIN 00115 # define XERCES_CPP_NAMESPACE_END 00116 # define XERCES_CPP_NAMESPACE_USE 00117 # define XSEC_USING_XERCES(NAME) 00118 # define XSEC_DECLARE_XERCES_CLASS(NAME) class NAME; 00119 # define XSEC_DECLARE_XERCES_STRUCT(NAME) struct NAME; 00120 #endif 00121 00122 00123 // -------------------------------------------------------------------------------- 00124 // Project Library Handling 00125 // -------------------------------------------------------------------------------- 00126 00127 #if defined (PROJ_CANON) 00128 00129 #define CANON_EXPORT PLATFORM_EXPORT 00130 #else 00131 #define CANON_EXPORT PLATFORM_IMPORT 00132 #endif 00133 00134 #if defined (PROJ_DSIG) 00135 00136 #define DSIG_EXPORT PLATFORM_EXPORT 00137 #else 00138 #define DSIG_EXPORT PLATFORM_IMPORT 00139 #endif 00140 00141 // Platform includes. Much of this is taken from Xalan 00142 00143 #if defined(_MSC_VER) 00144 00145 // Microsoft VC++ 00146 00147 # pragma warning(disable: 4127 4251 4511 4512 4514 4702 4710 4711 4786 4097; error: 4150 4172 4238 4239 4715) 00148 # define XSEC_NO_COVARIANT_RETURN_TYPE 00149 00150 #elif defined(__GNUC__) 00151 #elif defined(__INTEL_COMPILER) 00152 #else 00153 #error Unknown compiler. 00154 #endif 00155 00156 00157 // Configuration includes 00158 00159 // We want to use XPath calculated transforms 00160 00161 //#define XSEC_USE_XPATH_ENVELOPE 00162 00163 00164 // Given the configuration - what should we set? 00165 00166 #ifdef XSEC_NO_XALAN 00167 00168 // Xalan is not available! 00169 00170 # define XSEC_NO_XPATH 00171 # define XSEC_NO_XSLT 00172 00173 #endif /* XSEC_NO_XALAN */ 00174 00175 #ifdef XSEC_NO_XPATH 00176 00177 # ifdef XSEC_USE_XPATH_ENVELOPE 00178 # undef XSEC_USE_XPATH_ENVELOPE 00179 # endif 00180 00181 #endif 00182 00183 #endif /* XSECDEFS_HEADER */