QxOrm  1.5.0
C++ Object Relational Mapping library
QxRegisterInternalHelper.h
Go to the documentation of this file.
00001 /****************************************************************************
00002 **
00003 ** https://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_REGISTER_INTERNAL_HELPER_H_
00033 #define _QX_REGISTER_INTERNAL_HELPER_H_
00034 
00035 #ifdef _MSC_VER
00036 #pragma once
00037 #endif
00038 
00039 #ifdef _QX_ENABLE_BOOST_SERIALIZATION
00040 #include <boost/serialization/serialization.hpp>
00041 #include <boost/serialization/split_free.hpp>
00042 #include <boost/serialization/nvp.hpp>
00043 #include <boost/serialization/utility.hpp>
00044 #endif // _QX_ENABLE_BOOST_SERIALIZATION
00045 
00046 #include <QxConvert/QxConvert.h>
00047 #include <QxConvert/QxConvert_Impl.h>
00048 #include <QxConvert/QxConvert_Export.h>
00049 
00050 #include <QxRegister/QxClass.h>
00051 #include <QxRegister/QxRegister.h>
00052 #include <QxRegister/QxVersion.h>
00053 
00054 #include <QxSerialize/QxSerializeFastCompil.h>
00055 
00056 #include <QxTraits/get_class_name.h>
00057 
00058 #include <QxDao/IxPersistable.h>
00059 
00060 #ifdef _QX_ENABLE_BOOST_SERIALIZATION
00061 
00062 #define QX_REGISTER_INTERNAL_HELPER_HPP(dllImportExport, className, version) \
00063 QX_CLASS_VERSION(className, version) \
00064 QX_REGISTER_CLASS_NAME(className) \
00065 QX_REGISTER_CLASS_MAPPING_FCT_HPP(dllImportExport, className) \
00066 QX_SERIALIZE_FAST_COMPIL_SAVE_LOAD_HPP(dllImportExport, className) \
00067 QX_BOOST_EXPORT_SERIALIZATION_FAST_COMPIL_HPP(className) \
00068 QX_REGISTER_BOOST_SERIALIZE_HELPER(className)
00069 
00070 #define QX_REGISTER_INTERNAL_HELPER_START_FILE_CPP(className) \
00071 QX_REGISTER_CLASS_MAPPING_FCT_EMPTY_CPP(className) \
00072 QX_BOOST_EXPORT_SERIALIZATION_FAST_COMPIL_CPP(className)
00073 
00074 #define QX_REGISTER_INTERNAL_HELPER_END_FILE_CPP(className) \
00075 QX_SERIALIZE_FAST_COMPIL_SAVE_LOAD_CPP(className) \
00076 QX_REGISTER_BOOST_SERIALIZE_HELPER_CPP(className)
00077 
00078 #else // _QX_ENABLE_BOOST_SERIALIZATION
00079 
00080 #define QX_REGISTER_INTERNAL_HELPER_HPP(dllImportExport, className, version) \
00081 QX_CLASS_VERSION(className, version) \
00082 QX_REGISTER_CLASS_NAME(className) \
00083 QX_REGISTER_CLASS_MAPPING_FCT_HPP(dllImportExport, className)
00084 
00085 #define QX_REGISTER_INTERNAL_HELPER_START_FILE_CPP(className) \
00086 QX_REGISTER_CLASS_MAPPING_FCT_EMPTY_CPP(className)
00087 
00088 #define QX_REGISTER_INTERNAL_HELPER_END_FILE_CPP(className) /* Nothing */
00089 
00090 #endif // _QX_ENABLE_BOOST_SERIALIZATION
00091 
00092 #endif // _QX_REGISTER_INTERNAL_HELPER_H_