1 #ifndef FWCore_Framework_SourceFactory_h
2 #define FWCore_Framework_SourceFactory_h
23 #include "boost/shared_ptr.hpp"
36 namespace eventsetup {
43 boost::shared_ptr<DataProxyProvider> pProvider(iComponent);
46 pProvider->setDescription(description);
47 iProvider.
add(pProvider);
57 static std::string
name();
62 addProviderTo(iProvider, iComponent, static_cast<const T*>(0));
63 boost::shared_ptr<EventSetupRecordIntervalFinder> pFinder(iComponent);
64 iProvider.
add(pFinder);
72 boost::shared_ptr<base_type>
const& component);
74 template<
class TType>
82 #define DEFINE_FWK_EVENTSETUP_SOURCE(type) \
83 DEFINE_EDM_PLUGIN (edm::eventsetup::SourcePluginFactory,edm::eventsetup::SourceMaker<type>,#type); \
84 DEFINE_DESC_FILLER_FOR_ESSOURCES(type)
static std::string name()
void add(boost::shared_ptr< DataProxyProvider >)
ComponentFactory< SourceMakerTraits > SourceFactory
static void putComponent(EventSetupsController &esController, ParameterSet const &iConfiguration, boost::shared_ptr< base_type > const &component)
EventSetupRecordIntervalFinder base_type
static boost::shared_ptr< base_type > const * getAlreadyMadeComponent(EventSetupsController const &esController, ParameterSet const &iConfiguration)
void addProviderTo(EventSetupProvider &iProvider, boost::shared_ptr< T > iComponent, const DataProxyProvider *)
static void addTo(EventSetupProvider &iProvider, boost::shared_ptr< T > iComponent)