PluginLoader< T > Class Template Reference
Template class for loading plugins.
More...
List of all members.
Static Public Member Functions |
static void | loadPlugins (QDir pluginDir, std::vector< T > &retVector, QStringList filter=(QStringList("*"))) |
static QObject * | loadPlugin (QFileInfo filePath) |
Detailed Description
template<class T>
class PluginLoader< T >
Template class for loading plugins.
Member Function Documentation
template<class T >
QObject * PluginLoader< T >::loadPlugin |
( |
QFileInfo |
filePath |
) |
[inline, static] |
template<class T >
void PluginLoader< T >::loadPlugins |
( |
QDir |
pluginDir, |
|
|
std::vector< T > & |
retVector, |
|
|
QStringList |
filter = (QStringList("*")) | |
|
) |
| | [inline, static] |
Static function that loads the plugins in pluginDir to retVector
- Parameters:
-
| pluginDir | QDir with path to directory where all files with names that if in filter List will be loaded |
| retVector | Vector of pointers to plugin class inherited from PluginInterface, e.g. <FrictionInterface *> |
| filter | QStringList of filters for what files to load |