80 stream.exceptions(std::ios::badbit | std::ios::failbit);
84 stream.open(filePath);
88 catch (
const std::ios_base::failure& e)
97 stream.exceptions(std::ios::badbit | std::ios::failbit);
101 stream.open(filePath);
103 std::stringstream ss;
104 ss << stream.rdbuf();
108 catch (
const std::ios_base::failure& e)
125 data =
module->Process(data);
A type-erased container for any copyable value.
Definition peak_common_any.hpp:36
Thrown when an input, output, file or device communication error occurs.
Definition peak_common_exceptions.hpp:137
Interface defining the structure and behavior of a processing pipeline.
Definition peak_common_ipipeline.hpp:52
virtual PEAK_COMMON_NO_DISCARD std::string ExportSettingsToString() const =0
Returns the current settings of the pipeline and its modules as a string.
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.
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:35
PEAK_COMMON_NO_DISCARD peak::common::Any operator<<(const peak::common::Any &input) override
Convenience operator for processing input using the pipeline.
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:94
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:77
PEAK_COMMON_NO_DISCARD 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:119
#define PEAK_COMMON_NO_DISCARD
Compatability macro for the nodiscard attribute.
Definition peak_common_defines.hpp:91
Interfaces and implementations for defining and controlling data processing pipelines.
Definition peak_common_iautofeature_module.hpp:21
The "peak" namespace directly contains convenience functionality like the DeviceManager as well as th...
Definition peak_dynamic_loader.h:33