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, \
11  const unsigned int); \
12  template void __VA_ARGS__::serialize<cond::serialization::OutputArchive>(cond::serialization::OutputArchive & ar, \
13  const unsigned int); \
14  template void __VA_ARGS__::serialize<cond::serialization::InputArchiveXML>( \
15  cond::serialization::InputArchiveXML & ar, const unsigned int); \
16  template void __VA_ARGS__::serialize<cond::serialization::OutputArchiveXML>( \
17  cond::serialization::OutputArchiveXML & ar, const unsigned int);
18 
19 // Polymorphic classes must be registered as such
20 #define COND_SERIALIZATION_REGISTER_POLYMORPHIC(T) BOOST_CLASS_EXPORT_IMPLEMENT(T);
Archive.h