Log manager. More...
Public Member Functions | |
Plugin modules/descriptors management | |
virtual OpenViBE::boolean | addPluginsFromFiles (const OpenViBE::CString &rFileNameWildCard)=0 |
Loads new DLL/so plugin module file(s) More... | |
virtual OpenViBE::boolean | registerPluginDesc (const OpenViBE::Plugins::IPluginObjectDesc &rPluginObjectDesc)=0 |
Registers a plugin object descriptor. More... | |
virtual OpenViBE::CIdentifier | getNextPluginObjectDescIdentifier (const OpenViBE::CIdentifier &rPreviousIdentifier) const =0 |
Gets next plugin object descriptor identifier. More... | |
virtual OpenViBE::CIdentifier | getNextPluginObjectDescIdentifier (const OpenViBE::CIdentifier &rPreviousIdentifier, const OpenViBE::CIdentifier &rBaseClassIdentifier) const =0 |
Gets next plugin object descriptor identifier given a base class identifier. More... | |
virtual OpenViBE::boolean | canCreatePluginObject (const OpenViBE::CIdentifier &rClassIdentifier)=0 |
Checks if a plugin object can be created or not. More... | |
virtual const OpenViBE::Plugins::IPluginObjectDesc * | getPluginObjectDesc (const OpenViBE::CIdentifier &rIdentifier) const =0 |
Gets details on a specific plugin object descriptor. More... | |
virtual const OpenViBE::Plugins::IPluginObjectDesc * | getPluginObjectDescCreating (const OpenViBE::CIdentifier &rClassIdentifier) const =0 |
Gets details on a specific plugin object descriptor given the class identifier it should create. More... | |
Plugin lifetime management | |
virtual OpenViBE::CIdentifier | getPluginObjectHashValue (const OpenViBE::CIdentifier &rClassIdentifier) const =0 |
Gets a hash value for a given plugin. More... | |
virtual OpenViBE::CIdentifier | getPluginObjectHashValue (const OpenViBE::Plugins::IBoxAlgorithmDesc &rBoxAlgorithmDesc) const =0 |
virtual OpenViBE::boolean | isPluginObjectFlaggedAsDeprecated (const OpenViBE::CIdentifier &rClassIdentifier) const =0 |
Gets a hint whether a plugin is deprecated or not. More... | |
Plugin creation and destruction | |
virtual OpenViBE::Plugins::IPluginObject * | createPluginObject (const OpenViBE::CIdentifier &rClassIdentifier)=0 |
Creates a new plugin object given its class identifier. More... | |
virtual OpenViBE::boolean | releasePluginObject (OpenViBE::Plugins::IPluginObject *pPluginObject)=0 |
Tells the plugin manager a plugin object won't be ever used. More... | |
Helpers | |
virtual OpenViBE::Plugins::IAlgorithm * | createAlgorithm (const OpenViBE::CIdentifier &rClassIdentifier, const OpenViBE::Plugins::IAlgorithmDesc **ppAlgorithmDesc)=0 |
Creates a new algorithm given its class identifier and eventually returns the associated descriptor. More... | |
virtual OpenViBE::Plugins::IAlgorithm * | createAlgorithm (const OpenViBE::Plugins::IAlgorithmDesc &rAlgorithmDesc)=0 |
Creates a new algorithm given a descriptor. More... | |
virtual OpenViBE::Plugins::IBoxAlgorithm * | createBoxAlgorithm (const OpenViBE::CIdentifier &rClassIdentifier, const OpenViBE::Plugins::IBoxAlgorithmDesc **ppBoxAlgorithmDesc)=0 |
Creates a new box algorithm given its class identifier and eventually returns the associated descriptor. More... | |
Public Member Functions inherited from IObject | |
virtual OpenViBE::CIdentifier | getClassIdentifier (void) const =0 |
Returns the final class identifier of the concrete class. More... | |
virtual OpenViBE::boolean | isDerivedFromClass (const OpenViBE::CIdentifier &rClassIdentifier) const |
Checks if this object is compatible with a class identifier. More... | |
virtual OpenViBE::boolean | acceptVisitor (OpenViBE::IObjectVisitor &rObjectVisitor) |
Requests this object to accept a visitor. More... | |
Detailed Description
Log manager.
- Date
- 2006-09-26
The plugin manager is in charge of loading/unloading plugin modules (ie DLL/so files) containing OpenViBE plugins. It also provides functions in order to list plugin descriptors, create or release plugin objects...
Member Function Documentation
|
pure virtual |
Loads new DLL/so plugin module file(s)
- Parameters
-
rFileNameWildCard [in] : a wild card with the file(s) to search plugins in
- Returns
- true in case of success.
- false in case of error.
Referenced by KernelFacade::loadKernel().
|
pure virtual |
Registers a plugin object descriptor.
- Parameters
-
rPreviousIdentifier [in] : the actual plugin object descriptor to register
- Returns
- true in case of success.
- false in case of error.
|
pure virtual |
Gets next plugin object descriptor identifier.
- Parameters
-
rPreviousIdentifier [in] : The identifier for the preceeding plugin object descriptor
- Returns
- The identifier of the next plugin object descriptor in case of success.
-
OV_UndefinedIdentifier
on error.
- Note
- Giving
OV_UndefinedIdentifier
asrPreviousIdentifier
will cause this function to return the first plugin object descriptor identifier.
|
pure virtual |
Gets next plugin object descriptor identifier given a base class identifier.
- Parameters
-
rPreviousIdentifier [in] : The identifier for the preceeding plugin object descriptor rBaseClassIdentifier [in] : the class the plugin object descriptor should derive from
- Returns
- The identifier of the next plugin object descriptor in case of success.
-
OV_UndefinedIdentifier
on error.
- Note
- Giving
OV_UndefinedIdentifier
asrPreviousIdentifier
will cause this function to return the first plugin object descriptor identifier.
|
pure virtual |
Checks if a plugin object can be created or not.
- Parameters
-
rClassIdentifier [in] : the class identifier a descriptor should be able to create
- Returns
- true in case this manager is able to create a plugin object with the provided class identifier.
- false in other case.
|
pure virtual |
Gets details on a specific plugin object descriptor.
- Parameters
-
rIdentifier [in] : the plugin object descriptor identifier which details should be returned
- Returns
- the corresponding plugin object descriptor pointer.
|
pure virtual |
Gets details on a specific plugin object descriptor given the class identifier it should create.
- Parameters
-
rClassIdentifier [in] : the plugin object class identifier of the descriptor which details should be returned
- Returns
- the corresponding plugin object descriptor pointer.
- See also
- canCreatePluginObject
|
pure virtual |
Gets a hash value for a given plugin.
- Parameters
-
rClassIdentifier [in] : the class identifier of the plugin which hash value has to be returned
- Returns
- a hash code for the corresponding plugin object
This function can be used to compute a has code of the described plugin object If this hash code differs from session to session, it means that the plugin descriptor changed in some way.
- Note
- The method used to compute the hash code is specific to the class of plugin that is considered (for example, for box algorithms, the hash code is based on what OpenViBE::Kernel::IBoxProto receives at description stage)
|
pure virtual |
Gets a hint whether a plugin is deprecated or not.
- Parameters
-
rClassIdentifier [in] : the class identifier of the plugin which deprecation should be returned
- Returns
- true in case the plugin is deprecated
- false in case the plugin is not deprecated
If this function returns true, this means that the considered plugin is still valid and functionnal but that it will be removed soon or later. Code relying on this plugin should consider any alternative available to avoid future problems.
|
pure virtual |
Creates a new plugin object given its class identifier.
- Parameters
-
rClassIdentifier [in] : the class identifier of the plugin object to create
- Returns
- a pointer on the newly created plugin object.
-
NULL
in case of error.
- See also
- releasePluginObject
|
pure virtual |
Tells the plugin manager a plugin object won't be ever used.
- Parameters
-
pPluginObject [in] : the plugin object to release
- Returns
- true in case of success.
- false in case of error.
The client code should not call any function of the plugin object after this call has been made. However, the plugin manager is free to release allocated memory and resources for this plugin object.
|
pure virtual |
Creates a new algorithm given its class identifier and eventually returns the associated descriptor.
- Parameters
-
rClassIdentifier [in] : the class identifier of the algorithm to create ppAlgorithmDesc [out] : a pointer where to store the descriptor information
- Returns
- The newly created algorithm in case of success.
-
NULL
in case of error.
This function is a helper for the use of createPluginObject
and co.
|
pure virtual |
Creates a new algorithm given a descriptor.
- Parameters
-
rAlgorithmDesc [in] : the class descriptor of the algorithm to create
- Returns
- The newly created algorithm in case of success.
-
NULL
in case of error.
This function is a helper for the use of createPluginObject
and co.
|
pure virtual |
Creates a new box algorithm given its class identifier and eventually returns the associated descriptor.
- Parameters
-
rClassIdentifier [in] : the class identifier of the box algorithm to create ppBoxAlgorithmDesc [out] : a pointer where to store the descriptor information
- Returns
- The newly created box algorithm in case of success.
-
NULL
in case of error.
This function is a helper for the use of createPluginObject
and co.
Generated on Tue Jun 26 2012 15:25:54 for Documentation by 1.7.4