#include <yatengine.h>
Public Member Functions | |
Plugin (const char *name, bool earlyInit=false) | |
Plugin () | |
virtual | ~Plugin () |
virtual void * | getObject (const String &name) const |
virtual void | initialize ()=0 |
virtual bool | isBusy () const |
bool | earlyInit () 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, | |
bool | earlyInit = false | |||
) |
Creates a new Plugin container.
name | the undecorated name of the library that contains the plugin | |
earlyInit | True to initialize the plugin early |
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, ClientDriver, and ChanAssistList.
virtual bool isBusy | ( | ) | const [inline, virtual] |
Check if the module is actively used.
Reimplemented in Driver.
bool earlyInit | ( | ) | const [inline] |
Check if the module is to be initialized early