CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/EventFilter/Utilities/src/ShmOuputModuleRegistry.cc

Go to the documentation of this file.
00001 #include "EventFilter/Utilities/interface/ShmOutputModuleRegistry.h"
00002 #include "EventFilter/Modules/src/FUShmOutputModule.h"
00003 
00004 
00005 namespace evf{
00006 
00007   ShmOutputModuleRegistry::ShmOutputModuleRegistry(const edm::ParameterSet &ps){
00008   }
00009 
00010   void ShmOutputModuleRegistry::registerModule(std::string &name, edm::FUShmOutputModule *op)
00011   {
00012     clm_.insert(std::pair<std::string, edm::FUShmOutputModule*>(name,op));
00013   }
00014   
00015 
00016   edm::FUShmOutputModule* ShmOutputModuleRegistry::get(std::string &name)
00017   {
00018     edm::FUShmOutputModule* retval = 0;
00019     idct it= clm_.find(name);
00020     if(it!=clm_.end())
00021       retval = (it->second);
00022     return retval;
00023   }
00024   void ShmOutputModuleRegistry::dumpRegistry(){
00025     idct it= clm_.begin();
00026     while(it!=clm_.end()){
00027       std::cout << "name " << it->first << "add " 
00028                 << (unsigned long)(it->second) << std::endl;
00029       it++;
00030     }
00031   }
00032   void ShmOutputModuleRegistry::clear()
00033   {
00034      clm_.clear();
00035   }
00036   
00037 
00038 } //end namespace evf