IDS peak ICV v1.2.0
Loading...
Searching...
No Matches
peak_common_imodule.hpp
Go to the documentation of this file.
1
11#pragma once
12
15
16namespace peak
17{
18namespace pipeline
19{
32namespace modules
33{
45{
46public:
47 ~IModule() override = default;
48
56 virtual void SetEnabled(bool enabled) = 0;
57
65 PEAK_COMMON_NO_DISCARD virtual bool IsEnabled() const = 0;
66
77 PEAK_COMMON_NO_DISCARD virtual const char* GetType() const = 0;
78
90 PEAK_COMMON_NO_DISCARD virtual peak::common::Any Process(const peak::common::Any& input) const = 0;
91
97 virtual void ResetToDefault() = 0;
98};
99} // namespace modules
100} // namespace pipeline
101} // namespace peak
A type-erased container for any copyable value.
Interface for objects that can be serialized to and deserialized from an archive.
Interface for a module used within a pipeline.
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.