#include <yatengine.h>
Public Member Functions | |
Plugin (const char *name, bool earlyInit=false) | |
virtual | ~Plugin () |
virtual const String & | toString () const |
virtual void * | getObject (const String &name) const |
virtual void | initialize ()=0 |
virtual bool | isBusy () const |
const String & | name () 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 | |||
) | [explicit] |
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 const String& toString | ( | ) | const [inline, virtual] |
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.
const String& name | ( | ) | const [inline] |
Retrieve the name of the plugin
bool earlyInit | ( | ) | const [inline] |
Check if the module is to be initialized early