CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Static Public Member Functions
edm::eventsetup::SourceMakerTraits Struct Reference

#include <SourceFactory.h>

Public Types

typedef
EventSetupRecordIntervalFinder 
base_type
 

Static Public Member Functions

template<class T >
static void addTo (EventSetupProvider &iProvider, boost::shared_ptr< T > iComponent)
 
static boost::shared_ptr
< base_type > const * 
getAlreadyMadeComponent (EventSetupsController const &esController, ParameterSet const &iConfiguration)
 
static std::string name ()
 
static void putComponent (EventSetupsController &esController, ParameterSet const &iConfiguration, boost::shared_ptr< base_type > const &component)
 

Detailed Description

Definition at line 55 of file SourceFactory.h.

Member Typedef Documentation

Definition at line 56 of file SourceFactory.h.

Member Function Documentation

template<class T >
static void edm::eventsetup::SourceMakerTraits::addTo ( EventSetupProvider iProvider,
boost::shared_ptr< T iComponent 
)
inlinestatic

Definition at line 59 of file SourceFactory.h.

References edm::eventsetup::EventSetupProvider::add(), and edm::eventsetup::addProviderTo().

60  {
61  //a source does not always have to be a provider
62  addProviderTo(iProvider, iComponent, static_cast<const T*>(0));
63  boost::shared_ptr<EventSetupRecordIntervalFinder> pFinder(iComponent);
64  iProvider.add(pFinder);
65  }
void addProviderTo(EventSetupProvider &iProvider, boost::shared_ptr< T > iComponent, const DataProxyProvider *)
Definition: SourceFactory.h:41
boost::shared_ptr< SourceMakerTraits::base_type > const * edm::eventsetup::SourceMakerTraits::getAlreadyMadeComponent ( EventSetupsController const &  esController,
ParameterSet const &  iConfiguration 
)
static

Definition at line 29 of file SourceFactory.cc.

References edm::eventsetup::EventSetupsController::getAlreadyMadeESSource().

30  {
31  return esController.getAlreadyMadeESSource(iConfiguration);
32  }
std::string edm::eventsetup::SourceMakerTraits::name ( void  )
static

Definition at line 26 of file SourceFactory.cc.

Referenced by Vispa.Views.PropertyView.Property::valueChanged().

26 { return "CMS EDM Framework ESSource"; }
void edm::eventsetup::SourceMakerTraits::putComponent ( EventSetupsController esController,
ParameterSet const &  iConfiguration,
boost::shared_ptr< base_type > const &  component 
)
static

Definition at line 34 of file SourceFactory.cc.

References edm::eventsetup::EventSetupsController::putESSource().

36  {
37  esController.putESSource(iConfiguration, component);
38  }