IDS peak AFL v2.1.0
Loading...
Searching...
No Matches
peak_common_imodule.hpp
Go to the documentation of this file.
1
5
6#pragma once
7
10
11namespace peak
12{
13namespace pipeline
14{
27namespace modules
28{
40{
41public:
42 ~IModule() override = default;
43
51 virtual void SetEnabled(bool enabled) = 0;
52
60 PEAK_COMMON_NO_DISCARD virtual bool IsEnabled() const = 0;
61
72 PEAK_COMMON_NO_DISCARD virtual const char* GetType() const = 0;
73
85 PEAK_COMMON_NO_DISCARD virtual peak::common::Any Process(const peak::common::Any& input) const = 0;
86
92 virtual void ResetToDefault() = 0;
93};
94} // namespace modules
95} // namespace pipeline
96} // namespace peak
A type-erased container for any copyable value.
Definition peak_common_any.hpp:31
Interface for objects that can be serialized to and deserialized from an archive.
Definition peak_common_iserializable.hpp:26
Interface for a module used within a pipeline.
Definition peak_common_imodule.hpp:40
virtual void SetEnabled(bool enabled)=0
Sets the enabled state of the module.
virtual peak::common::Any Process(const peak::common::Any &input) const =0
Processes input data and returns the result.
virtual void ResetToDefault()=0
Resets the module to its default state. The enabled state is not reset.
virtual bool IsEnabled() const =0
Checks whether the module is currently enabled.
virtual const char * GetType() const =0
Returns the type identifier of the module.
Interface definitions and implementations for individual module types used within a pipeline.
Definition peak_afl_generic_auto_brightness.hpp:35
Interfaces and implementations for defining and controlling data processing pipelines.
Definition peak_afl_generic_auto_brightness.hpp:33