![]() |
IDS peak genericC++ v1.13.0
|
Interface defining the structure and behavior of a processing pipeline. More...
#include <peak_common/pipeline/peak_common_ipipeline.hpp>
Public Member Functions | |
| virtual | ~IPipeline ()=default |
| virtual void | ExportSettingsToFile (const std::string &filePath) const =0 |
| Saves the current settings of the pipeline and its modules to a file. | |
| virtual void | ImportSettingsFromFile (const std::string &filePath)=0 |
| Loads the settings of the pipeline and its modules from a file. | |
| virtual PEAK_COMMON_NO_DISCARD std::string | ExportSettingsToString () const =0 |
| Returns the current settings of the pipeline and its modules as a string. | |
| virtual void | ImportSettingsFromString (const std::string &settings)=0 |
| Loads settings for the pipeline and its modules from a string. | |
| virtual void | ResetToDefault ()=0 |
| Resets the pipeline and its modules to their default state. | |
| virtual PEAK_COMMON_NO_DISCARD peak::common::Any | Process (const peak::common::Any &input) const =0 |
| Processes the input through all pipeline modules and returns the result. | |
| virtual peak::common::Any | operator<< (const peak::common::Any &input)=0 |
| Convenience operator for processing input using the pipeline. | |
| virtual PEAK_COMMON_NO_DISCARD const char * | GetType () const =0 |
| Returns the type identifier of the pipeline. | |
Protected Member Functions | |
| virtual PEAK_COMMON_NO_DISCARD std::vector< std::shared_ptr< modules::IModule > > | GetModules () const =0 |
| Retrieves the list of all modules in the pipeline, in execution order. | |
Interface defining the structure and behavior of a processing pipeline.
A pipeline is composed of multiple modules chained together in a defined order. When an input is processed, each module's Process function is called sequentially, and the final result is returned.
|
virtualdefault |
|
pure virtual |
Saves the current settings of the pipeline and its modules to a file.
| filePath | Path to the file where the settings should be saved. |
Implemented in peak::pipeline::PipelineBase.
|
pure virtual |
Returns the current settings of the pipeline and its modules as a string.
|
protectedpure virtual |
Retrieves the list of all modules in the pipeline, in execution order.
|
pure virtual |
Returns the type identifier of the pipeline.
This is a unique string used to identify the specific pipeline implementation.
|
pure virtual |
Loads the settings of the pipeline and its modules from a file.
| filePath | Path to the file from which settings should be loaded. |
Implemented in peak::pipeline::PipelineBase.
|
pure virtual |
Loads settings for the pipeline and its modules from a string.
| settings | String containing serialized pipeline settings. |
|
pure virtual |
Convenience operator for processing input using the pipeline.
Equivalent to calling Process(input).
| input | The input to process. |
Implemented in peak::pipeline::PipelineBase.
|
pure virtual |
Processes the input through all pipeline modules and returns the result.
The input is passed through each module in sequence.
| input | The input to process. |
Implemented in peak::pipeline::PipelineBase.
|
pure virtual |
Resets the pipeline and its modules to their default state.