File indexing completed on 2024-04-06 12:12:52
0001 #ifndef FWCore_ParameterSet_ValidatedPluginMacros_h
0002 #define FWCore_ParameterSet_ValidatedPluginMacros_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025 #include "FWCore/ParameterSet/interface/PluginDescriptionAdaptor.h"
0026 #include "FWCore/PluginManager/interface/PluginFactory.h"
0027
0028 #define DEFINE_EDM_VALIDATED_PLUGIN(factory, type, name) \
0029 DEFINE_EDM_PLUGIN(factory, type, name); \
0030 using EDM_PLUGIN_SYM(adaptor_t, __LINE__) = edm::PluginDescriptionAdaptor<factory::CreatedType, type>; \
0031 DEFINE_EDM_PLUGIN2(edmplugin::PluginFactory<edm::PluginDescriptionAdaptorBase<factory::CreatedType>*()>, \
0032 EDM_PLUGIN_SYM(adaptor_t, __LINE__), \
0033 name)
0034
0035 #endif