Exectution context for algorithm objects.
More...
#include <ovIAlgorithmContext.h>
Exectution context for algorithm objects.
- Author
- Yann Renard (INRIA/IRISA)
- Date
- 2007-11-06
- See also
- Plugins::IAlgorithm
◆ getConfigurationManager()
Gets a reference on the current configuration manager.
- Returns
- a reference on the configuration manager
- Warning
- The algorithm should not use this reference after it has finished its work, it could be deprecated.
Implemented in OpenViBE::Kernel::CAlgorithmContext.
◆ getAlgorithmManager()
virtual IAlgorithmManager & OpenViBE::Kernel::IAlgorithmContext::getAlgorithmManager |
( |
| ) |
const |
|
pure virtual |
Gets a reference on the current algorithm manager.
- Returns
- a reference on the algorithm manager
- Warning
- The algorithm should not use this reference after it has finished its work, it could be deprecated.
Implemented in OpenViBE::Kernel::CAlgorithmContext.
◆ getLogManager()
virtual ILogManager & OpenViBE::Kernel::IAlgorithmContext::getLogManager |
( |
| ) |
const |
|
pure virtual |
Gets a reference on the current log manager.
- Returns
- a reference on the current log manager
- Warning
- The algorithm should not use this reference after it has finished its work, it could be deprecated.
Implemented in OpenViBE::Kernel::CAlgorithmContext.
◆ getErrorManager()
virtual CErrorManager & OpenViBE::Kernel::IAlgorithmContext::getErrorManager |
( |
| ) |
const |
|
pure virtual |
Gets a reference on the current error manager.
- Returns
- a reference on the current error manager
- Warning
- The algorithm should not use this reference after it has finished its work, it could be deprecated.
Implemented in OpenViBE::Kernel::CAlgorithmContext.
◆ getTypeManager()
virtual ITypeManager & OpenViBE::Kernel::IAlgorithmContext::getTypeManager |
( |
| ) |
const |
|
pure virtual |
◆ getNextInputParameterIdentifier()
virtual CIdentifier OpenViBE::Kernel::IAlgorithmContext::getNextInputParameterIdentifier |
( |
const CIdentifier & |
prevInputParameterID | ) |
const |
|
pure virtual |
Gets next input parameter identifier given the previous input parameter.
- Parameters
-
prevInputParameterID | [in] : the previous input parameter |
- Returns
- the next input parameter identifier if existing.
-
CIdentifier::undefined()
if the previous was the last input parameter identifier.
- Note
- Passing
CIdentifier::undefined()
as prevInputParameterID
will cause this function to return the firs input parameter identifier.
Implemented in OpenViBE::Kernel::CAlgorithmContext.
◆ getInputParameter()
Gets the parameter details of a specific input parameter.
- Parameters
-
id | [in] : the identifier of the parameter which details should be returned |
- Returns
- the parameter pointer that corresponds to the provided identifier.
-
NULL
in case of error.
Implemented in OpenViBE::Kernel::CAlgorithmContext.
◆ getNextOutputParameterIdentifier()
virtual CIdentifier OpenViBE::Kernel::IAlgorithmContext::getNextOutputParameterIdentifier |
( |
const CIdentifier & |
prevOutputParameterID | ) |
const |
|
pure virtual |
Gets next output parameter identifier given the previous output parameter.
- Parameters
-
prevOutputParameterID | [in] : the previous output parameter |
- Returns
- the next output parameter identifier if existing.
-
CIdentifier::undefined()
if the previous was the last output parameter identifier.
- Note
- Passing
CIdentifier::undefined()
as prevOutputParameterID
will cause this function to return the firs output parameter identifier.
Implemented in OpenViBE::Kernel::CAlgorithmContext.
◆ getOutputParameter()
Gets the parameter details of a specific output parameter.
- Parameters
-
id | [in] : the identifier of the parameter which details should be returned |
- Returns
- the parameter pointer that corresponds to the provided identifier.
-
NULL
in case of error.
Implemented in OpenViBE::Kernel::CAlgorithmContext.
◆ isInputTriggerActive()
virtual bool OpenViBE::Kernel::IAlgorithmContext::isInputTriggerActive |
( |
const CIdentifier & |
id | ) |
const |
|
pure virtual |
Tests whether an input trigger is activated or not.
- Parameters
-
id | [in] : the identifier of the input trigger which activation status should be returned |
- Returns
- true if the provided trigger is currently active.
-
false if the provided trigger is not currently active or does not exist.
Implemented in OpenViBE::Kernel::CAlgorithmContext.
◆ activateOutputTrigger()
virtual bool OpenViBE::Kernel::IAlgorithmContext::activateOutputTrigger |
( |
const CIdentifier & |
id, |
|
|
const bool |
state |
|
) |
| |
|
pure virtual |
Activates an output trigger before calling the processing function.
- Parameters
-
id | [in] : the identifier of the output to activate |
state | [in]: the new trigger state this output trigger should take (true for active, false for inactive) |
- Returns
- true in case the state was correctly changed.
-
false in case the state was not changed or the provided trigger identifier does not exist.
Implemented in OpenViBE::Kernel::CAlgorithmContext.