|
static QString | regExpAnchoredPattern (const QString &expression) |
|
static QString | wildcardToRegularExpression (const QString &pattern) |
|
|
| Q_DECLARE_PUBLIC (AddInManager) |
|
int | getItemNum (const void *item) |
|
int | getPluginNum (const QString &name, ito::AddInInterfaceBase *&addIn) |
|
const RetVal | saveParamVals (ito::AddInBase *plugin) |
|
const RetVal | loadParamVals (ito::AddInBase *plugin) |
|
void | incRefParamPlugins (ito::AddInBase *ai, QVector< ito::ParamBase > *paramsMand, QVector< ito::ParamBase > *paramsOpt) |
|
ito::RetVal | decRefParamPlugins (ito::AddInBase *ai) |
|
const RetVal | decRef (ito::AddInBase **plugin) |
|
const RetVal | closeAddIn (AddInBase *addIn, ItomSharedSemaphore *aimWait=NULL) |
|
template<typename _Tp > |
const RetVal | initAddInActuatorOrDataIO (bool actuatorNotDataIO, const int pluginNum, const QString &name, _Tp **addIn, QVector< ito::ParamBase > *paramsMand, QVector< ito::ParamBase > *paramsOpt, bool autoLoadPluginParams, ItomSharedSemaphore *aimWait=NULL) |
|
const RetVal | initAddInAlgo (const int pluginNum, const QString &name, ito::AddInAlgo **addIn, QVector< ito::ParamBase > *paramsMand, QVector< ito::ParamBase > *paramsOpt, bool autoLoadPluginParams, ItomSharedSemaphore *aimWait=NULL) |
|
◆ closeAddIn()
closeAddIn close an instance of an actuator addIn object
- Parameters
-
[in] | addIn | the addIn to close |
- Returns
- on success ito::retOk, ito::retError otherwise
At first the close method of the plugin class is invoked. Then the closeInst method of the addInInterfaceBase is called.
◆ closeDeadPlugins
RetVal ito::AddInManagerPrivate::closeDeadPlugins |
( |
| ) |
|
|
privateslot |
◆ decRef()
decRef decrement reference counter of addin and close it if necessary
- Parameters
-
[in] | addIn | the addIn to increment reference |
- Returns
- on success ito::retOk, ito::retError otherwise
The method decrements the reference counter of the addin.
◆ decRefParamPlugins()
decrements the reference counter of arguments passed to a plugin if necessary
- Parameters
-
[in] | ai | AddIn to which the parameters are passed |
[in] | paramsMand | mandatory argument parameters |
[in] | paramsOpt | optional argument parameters |
This function decrements the reference counter of plugins passed to other plugins as parameters, to enable a closing of the passed plugins when they are no longer used by any other plugin.
◆ incRefParamPlugins()
increments the reference counter of arguments passed to a plugin if necessary
- Parameters
-
[in] | ai | AddIn to which the parameters are passed |
[in] | paramsMand | mandatory argument parameters |
[in] | paramsOpt | optional argument parameters |
This function increments the reference counter of plugins passed to other plugins as parameters, to avoid the passed plugins are closed while they are still in use by the other plugin.
◆ initAddInActuatorOrDataIO()
template<typename _Tp >
const ito::RetVal ito::AddInManagerPrivate::initAddInActuatorOrDataIO |
( |
bool | actuatorNotDataIO, |
|
|
const int | pluginNum, |
|
|
const QString & | name, |
|
|
_Tp ** | addIn, |
|
|
QVector< ito::ParamBase > * | paramsMand, |
|
|
QVector< ito::ParamBase > * | paramsOpt, |
|
|
bool | autoLoadPluginParams, |
|
|
ItomSharedSemaphore * | aimWait ) |
initAddIn initialize new instance of a dataIO addIn class
- Parameters
-
[in] | actuatorNotDataIO | true if an actuator plugin should be initialized, else false |
[in] | pluginNum | number of the plugin in the plugin list, retrieved with getInitParams |
[in] | name | name of the plugin to be initialized, this just a check that number and name correspond, principally it should not be necessary to pass the name |
[out] | addIn | pointer to the new instance of the plugin class |
[in] | paramsMand | mandatory initialisation parameters which are required by the initialisation. As this vector should(must) be retrieved from the plugin previously with the getInitParams method it should always be filled with meaningful values |
[in] | paramsOpt | mandatory initialisation parameters which may optionally be passed to the initialisation. As this vector should(must) be retrieved from the plugin previously with the getInitParams method it should always be filled with meaningful values |
[in,out] | aimWait | wait condition for calls from other threads. See also ItomSharedSemaphore |
- Returns
- on success ito::retOk, ito::retError otherwise
A new instance from the addIn class is created then the newly created object is moved into a new thread. Afterwards the classes init method is invoked with the passed mandatory and optional parameters. As a last step the plugins parameters are loaded from the plugins parameters xml file loadParamVals.
◆ initAddInAlgo()
initAddInAlgo initialize new instance of a algo addIn class
- Parameters
-
[in] | pluginNum | number of the plugin in the plugin list, retrieved with getInitParams |
[in] | name | name of the plugin to be initialized, this just a check that number and name correspond, principally it should not be necessary to pass the name |
[out] | addIn | pointer to the new instance of the plugin class |
[in] | paramsMand | mandatory initialisation parameters which are required by the initialisation. As this vector should(must) be retrieved from the plugin previously with the getInitParams method it should always be filled with meaningful values |
[in] | paramsOpt | mandatory initialisation parameters which may optionally be passed to the initialisation. As this vector should(must) be retrieved from the plugin previously with the getInitParams method it should always be filled with meaningful values |
- Returns
- on success ito::retOk, ito::retError otherwise
new instance from the addIn class is created. In contrast to the dataIO and actuator plugins the new object is not moved to a new thread and no init method is called. As a last step the plugins parameters are loaded from the plugins parameters xml file loadParamVals.
◆ initDockWidget()
initAddIn initialize new instance of a dataIO addIn class
- Parameters
-
[in] | addIn | pointer to newly initialized pluginIn |
- Returns
- on success ito::retOk
checks if addIn has a docking widget and if so, registers this docking widget to mainWindow
◆ loadAddIn()
RetVal ito::AddInManagerPrivate::loadAddIn |
( |
QString & | filename | ) |
|
|
protected |
◆ loadAddInActuator()
◆ loadAddInAlgo()
◆ loadAddInDataIO()
◆ loadParamVals()
loadParamVals loads the plugins parameter values from the plugin parameter xml file
- Parameters
-
[in] | plugin | plugin for which the parameter should be loaded |
A xml file with the same name as the plugin library in the plugin directory is used to load the plugin parameters. The xml file is checked for the current plugin-file version and type when opened. The parameters are set using the invokeMethod function on the plugins' setParam method.
◆ registerPluginAsDeadPlugin()
◆ saveParamVals()
saveParamVals saves the plugins parameter values to the plugin parameter xml file
- Parameters
-
[in] | plugin | plugin for which the parameter should be saved |
A xml file with the same name as the plugin library in the plugin directory is used to save the plugin parameters. The xml file is checked for the current plugin-file version and type when opened. The parameters are stored underneath the unique ID of the instance currently closed. This enables to have a several parameter sets for one plugin. Each parameter is stored with its name, type and value. The type may be either number or string.
The documentation for this class was generated from the following files:
- C:/Workspace/itom_development_VS2019_Qt5.15.2_x64/itomProject/itom/AddInManager/addInManagerPrivate.h
- C:/Workspace/itom_development_VS2019_Qt5.15.2_x64/itomProject/itom/AddInManager/addInManagerPrivate.cpp