|
SLIC
6.1.1
Simulation for the Linear Collider (SLIC) - Geant4 simulation application
|
Loads user sim plugin classes from external shared libraries. More...
#include <PluginLoader.hh>
Public Member Functions | |
| UserActionPlugin * | create (std::string pluginName, std::string libName) |
| void | destroy (UserActionPlugin *plugin) |
Private Member Functions | |
| void * | getHandle (std::string pluginName) |
Private Attributes | |
| std::map< UserActionPlugin *, void * > | pluginHandles_ |
Loads user sim plugin classes from external shared libraries.
Definition at line 19 of file PluginLoader.hh.
| UserActionPlugin * create | ( | std::string | pluginName, |
| std::string | libName | ||
| ) |
Create a user sim plugin with the given name from the supplied library name.
| pluginName | The name of the plugin. |
| libName | The name of the shared library. |
Definition at line 7 of file PluginLoader.cc.
References LOG::endl, and PluginLoader::pluginHandles_.
Referenced by PluginManager::create().
| void destroy | ( | UserActionPlugin * | plugin | ) |
Destroy an existing user sim plugin.
| plugin | The sim plugin to destroy. |
Definition at line 53 of file PluginLoader.cc.
References LOG::endl, UserActionPlugin::getName(), and PluginLoader::pluginHandles_.
Referenced by PluginManager::destroy().
|
private |
Get a handle for a plugin.
| pluginName | The name of the plugin. |
|
private |
Map of plugins to their handles.
Definition at line 50 of file PluginLoader.hh.
Referenced by PluginLoader::create(), and PluginLoader::destroy().