#include <peak_common/pipeline/peak_common_pipeline_base.hpp>

Public Member Functions | |
| void | ExportSettingsToFile (const std::string &filePath) const override |
| Saves the current settings of the pipeline and its modules to a file. | |
| void | ImportSettingsFromFile (const std::string &filePath) override |
| Loads the settings of the pipeline and its modules from a file. | |
| peak::common::Any | operator<< (const peak::common::Any &input) override |
| Convenience operator for processing input using the pipeline. | |
| peak::common::Any | Process (const peak::common::Any &input) const override |
| Processes the input through all pipeline modules and returns the result. | |
| virtual 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 const char * | GetType () const =0 |
| Returns the type identifier of the pipeline. | |
Base class for implementing a custom pipeline.
Provides a partial implementation of the IPipeline interface. Can be used as a foundation for creating custom pipeline behavior.
|
inlineoverridevirtual |
Saves the current settings of the pipeline and its modules to a file.
This base implementation calls ExportSettingsToString() and writes the resulting string to the specified file path.
| filePath | Path to the file where the settings should be saved. |
Implements IPipeline.
|
pure virtualinherited |
Returns the current settings of the pipeline and its modules as a string.
Implemented in DefaultPipeline.
|
pure virtualinherited |
Returns the type identifier of the pipeline.
This is a unique string used to identify the specific pipeline implementation.
Implemented in DefaultPipeline.
|
inlineoverridevirtual |
Loads the settings of the pipeline and its modules from a file.
This base implementation reads the file contents and passes them to ImportSettingsFromString() to restore the pipeline state.
| filePath | Path to the file from which settings should be loaded. |
Implements IPipeline.
|
pure virtualinherited |
Loads settings for the pipeline and its modules from a string.
| settings | String containing serialized pipeline settings. |
Implemented in DefaultPipeline.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Processes the input through all pipeline modules and returns the result.
This base implementation iterates over all modules using GetModules(), calling each module's Process() method in sequence and passing the result along.
The input is passed through each module in sequence.
| input | The input to process. |
Implements IPipeline.
|
pure virtualinherited |
Resets the pipeline and its modules to their default state.
Implemented in DefaultPipeline.