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