OpenViBE Documentation 3.6.0
|
Plugin module. More...
#include <ovIPluginModule.h>
Public Member Functions | |
virtual bool | load (const CString &name, CString *error=nullptr)=0 |
Tries to load a file as an OpenViBE module. More... | |
virtual bool | unload (CString *error=nullptr)=0 |
Tries to unload the loaded OpenViBE module. More... | |
virtual bool | getFileName (CString &fileName) const =0 |
Gets the current filename associated with this plugin module. More... | |
virtual bool | initialize ()=0 |
Initializes this plugin module. More... | |
virtual bool | getPluginObjectDescription (size_t index, Plugins::IPluginObjectDesc *&desc)=0 |
Gets a specific plugin object descriptor. More... | |
virtual bool | uninitialize ()=0 |
Uninitializes this plugin module. More... | |
Public Member Functions inherited from OpenViBE::IObject | |
virtual CIdentifier | getClassIdentifier () const =0 |
Returns the final class identifier of the concrete class. More... | |
virtual bool | isDerivedFromClass (const CIdentifier &classId) const |
Checks if this object is compatible with a class identifier. More... | |
virtual bool | acceptVisitor (IObjectVisitor &visitor) |
Requests this object to accept a visitor. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from OpenViBE::IObject | |
virtual | ~IObject () |
Plugin module.
Each plugin module is exactly responsible for one module (ie DLL/so file) containing OpenViBE plugins. It is able to load/unload this file and to enumerate each of its plugin object descriptor.
|
pure virtual |
Tries to load a file as an OpenViBE module.
name | [in] : the name of the file to try to load |
error | [out] : an optional output string containing the error on load failure |
Implemented in OpenViBE::Kernel::CPluginModule, and OpenViBE::Kernel::CPluginModuleDummy.
|
pure virtual |
Tries to unload the loaded OpenViBE module.
error | [out] : an optional output string containing the error on unload failure |
Implemented in OpenViBE::Kernel::CPluginModule, and OpenViBE::Kernel::CPluginModuleDummy.
|
pure virtual |
Gets the current filename associated with this plugin module.
fileName | [out] : the filename of this plugin module |
Implemented in OpenViBE::Kernel::CPluginModuleBase, and OpenViBE::Kernel::CPluginModule.
|
pure virtual |
Initializes this plugin module.
This function calls the onInitialize main function of the plugin module.
Implemented in OpenViBE::Kernel::CPluginModuleBase, and OpenViBE::Kernel::CPluginModule.
|
pure virtual |
Gets a specific plugin object descriptor.
index | [in] : the index of the plugin object descriptor to get |
desc | [out] : a pointer on the associated plugin object descriptor |
This function should be called with index
ranging from 0 to the number of plugin object descriptor - 1. The number of plugin object descriptor is known as soon as this function returns false meaning there are no more descriptors to return.
This function calls the onGetPluginObjectDescription main function of the plugin module.
desc
can be NULL
even if the function returned true desc
IS NULL
if the function returned false Implemented in OpenViBE::Kernel::CPluginModule, and OpenViBE::Kernel::CPluginModuleBase.
|
pure virtual |
Uninitializes this plugin module.
This function calls the onUninitialize main function of the plugin module.
Implemented in OpenViBE::Kernel::CPluginModuleBase, and OpenViBE::Kernel::CPluginModule.