36 #ifndef SERIALIZABLESINGLETON_HPP_ 37 #define SERIALIZABLESINGLETON_HPP_ 39 #include <boost/utility.hpp> 41 #include <boost/serialization/split_member.hpp> 79 template<
class SINGLETON_CLASS>
92 friend class boost::serialization::access;
100 template<
class Archive>
101 void save(Archive & archive,
const unsigned int version)
const 103 SINGLETON_CLASS* p_instance = SINGLETON_CLASS::Instance();
104 archive & *p_instance;
105 archive & p_instance;
114 template<
class Archive>
115 void load(Archive & archive,
const unsigned int version)
117 SINGLETON_CLASS* p_instance = SINGLETON_CLASS::Instance();
118 archive & *p_instance;
119 archive & p_instance;
128 BOOST_SERIALIZATION_SPLIT_MEMBER()
131 #endif // SERIALIZABLESINGLETON_HPP_
void save(Archive &archive, const unsigned int version) const
SerializableSingleton< SINGLETON_CLASS > * GetSerializationWrapper() const
void load(Archive &archive, const unsigned int version)