knowrob
2.1.0
A Knowledge Base System for Cognition-enabled Robots
|
#include <PluginLibrary.h>
Public Member Functions | |
PluginLibrary (std::string_view dllPath) | |
~PluginLibrary () override | |
PluginLibrary (const PluginLibrary &)=delete | |
bool | isLoaded () |
bool | loadDLL () |
std::shared_ptr< NamedPlugin< T > > | create (std::string_view pluginID) override |
std::string_view | name () const override |
PluginLibrary (std::string_view dllPath) | |
~PluginLibrary () override | |
PluginLibrary (const PluginLibrary &)=delete | |
bool | isLoaded () |
bool | loadDLL () |
std::shared_ptr< NamedPlugin< T > > | create (std::string_view pluginID) override |
std::string_view | name () const override |
Public Member Functions inherited from knowrob::PluginFactory< T > | |
virtual | ~PluginFactory ()=default |
virtual | ~PluginFactory ()=default |
Protected Attributes | |
const std::string | dllPath_ |
std::string | name_ |
void * | handle_ |
std::shared_ptr< T >(* | create_ )() |
char *(* | get_name_ )() |
A factory that uses a shared library for creation of plugin instances.
Definition at line 19 of file PluginLibrary.h.
|
inlineexplicit |
dllPath | the name or path of the shared library. |
Definition at line 24 of file PluginLibrary.h.
|
inlineoverride |
Definition at line 31 of file PluginLibrary.h.
|
delete |
Cannot be copy-assigned.
|
inlineexplicit |
|
inlineoverride |
Definition at line 31 of file PluginLibrary.h.
|
delete |
Cannot be copy-assigned.
|
inlineoverridevirtual |
Create a new plugin instance.
pluginID | the ID of the plugin. |
Implements knowrob::PluginFactory< T >.
Definition at line 68 of file PluginLibrary.h.
|
inlineoverridevirtual |
Create a new plugin instance.
pluginID | the ID of the plugin. |
Implements knowrob::PluginFactory< T >.
Definition at line 68 of file PluginLibrary.h.
|
inline |
Definition at line 46 of file PluginLibrary.h.
|
inline |
Definition at line 46 of file PluginLibrary.h.
|
inline |
Try loading the shared library from filesystem. Note that, on unix-based systems, the LD_LIBRARY_PATH environment variable is used to locate the library.
Definition at line 56 of file PluginLibrary.h.
|
inline |
Try loading the shared library from filesystem. Note that, on unix-based systems, the LD_LIBRARY_PATH environment variable is used to locate the library.
Definition at line 56 of file PluginLibrary.h.
|
inlineoverridevirtual |
Implements knowrob::PluginFactory< T >.
Definition at line 73 of file PluginLibrary.h.
|
inlineoverridevirtual |
Implements knowrob::PluginFactory< T >.
Definition at line 73 of file PluginLibrary.h.
|
protected |
Definition at line 79 of file PluginLibrary.h.
|
protected |
Definition at line 76 of file PluginLibrary.h.
|
protected |
Definition at line 85 of file PluginLibrary.h.
|
protected |
Definition at line 79 of file PluginLibrary.h.
|
protected |
Definition at line 77 of file PluginLibrary.h.