IDS peak ICV v1.0.0
Loading...
Searching...
No Matches
IPipeline Class Referenceabstract

#include <peak_common/pipeline/peak_common_ipipeline.hpp>

Inheritance diagram for IPipeline:

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 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.
 

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

Definition at line 51 of file peak_common_ipipeline.hpp.

Constructor & Destructor Documentation

◆ ~IPipeline()

virtual ~IPipeline ( )
virtualdefault

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

Implemented in DefaultPipeline.

◆ 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

Implemented in DefaultPipeline.

◆ 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

Implemented in DefaultPipeline.

◆ 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 output.
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 output.
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

Implemented in DefaultPipeline.