Fawkes API
Fawkes Development Version
|
Thread aspect to access the PluginManager. More...
#include <>>
Public Member Functions | |
PluginDirectorAspect () | |
Constructor. | |
virtual | ~PluginDirectorAspect () |
Virtual empty Destructor. | |
void | init_PluginDirectorAspect (PluginManager *manager) |
Set the PluginManager. | |
Protected Attributes | |
PluginManager * | plugin_manager |
This is the member used to access the PluginManager. |
Thread aspect to access the PluginManager.
Give this aspect to your thread to gain access to the plugin manager. The plugin manager can be used to load and unload plugins. Use this carefully, as it can interfere with the internals of the runtime system.
Note: This aspect can only be added for continuous threads, as plugins cannot be loaded while the main loop is running.
fawkes::PluginDirectorAspect::PluginDirectorAspect | ( | ) |
Constructor.
Definition at line 52 of file plugin_director.cpp.
fawkes::PluginDirectorAspect::~PluginDirectorAspect | ( | ) | [virtual] |
Virtual empty Destructor.
Definition at line 58 of file plugin_director.cpp.
void fawkes::PluginDirectorAspect::init_PluginDirectorAspect | ( | PluginManager * | manager | ) |
Set the PluginManager.
It is guaranteed that this is called for a configurable thread before Thread::start() is called (when running regularly inside Fawkes).
manager | PluginManager instance to use |
Definition at line 69 of file plugin_director.cpp.
Referenced by fawkes::PluginDirectorAspectIniFin::init().
PluginManager * fawkes::PluginDirectorAspect::plugin_manager [protected] |
This is the member used to access the PluginManager.
The plugin manager will remain valid for the whole lifetime of the thread.
Definition at line 44 of file plugin_director.h.
Referenced by WebviewThread::init(), and XmlRpcThread::init().