| QxOrm 1.4.2 C++ Object Relational Mapping library

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

- File List
- File Members

QxExportDllMacroCpp.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 #ifdef _QX_ENABLE_BOOST_SERIALIZATION
    00033 #ifndef _QX_EXPORT_DLL_MACRO_CPP_H_
    00034 #define _QX_EXPORT_DLL_MACRO_CPP_H_
    00035
    00036 #ifdef _MSC_VER
    00037 #pragma once
    00038 #endif
    00039
    00040 #include <QxCommon/QxConfig.h>
    00041
    00042 #include <QxSerialize/boost/QxExportDllMacroHpp.h>
    00043
    00044 #if _QX_USE_EXPORT_DLL_BOOST_SERIALIZATION_SINGLETON
    00045
    00046 #define QX_BOOST_EXPORT_SERIALIZATION_IMPL_POINTER_ISERIALIZER_CPP(ArchiveIn, ArchiveOut, T) \
    00047 QX_DLL_EXPORT_TEMPLATE_T_P1_P2_CPP(class, boost::archive::detail::pointer_iserializer, ArchiveIn, T) \
    00048 QX_DLL_EXPORT_TEMPLATE_T_U_P1_P2_CPP(class, boost::serialization::singleton, boost::archive::detail::pointer_iserializer, ArchiveIn, T)
    00049
    00050 #define QX_BOOST_EXPORT_SERIALIZATION_IMPL_POINTER_OSERIALIZER_CPP(ArchiveIn, ArchiveOut, T) \
    00051 QX_DLL_EXPORT_TEMPLATE_T_P1_P2_CPP(class, boost::archive::detail::pointer_oserializer, ArchiveOut, T) \
    00052 QX_DLL_EXPORT_TEMPLATE_T_U_P1_P2_CPP(class, boost::serialization::singleton, boost::archive::detail::pointer_oserializer, ArchiveOut, T)
    00053
    00054 #if _QX_SUPPORT_BOOST_SERIALIZE_SHARED_PTR_132
    00055 #define QX_BOOST_EXPORT_SERIALIZATION_IMPL_POINTER_ISERIALIZER_BOOST_132_HELPER_CPP(ArchiveIn, ArchiveOut, T) \
    00056 QX_DLL_EXPORT_TEMPLATE_T_P1_P2_CPP(class, boost::archive::detail::pointer_iserializer, ArchiveIn, QX_BOOST_132_SHARED_PTR_HELPER(T)) \
    00057 QX_DLL_EXPORT_TEMPLATE_T_U_P1_P2_CPP(class, boost::serialization::singleton, boost::archive::detail::pointer_iserializer, ArchiveIn, QX_BOOST_132_SHARED_PTR_HELPER(T))
    00058 #else // _QX_SUPPORT_BOOST_SERIALIZE_SHARED_PTR_132
    00059 #define QX_BOOST_EXPORT_SERIALIZATION_IMPL_POINTER_ISERIALIZER_BOOST_132_HELPER_CPP(ArchiveIn, ArchiveOut, T) /* Nothing */
    00060 #endif // _QX_SUPPORT_BOOST_SERIALIZE_SHARED_PTR_132
    00061
    00062 #if _QX_SUPPORT_BOOST_SERIALIZE_SHARED_PTR_132
    00063 #define QX_BOOST_EXPORT_SERIALIZATION_IMPL_POINTER_OSERIALIZER_BOOST_132_HELPER_CPP(ArchiveIn, ArchiveOut, T) \
    00064 QX_DLL_EXPORT_TEMPLATE_T_P1_P2_CPP(class, boost::archive::detail::pointer_oserializer, ArchiveOut, QX_BOOST_132_SHARED_PTR_HELPER(T)) \
    00065 QX_DLL_EXPORT_TEMPLATE_T_U_P1_P2_CPP(class, boost::serialization::singleton, boost::archive::detail::pointer_oserializer, ArchiveOut, QX_BOOST_132_SHARED_PTR_HELPER(T))
    00066 #else // _QX_SUPPORT_BOOST_SERIALIZE_SHARED_PTR_132
    00067 #define QX_BOOST_EXPORT_SERIALIZATION_IMPL_POINTER_OSERIALIZER_BOOST_132_HELPER_CPP(ArchiveIn, ArchiveOut, T) /* Nothing */
    00068 #endif // _QX_SUPPORT_BOOST_SERIALIZE_SHARED_PTR_132
    00069
    00070 #define QX_BOOST_EXPORT_SERIALIZATION_IMPL_ISERIALIZER_CPP(ArchiveIn, ArchiveOut, T) \
    00071 QX_DLL_EXPORT_TEMPLATE_T_P1_P2_CPP(class, boost::archive::detail::iserializer, ArchiveIn, T) \
    00072 QX_DLL_EXPORT_TEMPLATE_T_U_P1_P2_CPP(class, boost::serialization::singleton, boost::archive::detail::iserializer, ArchiveIn, T)
    00073
    00074 #define QX_BOOST_EXPORT_SERIALIZATION_IMPL_OSERIALIZER_CPP(ArchiveIn, ArchiveOut, T) \
    00075 QX_DLL_EXPORT_TEMPLATE_T_P1_P2_CPP(class, boost::archive::detail::oserializer, ArchiveOut, T) \
    00076 QX_DLL_EXPORT_TEMPLATE_T_U_P1_P2_CPP(class, boost::serialization::singleton, boost::archive::detail::oserializer, ArchiveOut, T)
    00077
    00078 #define QX_BOOST_EXPORT_SERIALIZATION_IMPL_EXTENDED_TYPE_ID_CPP(T) \
    00079 QX_DLL_EXPORT_TEMPLATE_T_P1_CPP(class, boost::serialization::extended_type_info_typeid, T) \
    00080 QX_DLL_EXPORT_TEMPLATE_T_U_P1_CPP(class, boost::serialization::singleton, boost::serialization::extended_type_info_typeid, T)
    00081
    00082 #define QX_BOOST_EXPORT_SERIALIZATION_IMPL_VOID_CAST_PRIMITIVE_CPP(T) \
    00083 QX_DLL_EXPORT_TEMPLATE_T_P1_P2_CPP(class, boost::serialization::void_cast_detail::void_caster_primitive, T, QX_GET_BASE_CLASS_2(T)) \
    00084 QX_DLL_EXPORT_TEMPLATE_T_U_P1_P2_CPP(class, boost::serialization::singleton, boost::serialization::void_cast_detail::void_caster_primitive, T, QX_GET_BASE_CLASS_2(T))
    00085
    00086 #define QX_BOOST_EXPORT_SERIALIZATION_IMPL_TYPE_INFO_IMPL_CPP(T) \
    00087 QX_DLL_EXPORT_TEMPLATE_T_P1_CPP(struct, boost::serialization::type_info_implementation, T) \
    00088 QX_DLL_EXPORT_TEMPLATE_T_U_P1_CPP(class, boost::serialization::singleton, boost::serialization::type_info_implementation, T)
    00089
    00090 #if (BOOST_VERSION < 104100)
    00091 #define QX_BOOST_EXPORT_SERIALIZATION_SAVE_POINTER_TYPE_CPP(ArchiveIn, ArchiveOut, T) \
    00092 QX_DLL_EXPORT_TEMPLATE_T_P1_P2_CPP(struct, boost::archive::detail::save_pointer_type, ArchiveOut, T *) \
    00093 QX_DLL_EXPORT_TEMPLATE_T_U_P1_P2_CPP(class, boost::serialization::singleton, boost::archive::detail::save_pointer_type, ArchiveOut, T *)
    00094 #else // (BOOST_VERSION < 104100)
    00095 #define QX_BOOST_EXPORT_SERIALIZATION_SAVE_POINTER_TYPE_CPP(ArchiveIn, ArchiveOut, T) /* Nothing */
    00096 #endif // (BOOST_VERSION < 104100)
    00097
    00098 #if (BOOST_VERSION < 104100)
    00099 #define QX_BOOST_EXPORT_SERIALIZATION_SAVE_NON_POINTER_TYPE_CPP(ArchiveIn, ArchiveOut, T) \
    00100 QX_DLL_EXPORT_TEMPLATE_T_P1_P2_CPP(struct, boost::archive::detail::save_non_pointer_type, ArchiveOut, T) \
    00101 QX_DLL_EXPORT_TEMPLATE_T_U_P1_P2_CPP(class, boost::serialization::singleton, boost::archive::detail::save_non_pointer_type, ArchiveOut, T)
    00102 #else // (BOOST_VERSION < 104100)
    00103 #define QX_BOOST_EXPORT_SERIALIZATION_SAVE_NON_POINTER_TYPE_CPP(ArchiveIn, ArchiveOut, T) /* Nothing */
    00104 #endif // (BOOST_VERSION < 104100)
    00105
    00106 #if (BOOST_VERSION < 104100)
    00107 #define QX_BOOST_EXPORT_SERIALIZATION_SAVE_ENUM_TYPE_CPP(ArchiveIn, ArchiveOut, T) \
    00108 QX_DLL_EXPORT_TEMPLATE_T_P1_P2_CPP(struct, boost::archive::detail::save_enum_type, ArchiveOut, T) \
    00109 QX_DLL_EXPORT_TEMPLATE_T_U_P1_P2_CPP(class, boost::serialization::singleton, boost::archive::detail::save_enum_type, ArchiveOut, T)
    00110 #else // (BOOST_VERSION < 104100)
    00111 #define QX_BOOST_EXPORT_SERIALIZATION_SAVE_ENUM_TYPE_CPP(ArchiveIn, ArchiveOut, T) /* Nothing */
    00112 #endif // (BOOST_VERSION < 104100)
    00113
    00114 #if (BOOST_VERSION < 104100)
    00115 #define QX_BOOST_EXPORT_SERIALIZATION_SAVE_ARRAY_TYPE_CPP(ArchiveIn, ArchiveOut, T) \
    00116 QX_DLL_EXPORT_TEMPLATE_T_P1_P2_CPP(struct, boost::archive::detail::save_array_type, ArchiveOut, T) \
    00117 QX_DLL_EXPORT_TEMPLATE_T_U_P1_P2_CPP(class, boost::serialization::singleton, boost::archive::detail::save_array_type, ArchiveOut, T)
    00118 #else // (BOOST_VERSION < 104100)
    00119 #define QX_BOOST_EXPORT_SERIALIZATION_SAVE_ARRAY_TYPE_CPP(ArchiveIn, ArchiveOut, T) /* Nothing */
    00120 #endif // (BOOST_VERSION < 104100)
    00121
    00122 #if (BOOST_VERSION < 104100)
    00123 #define QX_BOOST_EXPORT_SERIALIZATION_LOAD_POINTER_TYPE_CPP(ArchiveIn, ArchiveOut, T) \
    00124 QX_DLL_EXPORT_TEMPLATE_T_P1_P2_CPP(struct, boost::archive::detail::load_pointer_type, ArchiveIn, T *) \
    00125 QX_DLL_EXPORT_TEMPLATE_T_U_P1_P2_CPP(class, boost::serialization::singleton, boost::archive::detail::load_pointer_type, ArchiveIn, T *)
    00126 #else // (BOOST_VERSION < 104100)
    00127 #define QX_BOOST_EXPORT_SERIALIZATION_LOAD_POINTER_TYPE_CPP(ArchiveIn, ArchiveOut, T) /* Nothing */
    00128 #endif // (BOOST_VERSION < 104100)
    00129
    00130 #if (BOOST_VERSION < 104100)
    00131 #define QX_BOOST_EXPORT_SERIALIZATION_LOAD_NON_POINTER_TYPE_CPP(ArchiveIn, ArchiveOut, T) \
    00132 QX_DLL_EXPORT_TEMPLATE_T_P1_P2_CPP(struct, boost::archive::detail::load_non_pointer_type, ArchiveIn, T) \
    00133 QX_DLL_EXPORT_TEMPLATE_T_U_P1_P2_CPP(class, boost::serialization::singleton, boost::archive::detail::load_non_pointer_type, ArchiveIn, T)
    00134 #else // (BOOST_VERSION < 104100)
    00135 #define QX_BOOST_EXPORT_SERIALIZATION_LOAD_NON_POINTER_TYPE_CPP(ArchiveIn, ArchiveOut, T) /* Nothing */
    00136 #endif // (BOOST_VERSION < 104100)
    00137
    00138 #if (BOOST_VERSION < 104100)
    00139 #define QX_BOOST_EXPORT_SERIALIZATION_LOAD_ENUM_TYPE_CPP(ArchiveIn, ArchiveOut, T) \
    00140 QX_DLL_EXPORT_TEMPLATE_T_P1_P2_CPP(struct, boost::archive::detail::load_enum_type, ArchiveIn, T) \
    00141 QX_DLL_EXPORT_TEMPLATE_T_U_P1_P2_CPP(class, boost::serialization::singleton, boost::archive::detail::load_enum_type, ArchiveIn, T)
    00142 #else // (BOOST_VERSION < 104100)
    00143 #define QX_BOOST_EXPORT_SERIALIZATION_LOAD_ENUM_TYPE_CPP(ArchiveIn, ArchiveOut, T) /* Nothing */
    00144 #endif // (BOOST_VERSION < 104100)
    00145
    00146 #if (BOOST_VERSION < 104100)
    00147 #define QX_BOOST_EXPORT_SERIALIZATION_LOAD_ARRAY_TYPE_CPP(ArchiveIn, ArchiveOut, T) \
    00148 QX_DLL_EXPORT_TEMPLATE_T_P1_P2_CPP(struct, boost::archive::detail::load_array_type, ArchiveIn, T) \
    00149 QX_DLL_EXPORT_TEMPLATE_T_U_P1_P2_CPP(class, boost::serialization::singleton, boost::archive::detail::load_array_type, ArchiveIn, T)
    00150 #else // (BOOST_VERSION < 104100)
    00151 #define QX_BOOST_EXPORT_SERIALIZATION_LOAD_ARRAY_TYPE_CPP(ArchiveIn, ArchiveOut, T) /* Nothing */
    00152 #endif // (BOOST_VERSION < 104100)
    00153
    00154 #define QX_BOOST_EXPORT_SERIALIZATION_IMPL_WITH_ARCHIVE_CPP(ArchiveIn, ArchiveOut, T) \
    00155 QX_BOOST_EXPORT_SERIALIZATION_IMPL_ISERIALIZER_CPP(ArchiveIn, ArchiveOut, T) \
    00156 QX_BOOST_EXPORT_SERIALIZATION_IMPL_OSERIALIZER_CPP(ArchiveIn, ArchiveOut, T) \
    00157 QX_BOOST_EXPORT_SERIALIZATION_IMPL_POINTER_ISERIALIZER_CPP(ArchiveIn, ArchiveOut, T) \
    00158 QX_BOOST_EXPORT_SERIALIZATION_IMPL_POINTER_OSERIALIZER_CPP(ArchiveIn, ArchiveOut, T) \
    00159 QX_BOOST_EXPORT_SERIALIZATION_IMPL_POINTER_ISERIALIZER_BOOST_132_HELPER_CPP(ArchiveIn, ArchiveOut, T) \
    00160 QX_BOOST_EXPORT_SERIALIZATION_IMPL_POINTER_OSERIALIZER_BOOST_132_HELPER_CPP(ArchiveIn, ArchiveOut, T) \
    00161 QX_BOOST_EXPORT_SERIALIZATION_SAVE_POINTER_TYPE_CPP(ArchiveIn, ArchiveOut, T) \
    00162 QX_BOOST_EXPORT_SERIALIZATION_LOAD_POINTER_TYPE_CPP(ArchiveIn, ArchiveOut, T)
    00163
    00164 #define QX_BOOST_EXPORT_SERIALIZATION_IMPL_CPP(T) \
    00165 QX_BOOST_EXPORT_SERIALIZATION_IMPL_EXTENDED_TYPE_ID_CPP(T) \
    00166 /*
    00167 QX_BOOST_EXPORT_SERIALIZATION_IMPL_VOID_CAST_PRIMITIVE_CPP(T) \
    00168 QX_BOOST_EXPORT_SERIALIZATION_IMPL_TYPE_INFO_IMPL_CPP(T)
    00169 */
    00170
    00171 #if _QX_SERIALIZE_POLYMORPHIC
    00172 #define QX_BOOST_EXPORT_SERIALIZATION_POLYMORPHIC_CPP(T) \
    00173 QX_BOOST_EXPORT_SERIALIZATION_IMPL_WITH_ARCHIVE_CPP(boost::archive::polymorphic_iarchive, boost::archive::polymorphic_oarchive, T)
    00174 #else // _QX_SERIALIZE_POLYMORPHIC
    00175 #define QX_BOOST_EXPORT_SERIALIZATION_POLYMORPHIC_CPP(T) /* Nothing */
    00176 #endif // _QX_SERIALIZE_POLYMORPHIC
    00177
    00178 #if _QX_SERIALIZE_BINARY
    00179 #define QX_BOOST_EXPORT_SERIALIZATION_BINARY_CPP(T) \
    00180 QX_BOOST_EXPORT_SERIALIZATION_IMPL_WITH_ARCHIVE_CPP(boost::archive::binary_iarchive, boost::archive::binary_oarchive, T)
    00181 #else // _QX_SERIALIZE_BINARY
    00182 #define QX_BOOST_EXPORT_SERIALIZATION_BINARY_CPP(T) /* Nothing */
    00183 #endif // _QX_SERIALIZE_BINARY
    00184
    00185 #if _QX_SERIALIZE_TEXT
    00186 #define QX_BOOST_EXPORT_SERIALIZATION_TEXT_CPP(T) \
    00187 QX_BOOST_EXPORT_SERIALIZATION_IMPL_WITH_ARCHIVE_CPP(boost::archive::text_iarchive, boost::archive::text_oarchive, T)
    00188 #else // _QX_SERIALIZE_TEXT
    00189 #define QX_BOOST_EXPORT_SERIALIZATION_TEXT_CPP(T) /* Nothing */
    00190 #endif // _QX_SERIALIZE_TEXT
    00191
    00192 #if _QX_SERIALIZE_XML
    00193 #define QX_BOOST_EXPORT_SERIALIZATION_XML_CPP(T) \
    00194 QX_BOOST_EXPORT_SERIALIZATION_IMPL_WITH_ARCHIVE_CPP(boost::archive::xml_iarchive, boost::archive::xml_oarchive, T)
    00195 #else // _QX_SERIALIZE_XML
    00196 #define QX_BOOST_EXPORT_SERIALIZATION_XML_CPP(T) /* Nothing */
    00197 #endif // _QX_SERIALIZE_XML
    00198
    00199 #if _QX_SERIALIZE_PORTABLE_BINARY
    00200 #define QX_BOOST_EXPORT_SERIALIZATION_PORTABLE_BINARY_CPP(T) \
    00201 QX_BOOST_EXPORT_SERIALIZATION_IMPL_WITH_ARCHIVE_CPP(eos::portable_iarchive, eos::portable_oarchive, T)
    00202 #else // _QX_SERIALIZE_PORTABLE_BINARY
    00203 #define QX_BOOST_EXPORT_SERIALIZATION_PORTABLE_BINARY_CPP(T) /* Nothing */
    00204 #endif // _QX_SERIALIZE_PORTABLE_BINARY
    00205
    00206 #if _QX_SERIALIZE_WIDE_BINARY
    00207 #define QX_BOOST_EXPORT_SERIALIZATION_WIDE_BINARY_CPP(T) \
    00208 QX_BOOST_EXPORT_SERIALIZATION_IMPL_WITH_ARCHIVE_CPP(boost::archive::binary_wiarchive, boost::archive::binary_woarchive, T)
    00209 #else // _QX_SERIALIZE_WIDE_BINARY
    00210 #define QX_BOOST_EXPORT_SERIALIZATION_WIDE_BINARY_CPP(T) /* Nothing */
    00211 #endif // _QX_SERIALIZE_WIDE_BINARY
    00212
    00213 #if _QX_SERIALIZE_WIDE_TEXT
    00214 #define QX_BOOST_EXPORT_SERIALIZATION_WIDE_TEXT_CPP(T) \
    00215 QX_BOOST_EXPORT_SERIALIZATION_IMPL_WITH_ARCHIVE_CPP(boost::archive::text_wiarchive, boost::archive::text_woarchive, T)
    00216 #else // _QX_SERIALIZE_WIDE_TEXT
    00217 #define QX_BOOST_EXPORT_SERIALIZATION_WIDE_TEXT_CPP(T) /* Nothing */
    00218 #endif // _QX_SERIALIZE_WIDE_TEXT
    00219
    00220 #if _QX_SERIALIZE_WIDE_XML
    00221 #define QX_BOOST_EXPORT_SERIALIZATION_WIDE_XML_CPP(T) \
    00222 QX_BOOST_EXPORT_SERIALIZATION_IMPL_WITH_ARCHIVE_CPP(boost::archive::xml_wiarchive, boost::archive::xml_woarchive, T)
    00223 #else // _QX_SERIALIZE_WIDE_XML
    00224 #define QX_BOOST_EXPORT_SERIALIZATION_WIDE_XML_CPP(T) /* Nothing */
    00225 #endif // _QX_SERIALIZE_WIDE_XML
    00226
    00227 #define QX_BOOST_EXPORT_SERIALIZATION_CPP(T) \
    00228 QX_BOOST_EXPORT_SERIALIZATION_IMPL_CPP(T) \
    00229 QX_BOOST_EXPORT_SERIALIZATION_POLYMORPHIC_CPP(T) \
    00230 QX_BOOST_EXPORT_SERIALIZATION_BINARY_CPP(T) \
    00231 QX_BOOST_EXPORT_SERIALIZATION_TEXT_CPP(T) \
    00232 QX_BOOST_EXPORT_SERIALIZATION_XML_CPP(T) \
    00233 QX_BOOST_EXPORT_SERIALIZATION_PORTABLE_BINARY_CPP(T) \
    00234 QX_BOOST_EXPORT_SERIALIZATION_WIDE_BINARY_CPP(T) \
    00235 QX_BOOST_EXPORT_SERIALIZATION_WIDE_TEXT_CPP(T) \
    00236 QX_BOOST_EXPORT_SERIALIZATION_WIDE_XML_CPP(T)
    00237
    00238 #else // _QX_USE_EXPORT_DLL_BOOST_SERIALIZATION_SINGLETON
    00239
    00240 #define QX_BOOST_EXPORT_SERIALIZATION_CPP(T) /* Nothing */
    00241
    00242 #endif // _QX_USE_EXPORT_DLL_BOOST_SERIALIZATION_SINGLETON
    00243 #endif // _QX_EXPORT_DLL_MACRO_CPP_H_
    00244 #endif // _QX_ENABLE_BOOST_SERIALIZATION