|
Nemiver
0.3
|
The base class for loadable modules. More...
#include <nmv-dynamic-module.h>
Classes | |
| struct | Config |
| struct | Info |
| class | Loader |
Public Types | |
| typedef SafePtr< Config, ObjectRef, ObjectUnref > | ConfigSafePtr |
| typedef SafePtr< Loader, ObjectRef, ObjectUnref > | LoaderSafePtr |
Public Member Functions | |
| Loader * | get_module_loader () |
| get the module loader class More... | |
| const UString & | get_real_library_path () const |
| gets the path of the library this module has been instanciated from. More... | |
| const UString & | get_name () const |
| gets the (short) name of this dynmod More... | |
| virtual | ~DynamicModule () |
| destructor More... | |
| virtual void | get_info (Info &a_info) const =0 |
| get module info More... | |
| virtual void | do_init ()=0 |
| module init routinr More... | |
| virtual bool | lookup_interface (const std::string &a_iface_name, DynModIfaceSafePtr &a_iface)=0 |
| lookup the interface of a service object More... | |
| template<class T > | |
| bool | lookup_interface (const std::string &a_iface_name, SafePtr< T, ObjectRef, ObjectUnref > &a_iface) |
Public Member Functions inherited from nemiver::common::Object | |
| Object () | |
| Object (Object const &) | |
| Object & | operator= (Object const &) |
| virtual | ~Object () |
| void | ref () |
| void | unref () |
| void | enable_refcount (bool a_enabled=true) |
| bool | is_refcount_enabled () const |
| long | get_refcount () const |
| void | attach_object (const UString &a_key, const Object *a_object) |
| bool | get_attached_object (const UString &a_key, const Object *&a_object) |
Protected Member Functions | |
| DynamicModule () | |
Friends | |
| class | Loader |
| class | DynamicModuleManager |
| bool | gpil_common_create_loadable_module_instance (void **a_new_inst) |
Additional Inherited Members | |
Protected Attributes inherited from nemiver::common::Object | |
| SafePtr< ObjectPriv > | m_priv |
The base class for loadable modules.
A loadable module is a dynamic library that contains an instance of DynamicModule.
|
protected |
|
virtual |
destructor
|
pure virtual |
module init routinr
This abstract method must be implemented by type that extend DynamicModule
Referenced by nemiver::common::DynamicModuleManager::load_iface().
|
pure virtual |
get module info
| Loader* nemiver::common::DynamicModule::get_module_loader | ( | ) |
get the module loader class
Referenced by nemiver::common::load_iface_using_context().
| const UString& nemiver::common::DynamicModule::get_name | ( | ) | const |
gets the (short) name of this dynmod
Referenced by nemiver::common::load_iface_using_context().
| const UString& nemiver::common::DynamicModule::get_real_library_path | ( | ) | const |
gets the path of the library this module has been instanciated from.
|
pure virtual |
lookup the interface of a service object
Creates a service object and returns a pointer to its interface This abstract method must be implemented by types that extend DynamicModule
| a_iface_name | the name of the service object interface to return. |
| a_iface | out parameter. The returned service object interface, if and only if this function returns true. Otherwise, this parameter is not set by the function. |
Referenced by nemiver::common::DynamicModuleManager::load_iface().
|
inline |
|
friend |
|
friend |
|
friend |
1.8.17