75 stream.exceptions(std::ios::badbit | std::ios::failbit);
79 stream.open(filePath);
83 catch (
const std::ios_base::failure& e)
92 stream.exceptions(std::ios::badbit | std::ios::failbit);
96 stream.open(filePath);
103 catch (
const std::ios_base::failure& e)
120 data =
module->Process(data);
A type-erased container for any copyable value.
Definition peak_common_any.hpp:31
Thrown when an input, output, file or device communication error occurs.
Definition peak_common_exceptions.hpp:140
Interface defining the structure and behavior of a processing pipeline.
Definition peak_common_ipipeline.hpp:49
virtual std::vector< std::shared_ptr< modules::IModule > > GetModules() const =0
Retrieves the list of all modules in the pipeline, in execution order.
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.
Base class for implementing a custom pipeline.
Definition peak_common_pipeline_base.hpp:30
peak::common::Any operator<<(const peak::common::Any &input) override
Convenience operator for processing input using the pipeline.
Definition peak_common_pipeline_base.hpp:109
peak::common::Any Process(const peak::common::Any &input) const override
Processes the input through all pipeline modules and returns the result.
Definition peak_common_pipeline_base.hpp:114
void ImportSettingsFromFile(const std::string &filePath) override
Loads the settings of the pipeline and its modules from a file.
Definition peak_common_pipeline_base.hpp:89
void ExportSettingsToFile(const std::string &filePath) const override
Saves the current settings of the pipeline and its modules to a file.
Definition peak_common_pipeline_base.hpp:72
Interfaces and implementations for defining and controlling data processing pipelines.
Definition peak_afl_generic_auto_brightness.hpp:33