Singleton class which loads Protobuf conversion libraries. More...
#include <proto_ops_manager.h>
Public Member Functions | |
| ProtoOpsManager (const ProtoOpsManager &)=delete | |
| ProtoOpsManager (ProtoOpsManager &&)=delete | |
| ProtoOpsManager & | operator= (const ProtoOpsManager &)=delete |
| ProtoOpsManager & | operator= (ProtoOpsManager &&)=delete |
| std::unique_ptr< protobuf_ops::NRPProtobufOpsIface > | loadProtobufPlugin (const std::string &pluginLibFile) |
| Load a Protobuf conversion plugin from a given library. More... | |
Public Member Functions inherited from PluginManager | |
| 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 ProtoOpsManager & | getInstance () |
| Get singleton instance of ProtoOpsManager. More... | |
| static void | resetInstance () |
| Reset singleton instance. More... | |
Additional Inherited Members | |
Protected Attributes inherited from PluginManager | |
| std::map< std::string, void * > | _loadedLibs |
| Loaded Libraries. More... | |
Singleton class which loads Protobuf conversion libraries.
Also in charge of unloading then when the object is destructed
|
delete |
|
delete |
|
static |
Get singleton instance of ProtoOpsManager.
| std::unique_ptr< protobuf_ops::NRPProtobufOpsIface > ProtoOpsManager::loadProtobufPlugin | ( | const std::string & | pluginLibFile | ) |
Load a Protobuf conversion plugin from a given library.
| pluginLibFile | Plugin library file (.so) |
|
delete |
|
delete |
|
static |
Reset singleton instance.