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.5 2007/04/13 10:39:42 wmtan 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 } 00036 COMPONENTFACTORY_GET(edm::eventsetup::ModuleMakerTraits);