20 RFModuleFactory::RFModuleFactory() :
32 void RFModuleFactory::AddModule(
const std::string& name,
RFModule* (*
module)())
34 GetInstance().mPriv->delegates[name] =
module;
37 RFModule* RFModuleFactory::GetModule(
const std::string& name)
39 if (mPriv->delegates.find(name) != mPriv->delegates.end()) {
40 return mPriv->delegates[name]();
std::map< std::string, RFModule *(*)(void)> delegates
A base-class for standard YARP modules that supports ResourceFinder.
An interface to the operating system, including Port based communication.