![]() |
IDS peak AFL v2.0.1
|
Interface for a module used within a pipeline. More...
#include <peak_common/pipeline/modules/peak_common_imodule.hpp>
Public Member Functions | |
| virtual void | SetEnabled (bool enabled)=0 |
| Sets the enabled state of the module. | |
| virtual bool | IsEnabled () const =0 |
| Checks whether the module is currently enabled. | |
| virtual const char * | GetType () const =0 |
| Returns the type identifier of the module. | |
| virtual peak::common::Any | Process (const peak::common::Any &input) const =0 |
| Processes input data and returns the result. | |
| virtual void | ResetToDefault ()=0 |
| Resets the module to its default state. The enabled state is not reset. | |
| Public Member Functions inherited from ISerializable | |
| virtual void | Serialize (IArchive &archive) const =0 |
| Serializes the current object into the provided archive. | |
| virtual void | Deserialize (const IArchive &archive)=0 |
| Deserializes the object's state from the provided archive. | |
Interface for a module used within a pipeline.
Defines the required functions that must be implemented by any module participating in the pipeline. Modules must support enabling/disabling, processing input, and serialization.
|
pure virtual |
Returns the type identifier of the module.
This should be a unique string identifying the specific implementation of the module.
Implemented in AdvancedAutoFeatures, and BasicAutoFeatures.
|
pure virtual |
Checks whether the module is currently enabled.
Implemented in AdvancedAutoFeatures, and BasicAutoFeatures.
|
pure virtual |
Processes input data and returns the result.
This function is called by the pipeline to process a unit of data.
| input | The input data to be processed. |
Implemented in AdvancedAutoFeatures, and BasicAutoFeatures.
|
pure virtual |
Resets the module to its default state. The enabled state is not reset.
Implemented in AdvancedAutoFeatures, and BasicAutoFeatures.
|
pure virtual |
Sets the enabled state of the module.
| enabled | True to enable the module, false to disable it. |
Implemented in AdvancedAutoFeatures, and BasicAutoFeatures.