Singleton class which loads Functional Node factory plugins and instantiates Functional Nodes using the former. More...
#include <functional_node_factory_manager.h>
Public Member Functions | |
FunctionalNodeFactoryManager (const FunctionalNodeFactoryManager &)=delete | |
FunctionalNodeFactoryManager (FunctionalNodeFactoryManager &&)=delete | |
FunctionalNodeFactoryManager & | operator= (const FunctionalNodeFactoryManager &)=delete |
FunctionalNodeFactoryManager & | operator= (FunctionalNodeFactoryManager &&)=delete |
void | loadFNFactoryPlugin (const std::string &pluginLibFile) |
Load a Functional Node factory plugin. More... | |
FunctionalNodeBase * | createFunctionalNode (const std::string &functionName, const std::string &nodeName, FunctionalNodePolicies::ExecutionPolicy policy=FunctionalNodePolicies::ExecutionPolicy::ON_NEW_INPUT) |
Attempts to instantiate a Functional Node from the requested functionName using all loaded plugins. More... | |
![]() | |
bool | loadPlugin (const std::string &pluginLibFile) |
Load a Plugin from a given library. More... | |
~PluginManager () | |
Destructor. Unloads all plugin libraries. More... | |
void | addPluginPath (const std::string &pluginPath) |
Adds search path under which to look for plugins. More... | |
Static Public Member Functions | |
static FunctionalNodeFactoryManager & | getInstance () |
Get singleton instance of FunctionalNodeFactoryManager. More... | |
static void | resetInstance () |
Reset singleton instance. More... | |
Additional Inherited Members | |
![]() | |
std::map< std::string, void * > | _loadedLibs |
Loaded Libraries. More... | |
Singleton class which loads Functional Node factory plugins and instantiates Functional Nodes using the former.
Functional Node factory plugins are generated using the skeleton "fn_factory_module.cpp.template"
|
delete |
|
delete |
FunctionalNodeBase * FunctionalNodeFactoryManager::createFunctionalNode | ( | const std::string & | functionName, |
const std::string & | nodeName, | ||
FunctionalNodePolicies::ExecutionPolicy | policy = FunctionalNodePolicies::ExecutionPolicy::ON_NEW_INPUT |
||
) |
Attempts to instantiate a Functional Node from the requested functionName using all loaded plugins.
functionName | Name of the function to instantiate the FN from |
nodeName | Name of the FN |
policy | Execution policy of the FN |
|
static |
Get singleton instance of FunctionalNodeFactoryManager.
void FunctionalNodeFactoryManager::loadFNFactoryPlugin | ( | const std::string & | pluginLibFile | ) |
Load a Functional Node factory plugin.
pluginLibFile | Plugin library file (.so) |
|
delete |
|
delete |
|
static |
Reset singleton instance.