CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Instantiate.h
Go to the documentation of this file.
1 #pragma once
2 
4 
5 // Instantiate serialization code. It works with template
6 // arguments as well (use one for each specialization)
7 #define COND_SERIALIZATION_INSTANTIATE(...) \
8  template void __VA_ARGS__::serialize<cond::serialization::InputArchive >(cond::serialization::InputArchive & ar, const unsigned int); \
9  template void __VA_ARGS__::serialize<cond::serialization::OutputArchive >(cond::serialization::OutputArchive & ar, const unsigned int); \
10  template void __VA_ARGS__::serialize<cond::serialization::InputArchiveXML >(cond::serialization::InputArchiveXML & ar, const unsigned int); \
11  template void __VA_ARGS__::serialize<cond::serialization::OutputArchiveXML>(cond::serialization::OutputArchiveXML & ar, const unsigned int);
12 
13 // Polymorphic classes must be registered as such
14 #define COND_SERIALIZATION_REGISTER_POLYMORPHIC(T) \
15  BOOST_CLASS_EXPORT_IMPLEMENT(T);
16