IDS peak AFL v2.0.0
Loading...
Searching...
No Matches
IPipeline Class Referenceabstract

Interface defining the structure and behavior of a processing pipeline. More...

#include <peak_common/pipeline/peak_common_ipipeline.hpp>

Inheritance diagram for IPipeline:
PipelineBase

Public Member Functions

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 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::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 const char * GetType () const =0
 Returns the type identifier of the pipeline.

Protected Member Functions

virtual std::vector< std::shared_ptr< modules::IModule > > GetModules () const =0
 Retrieves the list of all modules in the pipeline, in execution order.

Detailed Description

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.

Since
ids_peak_common 1.0

Member Function Documentation

◆ ExportSettingsToFile()

virtual void ExportSettingsToFile ( const std::string & filePath) const
pure virtual

Saves the current settings of the pipeline and its modules to a file.

Parameters
filePathPath to the file where the settings should be saved.
Since
ids_peak_common 1.0

Implemented in PipelineBase.

◆ ExportSettingsToString()

virtual std::string ExportSettingsToString ( ) const
pure virtual

Returns the current settings of the pipeline and its modules as a string.

Returns
A string representation of the pipeline settings.
Since
ids_peak_common 1.0

◆ GetModules()

virtual std::vector< std::shared_ptr< modules::IModule > > GetModules ( ) const
protectedpure virtual

Retrieves the list of all modules in the pipeline, in execution order.

Returns
A vector of shared pointers to the modules.
Since
ids_peak_common 1.0

◆ GetType()

virtual const char * GetType ( ) const
pure virtual

Returns the type identifier of the pipeline.

This is a unique string used to identify the specific pipeline implementation.

Returns
A null-terminated string representing the pipeline type.
Since
ids_peak_common 1.0

◆ ImportSettingsFromFile()

virtual void ImportSettingsFromFile ( const std::string & filePath)
pure virtual

Loads the settings of the pipeline and its modules from a file.

Parameters
filePathPath to the file from which settings should be loaded.
Since
ids_peak_common 1.0

Implemented in PipelineBase.

◆ ImportSettingsFromString()

virtual void ImportSettingsFromString ( const std::string & settings)
pure virtual

Loads settings for the pipeline and its modules from a string.

Parameters
settingsString containing serialized pipeline settings.
Since
ids_peak_common 1.0

◆ operator<<()

virtual peak::common::Any operator<< ( const peak::common::Any & input)
pure virtual

Convenience operator for processing input using the pipeline.

Equivalent to calling Process(input).

Parameters
inputThe input to process.
Returns
The processed input.
Since
ids_peak_common 1.0

Implemented in PipelineBase.

◆ Process()

virtual peak::common::Any Process ( const peak::common::Any & input) const
pure virtual

Processes the input through all pipeline modules and returns the result.

The input is passed through each module in sequence.

Parameters
inputThe input to process.
Returns
The processed input.
Since
ids_peak_common 1.0

Implemented in PipelineBase.

◆ ResetToDefault()

virtual void ResetToDefault ( )
pure virtual

Resets the pipeline and its modules to their default state.

Since
ids_peak_common 1.0

The documentation for this class was generated from the following file: