|
Async 1.9.1
|
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.
Definition at line 115 of file AsyncPlugin.h.
| Async::Plugin::Plugin | ( | void | ) |
Default constructor.
Referenced by load(), operator=(), Plugin(), unload(), and ~Plugin().
|
delete |
Disallow copy construction.
References Plugin().
|
protectedvirtual |
Destructor.
References Plugin().
|
inlinestatic |
Load the plugin from the specified path returning correct type.
| path | The file path |
The application 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 132 of file AsyncPlugin.h.
|
static |
Load the plugin from the specified path.
| path | The file path |
References Plugin().
Referenced by load().
Disallow copy assignment.
References Plugin().
|
inline |
Retrieve the handle returned from the dlopen function.
Definition at line 171 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 180 of file AsyncPlugin.h.
|
static |
References Plugin().