CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_0/src/FWCore/Framework/src/ModuleFactory.cc

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // Package:     Framework
00004 // Class  :     ModuleFactory
00005 // 
00006 // Implementation:
00007 //     <Notes on implementation>
00008 //
00009 // Author:      Chris Jones
00010 // Created:     Wed May 25 19:27:44 EDT 2005
00011 // $Id: ModuleFactory.cc,v 1.6 2012/04/16 15:43:50 wdd Exp $
00012 //
00013 
00014 // system include files
00015 
00016 // user include files
00017 #include "FWCore/Framework/interface/ModuleFactory.h"
00018 #include "FWCore/Framework/interface/EventSetupProvider.h"
00019 
00020 //
00021 // constants, enums and typedefs
00022 //
00023 namespace edm {
00024    namespace eventsetup {
00025 
00026 //
00027 // static member functions
00028 //
00029        std::string ModuleMakerTraits::name() { return "CMS EDM Framework ESModule"; }
00030       void ModuleMakerTraits::addTo(EventSetupProvider& iProvider, boost::shared_ptr<DataProxyProvider> iComponent) 
00031       {
00032          iProvider.add(iComponent);
00033       }
00034 
00035       boost::shared_ptr<ModuleMakerTraits::base_type> const*
00036       ModuleMakerTraits::getAlreadyMadeComponent(EventSetupsController const&,
00037                                                  ParameterSet const&) {
00038          return 0;
00039       }
00040 
00041       void ModuleMakerTraits::putComponent(EventSetupsController&,
00042                                            ParameterSet const&,
00043                                            boost::shared_ptr<base_type> const&) {
00044       }
00045    }
00046 }
00047 COMPONENTFACTORY_GET(edm::eventsetup::ModuleMakerTraits);