CMS 3D CMS Logo

Instantiate.h
Go to the documentation of this file.
1 #pragma once
2 
4 
5 #include <boost/serialization/export.hpp>
6 
7 // Instantiate serialization code. It works with template
8 // arguments as well (use one for each specialization)
9 #define COND_SERIALIZATION_INSTANTIATE(...) \
10  template void __VA_ARGS__::serialize<cond::serialization::InputArchive >(cond::serialization::InputArchive & ar, const unsigned int); \
11  template void __VA_ARGS__::serialize<cond::serialization::OutputArchive >(cond::serialization::OutputArchive & ar, const unsigned int); \
12  template void __VA_ARGS__::serialize<cond::serialization::InputArchiveXML >(cond::serialization::InputArchiveXML & ar, const unsigned int); \
13  template void __VA_ARGS__::serialize<cond::serialization::OutputArchiveXML>(cond::serialization::OutputArchiveXML & ar, const unsigned int);
14 
15 // Polymorphic classes must be registered as such
16 #define COND_SERIALIZATION_REGISTER_POLYMORPHIC(T) \
17  BOOST_CLASS_EXPORT_IMPLEMENT(T);
18