Elm
1.0
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
#include <>>
Classes | |
class | make |
Public Types | |
typedef genstruct::Table< string > | aliases_t |
Public Member Functions | |
Plugin (string name, const Version &plugger_version, CString hook="", const aliases_t &aliases=aliases_t::EMPTY) | |
Plugin (const make &maker) | |
virtual | ~Plugin (void) |
string | name (void) const |
CString | description (void) const |
CString | licence (void) const |
const Version & | pluginVersion (void) const |
const Version & | pluggerVersion (void) const |
CString | hook (void) const |
const aliases_t & | aliases (void) const |
bool | matches (const string &name) const |
void | unplug (void) |
const Path & | path (void) const |
Static Public Attributes | |
static const t::uint32 | MAGIC = 0xCAFEBABE |
Protected Member Functions | |
virtual void | startup (void) |
virtual void | cleanup (void) |
Protected Attributes | |
CString | _description |
CString | _licence |
Version | _plugin_version |
elm::sys::Plugin::Plugin | ( | string | name, |
const Version & | plugger_version, | ||
CString | hook = "" , |
||
const aliases_t & | aliases = aliases_t::EMPTY |
||
) |
elm::sys::Plugin::Plugin | ( | const make & | maker | ) |
New-style builder for plugin using Plugin::Maker.
maker | Maker for plugin. |
References elm::genstruct::Vector< T >::addAll(), and elm::genstruct::Vector< T >::detach().
|
virtual |
const aliases_t & elm::sys::Plugin::aliases | ( | void | ) | const |
Get the table of aliases of the plugin.
|
protectedvirtual |
This method is called just before the plugin removal from the user application. It may be overriden for performing specific clean up.
Referenced by unplug().
String elm::sys::Plugin::description | ( | void | ) | const |
String elm::sys::Plugin::hook | ( | void | ) | const |
Get the hook of the current plugin.
String elm::sys::Plugin::licence | ( | void | ) | const |
bool elm::sys::Plugin::matches | ( | const string & | name | ) | const |
Test if the current plugin matches the given name, that is, if the name or one of the aliases matches the name.
name | Name to test. |
const Path& elm::sys::Plugin::path | ( | void | ) | const |
Version & elm::sys::Plugin::pluggerVersion | ( | void | ) | const |
Version & elm::sys::Plugin::pluginVersion | ( | void | ) | const |
|
protectedvirtual |
This method is called just after the plugin has been plugged into the user application. It may be overriden for performing specific initializations.
void elm::sys::Plugin::unplug | ( | void | ) |
Call it when the plugin is no more used.
References cleanup().
|
protected |
Referenced by description().
|
protected |
Referenced by pluginVersion().
|
static |
Referenced by elm::sys::Plugger::plugFile().