/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
FWCore/ParameterSet/interface/ParameterSetDescriptionFillerPluginFactory.h
61 строка
3 KB
Shahzad Malik Muzaffar
[CORE] [LLVM14] Apply clang-tidy and clang-format changes
26 апр 2023, 17:46
26 апр 2023, 17:46
400e512
Код
Авторство
О чём код?
#ifndef FWCore_ParameterSet_ParameterSetDescriptionFillerPluginFactory_h #define FWCore_ParameterSet_ParameterSetDescriptionFillerPluginFactory_h // -*- C++ -*- // // Package: ParameterSet // Class : ParameterSetDescriptionFillerPluginFactory // /**\class ParameterSetDescriptionFillerPluginFactory ParameterSetDescriptionFillerPluginFactory.h FWCore/ParameterSet/interface/ParameterSetDescriptionFillerPluginFactory.h Description: Provides access to the ParameterSetDescription object of a plugin Usage: The Factory allows loading of plugins and querying them for their ParameterSetDescription. */ // // Original Author: Chris Jones // Created: Wed Aug 1 16:47:01 EDT 2007 // // system include files // user include files #include "FWCore/PluginManager/interface/PluginFactory.h" #include "FWCore/ParameterSet/interface/ParameterSetDescriptionFiller.h" // forward declarations namespace edm { typedef edmplugin::PluginFactory<ParameterSetDescriptionFillerBase*(void)> ParameterSetDescriptionFillerPluginFactory; } #define DEFINE_FWK_PSET_DESC_FILLER_IMPL(type, name, postfix) \ static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker<edm::ParameterSetDescriptionFiller<type> > \ EDM_PLUGIN_SYM(s_filler##postfix, __LINE__)(name) //NOTE: Can't do the below since this appears on the same line as another factory and w'ed have two variables with the same name //DEFINE_EDM_PLUGIN (edm::ParameterSetDescriptionFillerPluginFactory,type,#type) #define DEFINE_FWK_PSET_DESC_FILLER(type) DEFINE_FWK_PSET_DESC_FILLER_IMPL(type, #type, _0) // Define another analogous macro to handle the special case of services. #define DEFINE_DESC_FILLER_FOR_SERVICES(pluginName, serviceType) \ static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker<edm::DescriptionFillerForServices<serviceType> > \ EDM_PLUGIN_SYM(s_filler, __LINE__)(#pluginName) #define DEFINE_DESC_FILLER_FOR_ESSOURCES_IMPL(type, name) \ static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker<edm::DescriptionFillerForESSources<type> > \ EDM_PLUGIN_SYM(s_filler, __LINE__)(name) #define DEFINE_DESC_FILLER_FOR_ESSOURCES(type) DEFINE_DESC_FILLER_FOR_ESSOURCES_IMPL(type, #type) #define DEFINE_DESC_FILLER_FOR_ESPRODUCERS_IMPL(type, name, postfix) \ static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker<edm::DescriptionFillerForESProducers<type> > \ EDM_PLUGIN_SYM(s_filler##postfix, __LINE__)(name) #define DEFINE_DESC_FILLER_FOR_ESPRODUCERS(type) DEFINE_DESC_FILLER_FOR_ESPRODUCERS_IMPL(type, #type, _0) #define DEFINE_DESC_FILLER_FOR_EDLOOPERS(type) \ static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker<edm::DescriptionFillerForEDLoopers<type> > \ EDM_PLUGIN_SYM(s_filler, __LINE__)(#type) #endif