Async 1.7.0
|
A base class for making a class into a dynamic loadable plugin. More...
#include <AsyncPlugin.h>
Public Member Functions | |
Plugin (void) | |
Default constructor. | |
Plugin (const Plugin &)=delete | |
Disallow copy construction. | |
Plugin & | operator= (const Plugin &)=delete |
Disallow copy assignment. | |
void * | pluginHandle (void) const |
Retrieve the handle returned from the dlopen function. | |
const std::string & | pluginPath (void) const |
Retrieve the path used to find the plugin. |
Static Public Member Functions | |
static Plugin * | load (const std::string &path) |
Load the plugin from the specified path. | |
template<class T> | |
static T * | load (const std::string &path) |
Load the plugin from the specified path returning correct type. | |
static void | unload (Plugin *p) |
Protected Member Functions | |
virtual | ~Plugin (void) |
Destructor. |
A base class for making a class into a dynamic loadable plugin.
A_detailed_class_description
Definition at line 121 of file AsyncPlugin.h.
Async::Plugin::Plugin | ( | void | ) |
Default constructor.
Referenced by load(), operator=(), Plugin(), unload(), and ~Plugin().
|
protectedvirtual |
Destructor.
References Plugin().
|
static |
Load the plugin from the specified path.
path | The file path |
References Plugin().
Referenced by load().
|
inlinestatic |
Load the plugin from the specified path returning correct type.
path | The file path |
The plugin may use this function to load the plugin, check that it is of the correct type and then return a pointer to that type.
Definition at line 138 of file AsyncPlugin.h.
Disallow copy assignment.
References Plugin().
|
inline |
Retrieve the handle returned from the dlopen function.
Definition at line 177 of file AsyncPlugin.h.
|
inline |
Retrieve the path used to find the plugin.
This function can be called to find out which path was used to load the plugin.
Definition at line 186 of file AsyncPlugin.h.
|
static |
References Plugin().