| QxOrm 1.2.9 C++ Object Relational Mapping library

- Main Page
- Modules
- Namespaces
- Classes
- Files
- Directories

- File List
- File Members

QxExportDllMacroHpp.h
Go to the documentation of this file.

    00001 /****************************************************************************
    00002 **
    00003 ** http://www.qxorm.com/
    00004 ** Copyright (C) 2013 Lionel Marty (contact@qxorm.com)
    00005 **
    00006 ** This file is part of the QxOrm library
    00007 **
    00008 ** This software is provided 'as-is', without any express or implied
    00009 ** warranty. In no event will the authors be held liable for any
    00010 ** damages arising from the use of this software
    00011 **
    00012 ** Commercial Usage
    00013 ** Licensees holding valid commercial QxOrm licenses may use this file in
    00014 ** accordance with the commercial license agreement provided with the
    00015 ** Software or, alternatively, in accordance with the terms contained in
    00016 ** a written agreement between you and Lionel Marty
    00017 **
    00018 ** GNU General Public License Usage
    00019 ** Alternatively, this file may be used under the terms of the GNU
    00020 ** General Public License version 3.0 as published by the Free Software
    00021 ** Foundation and appearing in the file 'license.gpl3.txt' included in the
    00022 ** packaging of this file. Please review the following information to
    00023 ** ensure the GNU General Public License version 3.0 requirements will be
    00024 ** met : http://www.gnu.org/copyleft/gpl.html
    00025 **
    00026 ** If you are unsure which license is appropriate for your use, or
    00027 ** if you have questions regarding the use of this file, please contact :
    00028 ** contact@qxorm.com
    00029 **
    00030 ****************************************************************************/
    00031
    00032 #ifndef _QX_EXPORT_DLL_MACRO_HPP_H_
    00033 #define _QX_EXPORT_DLL_MACRO_HPP_H_
    00034
    00035 #ifdef _MSC_VER
    00036 #pragma once
    00037 #endif
    00038
    00039 #include <QxCommon/QxConfig.h>
    00040
    00041 #include <QxSerialize/boost/QxSerialize_shared_ptr.h>
    00042
    00043 #include <QxTraits/get_base_class.h>
    00044
    00045 #if _QX_USE_EXPORT_DLL_BOOST_SERIALIZATION_SINGLETON
    00046
    00047 #if _QX_SUPPORT_BOOST_SERIALIZE_SHARED_PTR_132
    00048 #if (BOOST_VERSION >= 104100)
    00049 #define QX_BOOST_132_SHARED_PTR_HELPER(T) \
    00050 boost_132::detail::sp_counted_base_impl< T *, boost::serialization::null_deleter >
    00051 #else // (BOOST_VERSION >= 104100)
    00052 #define QX_BOOST_132_SHARED_PTR_HELPER(T) \
    00053 boost_132::detail::sp_counted_base_impl< T *, boost_132::serialization::detail::null_deleter >
    00054 #endif // (BOOST_VERSION >= 104100)
    00055 #endif // _QX_SUPPORT_BOOST_SERIALIZE_SHARED_PTR_132
    00056
    00057 #define QX_BOOST_EXPORT_SERIALIZATION_IMPL_POINTER_ISERIALIZER_HPP(ArchiveIn, ArchiveOut, T) \
    00058 QX_DLL_EXPORT_TEMPLATE_T_P1_P2_HPP(class, boost::archive::detail::pointer_iserializer, ArchiveIn, T) \
    00059 QX_DLL_EXPORT_TEMPLATE_T_U_P1_P2_HPP(class, boost::serialization::singleton, boost::archive::detail::pointer_iserializer, ArchiveIn, T)
    00060
    00061 #define QX_BOOST_EXPORT_SERIALIZATION_IMPL_POINTER_OSERIALIZER_HPP(ArchiveIn, ArchiveOut, T) \
    00062 QX_DLL_EXPORT_TEMPLATE_T_P1_P2_HPP(class, boost::archive::detail::pointer_oserializer, ArchiveOut, T) \
    00063 QX_DLL_EXPORT_TEMPLATE_T_U_P1_P2_HPP(class, boost::serialization::singleton, boost::archive::detail::pointer_oserializer, ArchiveOut, T)
    00064
    00065 #if _QX_SUPPORT_BOOST_SERIALIZE_SHARED_PTR_132
    00066 #define QX_BOOST_EXPORT_SERIALIZATION_IMPL_POINTER_ISERIALIZER_BOOST_132_HELPER_HPP(ArchiveIn, ArchiveOut, T) \
    00067 QX_DLL_EXPORT_TEMPLATE_T_P1_P2_HPP(class, boost::archive::detail::pointer_iserializer, ArchiveIn, QX_BOOST_132_SHARED_PTR_HELPER(T)) \
    00068 QX_DLL_EXPORT_TEMPLATE_T_U_P1_P2_HPP(class, boost::serialization::singleton, boost::archive::detail::pointer_iserializer, ArchiveIn, QX_BOOST_132_SHARED_PTR_HELPER(T))
    00069 #else // _QX_SUPPORT_BOOST_SERIALIZE_SHARED_PTR_132
    00070 #define QX_BOOST_EXPORT_SERIALIZATION_IMPL_POINTER_ISERIALIZER_BOOST_132_HELPER_HPP(ArchiveIn, ArchiveOut, T) /* Nothing */
    00071 #endif // _QX_SUPPORT_BOOST_SERIALIZE_SHARED_PTR_132
    00072
    00073 #if _QX_SUPPORT_BOOST_SERIALIZE_SHARED_PTR_132
    00074 #define QX_BOOST_EXPORT_SERIALIZATION_IMPL_POINTER_OSERIALIZER_BOOST_132_HELPER_HPP(ArchiveIn, ArchiveOut, T) \
    00075 QX_DLL_EXPORT_TEMPLATE_T_P1_P2_HPP(class, boost::archive::detail::pointer_oserializer, ArchiveOut, QX_BOOST_132_SHARED_PTR_HELPER(T)) \
    00076 QX_DLL_EXPORT_TEMPLATE_T_U_P1_P2_HPP(class, boost::serialization::singleton, boost::archive::detail::pointer_oserializer, ArchiveOut, QX_BOOST_132_SHARED_PTR_HELPER(T))
    00077 #else // _QX_SUPPORT_BOOST_SERIALIZE_SHARED_PTR_132
    00078 #define QX_BOOST_EXPORT_SERIALIZATION_IMPL_POINTER_OSERIALIZER_BOOST_132_HELPER_HPP(ArchiveIn, ArchiveOut, T) /* Nothing */
    00079 #endif // _QX_SUPPORT_BOOST_SERIALIZE_SHARED_PTR_132
    00080
    00081 #define QX_BOOST_EXPORT_SERIALIZATION_IMPL_ISERIALIZER_HPP(ArchiveIn, ArchiveOut, T) \
    00082 QX_DLL_EXPORT_TEMPLATE_T_P1_P2_HPP(class, boost::archive::detail::iserializer, ArchiveIn, T) \
    00083 QX_DLL_EXPORT_TEMPLATE_T_U_P1_P2_HPP(class, boost::serialization::singleton, boost::archive::detail::iserializer, ArchiveIn, T)
    00084
    00085 #define QX_BOOST_EXPORT_SERIALIZATION_IMPL_OSERIALIZER_HPP(ArchiveIn, ArchiveOut, T) \
    00086 QX_DLL_EXPORT_TEMPLATE_T_P1_P2_HPP(class, boost::archive::detail::oserializer, ArchiveOut, T) \
    00087 QX_DLL_EXPORT_TEMPLATE_T_U_P1_P2_HPP(class, boost::serialization::singleton, boost::archive::detail::oserializer, ArchiveOut, T)
    00088
    00089 #define QX_BOOST_EXPORT_SERIALIZATION_IMPL_EXTENDED_TYPE_ID_HPP(T) \
    00090 QX_DLL_EXPORT_TEMPLATE_T_P1_HPP(class, boost::serialization::extended_type_info_typeid, T) \
    00091 QX_DLL_EXPORT_TEMPLATE_T_U_P1_HPP(class, boost::serialization::singleton, boost::serialization::extended_type_info_typeid, T)
    00092
    00093 #define QX_BOOST_EXPORT_SERIALIZATION_IMPL_VOID_CAST_PRIMITIVE_HPP(T) \
    00094 QX_DLL_EXPORT_TEMPLATE_T_P1_P2_HPP(class, boost::serialization::void_cast_detail::void_caster_primitive, T, QX_GET_BASE_CLASS_2(T)) \
    00095 QX_DLL_EXPORT_TEMPLATE_T_U_P1_P2_HPP(class, boost::serialization::singleton, boost::serialization::void_cast_detail::void_caster_primitive, T, QX_GET_BASE_CLASS_2(T))
    00096
    00097 #define QX_BOOST_EXPORT_SERIALIZATION_IMPL_TYPE_INFO_IMPL_HPP(T) \
    00098 QX_DLL_EXPORT_TEMPLATE_T_P1_HPP(struct, boost::serialization::type_info_implementation, T) \
    00099 QX_DLL_EXPORT_TEMPLATE_T_U_P1_HPP(class, boost::serialization::singleton, boost::serialization::type_info_implementation, T)
    00100
    00101 #if (BOOST_VERSION < 104100)
    00102 #define QX_BOOST_EXPORT_SERIALIZATION_SAVE_POINTER_TYPE_HPP(ArchiveIn, ArchiveOut, T) \
    00103 QX_DLL_EXPORT_TEMPLATE_T_P1_P2_HPP(struct, boost::archive::detail::save_pointer_type, ArchiveOut, T *) \
    00104 QX_DLL_EXPORT_TEMPLATE_T_U_P1_P2_HPP(class, boost::serialization::singleton, boost::archive::detail::save_pointer_type, ArchiveOut, T *)
    00105 #else // (BOOST_VERSION < 104100)
    00106 #define QX_BOOST_EXPORT_SERIALIZATION_SAVE_POINTER_TYPE_HPP(ArchiveIn, ArchiveOut, T) /* Nothing */
    00107 #endif // (BOOST_VERSION < 104100)
    00108
    00109 #if (BOOST_VERSION < 104100)
    00110 #define QX_BOOST_EXPORT_SERIALIZATION_SAVE_NON_POINTER_TYPE_HPP(ArchiveIn, ArchiveOut, T) \
    00111 QX_DLL_EXPORT_TEMPLATE_T_P1_P2_HPP(struct, boost::archive::detail::save_non_pointer_type, ArchiveOut, T) \
    00112 QX_DLL_EXPORT_TEMPLATE_T_U_P1_P2_HPP(class, boost::serialization::singleton, boost::archive::detail::save_non_pointer_type, ArchiveOut, T)
    00113 #else // (BOOST_VERSION < 104100)
    00114 #define QX_BOOST_EXPORT_SERIALIZATION_SAVE_NON_POINTER_TYPE_HPP(ArchiveIn, ArchiveOut, T) /* Nothing */
    00115 #endif // (BOOST_VERSION < 104100)
    00116
    00117 #if (BOOST_VERSION < 104100)
    00118 #define QX_BOOST_EXPORT_SERIALIZATION_SAVE_ENUM_TYPE_HPP(ArchiveIn, ArchiveOut, T) \
    00119 QX_DLL_EXPORT_TEMPLATE_T_P1_P2_HPP(struct, boost::archive::detail::save_enum_type, ArchiveOut, T) \
    00120 QX_DLL_EXPORT_TEMPLATE_T_U_P1_P2_HPP(class, boost::serialization::singleton, boost::archive::detail::save_enum_type, ArchiveOut, T)
    00121 #else // (BOOST_VERSION < 104100)
    00122 #define QX_BOOST_EXPORT_SERIALIZATION_SAVE_ENUM_TYPE_HPP(ArchiveIn, ArchiveOut, T) /* Nothing */
    00123 #endif // (BOOST_VERSION < 104100)
    00124
    00125 #if (BOOST_VERSION < 104100)
    00126 #define QX_BOOST_EXPORT_SERIALIZATION_SAVE_ARRAY_TYPE_HPP(ArchiveIn, ArchiveOut, T) \
    00127 QX_DLL_EXPORT_TEMPLATE_T_P1_P2_HPP(struct, boost::archive::detail::save_array_type, ArchiveOut, T) \
    00128 QX_DLL_EXPORT_TEMPLATE_T_U_P1_P2_HPP(class, boost::serialization::singleton, boost::archive::detail::save_array_type, ArchiveOut, T)
    00129 #else // (BOOST_VERSION < 104100)
    00130 #define QX_BOOST_EXPORT_SERIALIZATION_SAVE_ARRAY_TYPE_HPP(ArchiveIn, ArchiveOut, T) /* Nothing */
    00131 #endif // (BOOST_VERSION < 104100)
    00132
    00133 #if (BOOST_VERSION < 104100)
    00134 #define QX_BOOST_EXPORT_SERIALIZATION_LOAD_POINTER_TYPE_HPP(ArchiveIn, ArchiveOut, T) \
    00135 QX_DLL_EXPORT_TEMPLATE_T_P1_P2_HPP(struct, boost::archive::detail::load_pointer_type, ArchiveIn, T *) \
    00136 QX_DLL_EXPORT_TEMPLATE_T_U_P1_P2_HPP(class, boost::serialization::singleton, boost::archive::detail::load_pointer_type, ArchiveIn, T *)
    00137 #else // (BOOST_VERSION < 104100)
    00138 #define QX_BOOST_EXPORT_SERIALIZATION_LOAD_POINTER_TYPE_HPP(ArchiveIn, ArchiveOut, T) /* Nothing */
    00139 #endif // (BOOST_VERSION < 104100)
    00140
    00141 #if (BOOST_VERSION < 104100)
    00142 #define QX_BOOST_EXPORT_SERIALIZATION_LOAD_NON_POINTER_TYPE_HPP(ArchiveIn, ArchiveOut, T) \
    00143 QX_DLL_EXPORT_TEMPLATE_T_P1_P2_HPP(struct, boost::archive::detail::load_non_pointer_type, ArchiveIn, T) \
    00144 QX_DLL_EXPORT_TEMPLATE_T_U_P1_P2_HPP(class, boost::serialization::singleton, boost::archive::detail::load_non_pointer_type, ArchiveIn, T)
    00145 #else // (BOOST_VERSION < 104100)
    00146 #define QX_BOOST_EXPORT_SERIALIZATION_LOAD_NON_POINTER_TYPE_HPP(ArchiveIn, ArchiveOut, T) /* Nothing */
    00147 #endif // (BOOST_VERSION < 104100)
    00148
    00149 #if (BOOST_VERSION < 104100)
    00150 #define QX_BOOST_EXPORT_SERIALIZATION_LOAD_ENUM_TYPE_HPP(ArchiveIn, ArchiveOut, T) \
    00151 QX_DLL_EXPORT_TEMPLATE_T_P1_P2_HPP(struct, boost::archive::detail::load_enum_type, ArchiveIn, T) \
    00152 QX_DLL_EXPORT_TEMPLATE_T_U_P1_P2_HPP(class, boost::serialization::singleton, boost::archive::detail::load_enum_type, ArchiveIn, T)
    00153 #else // (BOOST_VERSION < 104100)
    00154 #define QX_BOOST_EXPORT_SERIALIZATION_LOAD_ENUM_TYPE_HPP(ArchiveIn, ArchiveOut, T) /* Nothing */
    00155 #endif // (BOOST_VERSION < 104100)
    00156
    00157 #if (BOOST_VERSION < 104100)
    00158 #define QX_BOOST_EXPORT_SERIALIZATION_LOAD_ARRAY_TYPE_HPP(ArchiveIn, ArchiveOut, T) \
    00159 QX_DLL_EXPORT_TEMPLATE_T_P1_P2_HPP(struct, boost::archive::detail::load_array_type, ArchiveIn, T) \
    00160 QX_DLL_EXPORT_TEMPLATE_T_U_P1_P2_HPP(class, boost::serialization::singleton, boost::archive::detail::load_array_type, ArchiveIn, T)
    00161 #else // (BOOST_VERSION < 104100)
    00162 #define QX_BOOST_EXPORT_SERIALIZATION_LOAD_ARRAY_TYPE_HPP(ArchiveIn, ArchiveOut, T) /* Nothing */
    00163 #endif // (BOOST_VERSION < 104100)
    00164
    00165 #define QX_BOOST_EXPORT_SERIALIZATION_IMPL_WITH_ARCHIVE_HPP(ArchiveIn, ArchiveOut, T) \
    00166 QX_BOOST_EXPORT_SERIALIZATION_IMPL_ISERIALIZER_HPP(ArchiveIn, ArchiveOut, T) \
    00167 QX_BOOST_EXPORT_SERIALIZATION_IMPL_OSERIALIZER_HPP(ArchiveIn, ArchiveOut, T) \
    00168 QX_BOOST_EXPORT_SERIALIZATION_IMPL_POINTER_ISERIALIZER_HPP(ArchiveIn, ArchiveOut, T) \
    00169 QX_BOOST_EXPORT_SERIALIZATION_IMPL_POINTER_OSERIALIZER_HPP(ArchiveIn, ArchiveOut, T) \
    00170 QX_BOOST_EXPORT_SERIALIZATION_IMPL_POINTER_ISERIALIZER_BOOST_132_HELPER_HPP(ArchiveIn, ArchiveOut, T) \
    00171 QX_BOOST_EXPORT_SERIALIZATION_IMPL_POINTER_OSERIALIZER_BOOST_132_HELPER_HPP(ArchiveIn, ArchiveOut, T) \
    00172 QX_BOOST_EXPORT_SERIALIZATION_SAVE_POINTER_TYPE_HPP(ArchiveIn, ArchiveOut, T) \
    00173 QX_BOOST_EXPORT_SERIALIZATION_LOAD_POINTER_TYPE_HPP(ArchiveIn, ArchiveOut, T)
    00174
    00175 #define QX_BOOST_EXPORT_SERIALIZATION_IMPL_HPP(T) \
    00176 QX_BOOST_EXPORT_SERIALIZATION_IMPL_EXTENDED_TYPE_ID_HPP(T) \
    00177 /*
    00178 QX_BOOST_EXPORT_SERIALIZATION_IMPL_VOID_CAST_PRIMITIVE_HPP(T) \
    00179 QX_BOOST_EXPORT_SERIALIZATION_IMPL_TYPE_INFO_IMPL_HPP(T)
    00180 */
    00181
    00182 #if _QX_SERIALIZE_POLYMORPHIC
    00183 #define QX_BOOST_EXPORT_SERIALIZATION_POLYMORPHIC_HPP(T) \
    00184 QX_BOOST_EXPORT_SERIALIZATION_IMPL_WITH_ARCHIVE_HPP(boost::archive::polymorphic_iarchive, boost::archive::polymorphic_oarchive, T)
    00185 #else // _QX_SERIALIZE_POLYMORPHIC
    00186 #define QX_BOOST_EXPORT_SERIALIZATION_POLYMORPHIC_HPP(T) /* Nothing */
    00187 #endif // _QX_SERIALIZE_POLYMORPHIC
    00188
    00189 #if _QX_SERIALIZE_BINARY
    00190 #define QX_BOOST_EXPORT_SERIALIZATION_BINARY_HPP(T) \
    00191 QX_BOOST_EXPORT_SERIALIZATION_IMPL_WITH_ARCHIVE_HPP(boost::archive::binary_iarchive, boost::archive::binary_oarchive, T)
    00192 #else // _QX_SERIALIZE_BINARY
    00193 #define QX_BOOST_EXPORT_SERIALIZATION_BINARY_HPP(T) /* Nothing */
    00194 #endif // _QX_SERIALIZE_BINARY
    00195
    00196 #if _QX_SERIALIZE_TEXT
    00197 #define QX_BOOST_EXPORT_SERIALIZATION_TEXT_HPP(T) \
    00198 QX_BOOST_EXPORT_SERIALIZATION_IMPL_WITH_ARCHIVE_HPP(boost::archive::text_iarchive, boost::archive::text_oarchive, T)
    00199 #else // _QX_SERIALIZE_TEXT
    00200 #define QX_BOOST_EXPORT_SERIALIZATION_TEXT_HPP(T) /* Nothing */
    00201 #endif // _QX_SERIALIZE_TEXT
    00202
    00203 #if _QX_SERIALIZE_XML
    00204 #define QX_BOOST_EXPORT_SERIALIZATION_XML_HPP(T) \
    00205 QX_BOOST_EXPORT_SERIALIZATION_IMPL_WITH_ARCHIVE_HPP(boost::archive::xml_iarchive, boost::archive::xml_oarchive, T)
    00206 #else // _QX_SERIALIZE_XML
    00207 #define QX_BOOST_EXPORT_SERIALIZATION_XML_HPP(T) /* Nothing */
    00208 #endif // _QX_SERIALIZE_XML
    00209
    00210 #if _QX_SERIALIZE_PORTABLE_BINARY
    00211 #define QX_BOOST_EXPORT_SERIALIZATION_PORTABLE_BINARY_HPP(T) \
    00212 QX_BOOST_EXPORT_SERIALIZATION_IMPL_WITH_ARCHIVE_HPP(eos::portable_iarchive, eos::portable_oarchive, T)
    00213 #else // _QX_SERIALIZE_PORTABLE_BINARY
    00214 #define QX_BOOST_EXPORT_SERIALIZATION_PORTABLE_BINARY_HPP(T) /* Nothing */
    00215 #endif // _QX_SERIALIZE_PORTABLE_BINARY
    00216
    00217 #if _QX_SERIALIZE_WIDE_BINARY
    00218 #define QX_BOOST_EXPORT_SERIALIZATION_WIDE_BINARY_HPP(T) \
    00219 QX_BOOST_EXPORT_SERIALIZATION_IMPL_WITH_ARCHIVE_HPP(boost::archive::binary_wiarchive, boost::archive::binary_woarchive, T)
    00220 #else // _QX_SERIALIZE_WIDE_BINARY
    00221 #define QX_BOOST_EXPORT_SERIALIZATION_WIDE_BINARY_HPP(T) /* Nothing */
    00222 #endif // _QX_SERIALIZE_WIDE_BINARY
    00223
    00224 #if _QX_SERIALIZE_WIDE_TEXT
    00225 #define QX_BOOST_EXPORT_SERIALIZATION_WIDE_TEXT_HPP(T) \
    00226 QX_BOOST_EXPORT_SERIALIZATION_IMPL_WITH_ARCHIVE_HPP(boost::archive::text_wiarchive, boost::archive::text_woarchive, T)
    00227 #else // _QX_SERIALIZE_WIDE_TEXT
    00228 #define QX_BOOST_EXPORT_SERIALIZATION_WIDE_TEXT_HPP(T) /* Nothing */
    00229 #endif // _QX_SERIALIZE_WIDE_TEXT
    00230
    00231 #if _QX_SERIALIZE_WIDE_XML
    00232 #define QX_BOOST_EXPORT_SERIALIZATION_WIDE_XML_HPP(T) \
    00233 QX_BOOST_EXPORT_SERIALIZATION_IMPL_WITH_ARCHIVE_HPP(boost::archive::xml_wiarchive, boost::archive::xml_woarchive, T)
    00234 #else // _QX_SERIALIZE_WIDE_XML
    00235 #define QX_BOOST_EXPORT_SERIALIZATION_WIDE_XML_HPP(T) /* Nothing */
    00236 #endif // _QX_SERIALIZE_WIDE_XML
    00237
    00238 #define QX_BOOST_EXPORT_SERIALIZATION_HPP(T) \
    00239 QX_BOOST_EXPORT_SERIALIZATION_IMPL_HPP(T) \
    00240 QX_BOOST_EXPORT_SERIALIZATION_POLYMORPHIC_HPP(T) \
    00241 QX_BOOST_EXPORT_SERIALIZATION_BINARY_HPP(T) \
    00242 QX_BOOST_EXPORT_SERIALIZATION_TEXT_HPP(T) \
    00243 QX_BOOST_EXPORT_SERIALIZATION_XML_HPP(T) \
    00244 QX_BOOST_EXPORT_SERIALIZATION_PORTABLE_BINARY_HPP(T) \
    00245 QX_BOOST_EXPORT_SERIALIZATION_WIDE_BINARY_HPP(T) \
    00246 QX_BOOST_EXPORT_SERIALIZATION_WIDE_TEXT_HPP(T) \
    00247 QX_BOOST_EXPORT_SERIALIZATION_WIDE_XML_HPP(T)
    00248
    00249 #else // _QX_USE_EXPORT_DLL_BOOST_SERIALIZATION_SINGLETON
    00250
    00251 #define QX_BOOST_EXPORT_SERIALIZATION_HPP(T) /* Nothing */
    00252
    00253 #endif // _QX_USE_EXPORT_DLL_BOOST_SERIALIZATION_SINGLETON
    00254 #endif // _QX_EXPORT_DLL_MACRO_HPP_H_