CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SourceFactory.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: Framework
4 // Class : SourceFactory
5 //
6 // Implementation:
7 // <Notes on implementation>
8 //
9 // Author: Chris Jones
10 // Created: Wed May 25 19:27:37 EDT 2005
11 // $Id: SourceFactory.cc,v 1.7 2012/04/16 15:43:50 wdd Exp $
12 //
13 
14 // system include files
15 
16 // user include files
19 
20 //
21 // static member functions
22 //
23 namespace edm {
24  namespace eventsetup {
25 
26  std::string SourceMakerTraits::name() { return "CMS EDM Framework ESSource"; }
27 
28  boost::shared_ptr<SourceMakerTraits::base_type> const*
30  ParameterSet const& iConfiguration) {
31  return esController.getAlreadyMadeESSource(iConfiguration);
32  }
33 
35  ParameterSet const& iConfiguration,
36  boost::shared_ptr<base_type> const& component) {
37  esController.putESSource(iConfiguration, component);
38  }
39  }
40 }
41 
#define COMPONENTFACTORY_GET(_type_)
static void putComponent(EventSetupsController &esController, ParameterSet const &iConfiguration, boost::shared_ptr< base_type > const &component)
static boost::shared_ptr< base_type > const * getAlreadyMadeComponent(EventSetupsController const &esController, ParameterSet const &iConfiguration)
void putESSource(ParameterSet const &pset, boost::shared_ptr< EventSetupRecordIntervalFinder > const &component)
boost::shared_ptr< EventSetupRecordIntervalFinder > const * getAlreadyMadeESSource(ParameterSet const &pset) const