#include <yatengine.h>
Inheritance diagram for Plugin:
Public Member Functions | |
Plugin (const char *name) | |
Plugin () | |
virtual | ~Plugin () |
virtual void * | getObject (const String &name) const |
virtual void | initialize ()=0 |
virtual bool | isBusy () const |
Initialization and information about plugins. Plugins are located in shared libraries that are loaded at runtime.
// Create static Plugin object by using the provided macro INIT_PLUGIN(Plugin); *
Plugin | ( | const char * | name | ) |
Creates a new Plugin container.
name | the undecorated name of the library that contains the plugin |
virtual ~Plugin | ( | ) | [virtual] |
Destroys the plugin. The destructor must never be called directly - the Loader will do it when the shared object's reference count reaches zero.
virtual void* getObject | ( | const String & | name | ) | const [virtual] |
virtual void initialize | ( | ) | [pure virtual] |
Initialize the plugin after it was loaded and registered.
Implemented in Module, Driver, and ClientDriver.
virtual bool isBusy | ( | ) | const [inline, virtual] |
Check if the module is actively used.
Reimplemented in Driver.