CMS 3D CMS Logo

Public Member Functions | Private Types | Private Member Functions | Private Attributes | Friends

evf::ShmOutputModuleRegistry Class Reference

#include <ShmOutputModuleRegistry.h>

List of all members.

Public Member Functions

void dumpRegistry ()
OutputModuleget (std::string &name)
void registerModule (std::string &name, OutputModule *op)
 ShmOutputModuleRegistry (const edm::ParameterSet &)

Private Types

typedef std::map< std::string,
OutputModule * > 
dct
typedef dct::iterator idct

Private Member Functions

void clear ()

Private Attributes

dct clm_

Friends

class FWEPWrapper

Detailed Description

Definition at line 20 of file ShmOutputModuleRegistry.h.


Member Typedef Documentation

typedef std::map<std::string, OutputModule*> evf::ShmOutputModuleRegistry::dct [private]

Definition at line 29 of file ShmOutputModuleRegistry.h.

typedef dct::iterator evf::ShmOutputModuleRegistry::idct [private]

Definition at line 30 of file ShmOutputModuleRegistry.h.


Constructor & Destructor Documentation

evf::ShmOutputModuleRegistry::ShmOutputModuleRegistry ( const edm::ParameterSet ps)

Definition at line 7 of file ShmOuputModuleRegistry.cc.

                                                                           {
  }

Member Function Documentation

void evf::ShmOutputModuleRegistry::clear ( void  ) [private]

Definition at line 32 of file ShmOuputModuleRegistry.cc.

References clm_.

Referenced by evf::FWEPWrapper::init().

  {
     clm_.clear();
  }
void evf::ShmOutputModuleRegistry::dumpRegistry ( )

Definition at line 24 of file ShmOuputModuleRegistry.cc.

References clm_, and gather_cfg::cout.

                                            {
    idct it= clm_.begin();
    while(it!=clm_.end()){
      std::cout << "name " << it->first << "add " 
                << (unsigned long)(it->second) << std::endl;
      it++;
    }
  }
OutputModule * evf::ShmOutputModuleRegistry::get ( std::string &  name)

Definition at line 16 of file ShmOuputModuleRegistry.cc.

References clm_.

Referenced by evf::fuep::TriggerReportHelpers::packTriggerReport(), and evf::FWEPWrapper::taskWebPage().

  {
    OutputModule* retval = 0;
    idct it= clm_.find(name);
    if(it!=clm_.end())
      retval = (it->second);
    return retval;
  }
void evf::ShmOutputModuleRegistry::registerModule ( std::string &  name,
OutputModule op 
)

Definition at line 10 of file ShmOuputModuleRegistry.cc.

References clm_.

  {
    clm_.insert(std::pair<std::string, OutputModule*>(name,op));
  }

Friends And Related Function Documentation

friend class FWEPWrapper [friend]

Definition at line 33 of file ShmOutputModuleRegistry.h.


Member Data Documentation

Definition at line 32 of file ShmOutputModuleRegistry.h.

Referenced by clear(), dumpRegistry(), get(), and registerModule().