A convenient wrapper template for QPluginLoader that loads and instantiates plugins of a given type.
More...
#include <PluginLoader.h++>
template<class T>
class quark::util::PluginLoader< T >
A convenient wrapper template for QPluginLoader that loads and instantiates plugins of a given type.
- Template Parameters
-
- Author
- Mark Lindner
◆ PluginLoader()
Constructs a new PluginLoader that will load plugins from the given plugin directory.
- Parameters
-
pluginDirectory | The path of a plugin directory. |
◆ ~PluginLoader()
◆ loadPlugin()
T* loadPlugin |
( |
const QString & |
name | ) |
|
Loads, instantiates, and returns a plugin with the given name.
- Parameters
-
name | The base name of the dynamic object file containing the plugin. |
- Returns
- The plugin instance, or
NULL
if the plugin could not be loaded.
The documentation for this class was generated from the following file: