21RFModuleFactory::RFModuleFactory() :
33void RFModuleFactory::AddModule(
const std::string& name,
RFModule* (*
module)())
35 GetInstance().mPriv->delegates[name] =
module;
38RFModule* RFModuleFactory::GetModule(
const std::string& name)
40 if (mPriv->delegates.find(name) != mPriv->delegates.end()) {
41 return mPriv->delegates[name]();
std::map< std::string, RFModule *(*)(void)> delegates
A base-class for standard YARP modules that supports ResourceFinder.
The components from which ports and connections are built.
An interface to the operating system, including Port based communication.