37 FDEBUG(1) <<
"Factory: module_type = " << modtype << std::endl;
38 MakerMap::iterator it =
makers_.find(modtype);
46 <<
"Module " << modtype
48 <<
" was not registered.\n"
49 <<
"Perhaps your module type is misspelled or is not a "
50 <<
"framework plugin.\n"
51 <<
"Try running EdmPluginDump to obtain a list of "
52 <<
"available Plugins.";
54 FDEBUG(1) <<
"Factory: created worker of type " << modtype << std::endl;
56 std::pair<MakerMap::iterator,bool>
ret =
57 makers_.insert(std::pair<std::string,Maker*>(modtype,wm.get()));
73 auto mod(
maker->makeModule(p,pre,post));
80 MakerMap::iterator it =
makers_.find(modtype);
82 return it->second->makeReplacementModule(p);
84 return std::shared_ptr<maker::ModuleHolder>{};
T getParameter(std::string const &) const
boost::shared_ptr< ProcessConfiguration const > processConfiguration_
static void cleanup(const Factory::MakerMap::value_type &v)
std::shared_ptr< maker::ModuleHolder > makeReplacementModule(const edm::ParameterSet &) const
Maker * findMaker(const MakeModuleParams &p) const
std::shared_ptr< maker::ModuleHolder > makeModule(const MakeModuleParams &, signalslot::Signal< void(const ModuleDescription &)> &pre, signalslot::Signal< void(const ModuleDescription &)> &post) const
Func for_all(ForwardSequence &s, Func f)
wrapper for std::for_each
static Factory const singleInstance_
static Factory const * get()
Container::value_type value_type
#define EDM_REGISTER_PLUGINFACTORY(_factory_, _category_)
T mod(const T &a, const T &b)
T get(const Candidate &c)