Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:02:32

0001 #pragma once
0002 
0003 #include "CondFormats/Serialization/interface/Archive.h"
0004 
0005 #include <boost/serialization/export.hpp>
0006 
0007 // Instantiate serialization code. It works with template
0008 // arguments as well (use one for each specialization)
0009 #define COND_SERIALIZATION_INSTANTIATE(...)                                                                         \
0010   template void __VA_ARGS__::serialize<cond::serialization::InputArchive>(cond::serialization::InputArchive & ar,   \
0011                                                                           const unsigned int);                      \
0012   template void __VA_ARGS__::serialize<cond::serialization::OutputArchive>(cond::serialization::OutputArchive & ar, \
0013                                                                            const unsigned int);                     \
0014   template void __VA_ARGS__::serialize<cond::serialization::InputArchiveXML>(                                       \
0015       cond::serialization::InputArchiveXML & ar, const unsigned int);                                               \
0016   template void __VA_ARGS__::serialize<cond::serialization::OutputArchiveXML>(                                      \
0017       cond::serialization::OutputArchiveXML & ar, const unsigned int);
0018 
0019 // Polymorphic classes must be registered as such
0020 #define COND_SERIALIZATION_REGISTER_POLYMORPHIC(T) BOOST_CLASS_EXPORT_IMPLEMENT(T);