Lunchbox  1.16.0
Multi-threaded C++ toolbox library for all application developers creating high-performance multi-threaded programs.
serializable.h
1 
2 /* Copyright (c) 2012-2013, EPFL/Blue Brain Project
3  * Daniel Nachbaur <daniel.nachbaur@epfl.ch>
4  *
5  * This file is part of Lunchbox <https://github.com/Eyescale/Lunchbox>
6  *
7  * This library is free software; you can redistribute it and/or modify it under
8  * the terms of the GNU Lesser General Public License version 3.0 as published
9  * by the Free Software Foundation.
10  *
11  * This library is distributed in the hope that it will be useful, but WITHOUT
12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13  * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
14  * details.
15  *
16  * You should have received a copy of the GNU Lesser General Public License
17  * along with this library; if not, write to the Free Software Foundation, Inc.,
18  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19  */
20 
21 #ifndef LUNCHBOX_SERIALIZABLE_H
22 #define LUNCHBOX_SERIALIZABLE_H
23 
24 #include <lunchbox/defines.h>
25 
26 #include <boost/serialization/access.hpp>
27 #include <boost/serialization/split_member.hpp>
28 
30 #define LB_SERIALIZABLE \
31  friend class boost::serialization::access; \
32  template <class Archive> \
33  void save(Archive& ar, const unsigned int version) const; \
34  template <class Archive> \
35  void load(Archive& ar, const unsigned int version); \
36  BOOST_SERIALIZATION_SPLIT_MEMBER()
37 
38 #endif // LUNCHBOX_SERIALIZABLE_H
Includes compile-time defines of Lunchbox.