32 WorkerMap::iterator workerIt =
m_workerMap.find(moduleLabel);
37 std::auto_ptr<Worker> workerPtr=
39 actReg_->postModuleConstructionSignal_);
41 workerPtr->setActivityRegistry(
actReg_);
44 m_workerMap[moduleLabel].reset(workerPtr.release());
47 return (workerIt->second.get());
WorkerRegistry(boost::shared_ptr< ActivityRegistry > areg)
boost::shared_ptr< ActivityRegistry > actReg_
WorkerMap m_workerMap
internal map of registered workers (owned).
std::auto_ptr< Worker > makeWorker(const WorkerParams &, sigc::signal< void, const ModuleDescription & > &pre, sigc::signal< void, const ModuleDescription & > &post) const
Worker * getWorker(WorkerParams const &p, std::string const &moduleLabel)
Retrieve the particular instance of the worker.