Nemiver  0.3
Classes | Namespaces | Typedefs | Functions
nmv-dynamic-module.h File Reference
#include <vector>
#include <list>
#include <map>
#include <string>
#include <gmodule.h>
#include "nmv-api-macros.h"
#include "nmv-object.h"
#include "nmv-ustring.h"
#include "nmv-safe-ptr-utils.h"
#include "nmv-exception.h"

Go to the source code of this file.

Classes

class  nemiver::common::DynamicModule
 The base class for loadable modules. More...
 
struct  nemiver::common::DynamicModule::Info
 
struct  nemiver::common::DynamicModule::Config
 
class  nemiver::common::DynamicModule::Loader
 
class  nemiver::common::DynModIface
 
class  nemiver::common::ModuleRegistry
 
class  nemiver::common::DynamicModuleManager
 

Namespaces

 nemiver
 
 nemiver::common
 

Typedefs

typedef SafePtr< DynamicModule, ObjectRef, ObjectUnref > nemiver::common::DynamicModuleSafePtr
 
typedef SafePtr< DynModIface, ObjectRef, ObjectUnref > nemiver::common::DynModIfaceSafePtr
 
typedef SafePtr< DynamicModuleManager, ObjectRef, ObjectUnref > nemiver::common::DynamicModuleManagerSafePtr
 

Functions

bool nemiver_common_create_dynamic_module_instance (void **a_new_instance)
 the factory of the DynamicModule. More...
 
template<class T >
SafePtr< T, ObjectRef, ObjectUnref > nemiver::common::load_iface_using_context (DynModIface &a_iface, const UString &a_iface_name)
 
template<class T >
SafePtr< T, ObjectRef, ObjectUnref > nemiver::common::load_iface_using_context (DynamicModule &a_dynmod, const UString &a_iface_name)
 

Detailed Description

the declaration of the DynamicModule class.

Function Documentation

◆ nemiver_common_create_dynamic_module_instance()

bool nemiver_common_create_dynamic_module_instance ( void **  a_new_instance)

the factory of the DynamicModule.

Implementors of the loadable module must implement this function. This function must then instanciate a DynamicModule, set a_new_inst to that new DynamicModule, and return true in case of success. Otherwise, it must return false.