75 explicit AutoTolerance(std::shared_ptr<peak::afl::Controller> controller)
76 : m_controller{ std::move(controller) }
101 void Set(
const uint32_t& value)
override
103 m_controller->SetAutoTolerance(value);
124 return m_controller->GetAutoTolerance();
149 const auto result = m_controller->GetAutoToleranceRange();
150 return { result.min, result.max, result.inc };
189 Set(
static_cast<uint32_t
>(archive.
GetInt(
"AutoTolerance")));
200 std::shared_ptr<peak::afl::Controller> m_controller;
Interface for a hierarchical key-value archive system.
Definition peak_common_iarchive.hpp:59
virtual void SetInt(const std::string &key, int64_t value)=0
Stores a 64-bit signed integer.
virtual int64_t GetInt(const std::string &key) const =0
Retrieves a 64-bit signed integer by key.
AutoTolerance(std::shared_ptr< peak::afl::Controller > controller)
Constructs an AutoTolerance feature with the specified controller.
Definition peak_afl_auto_tolerance.hpp:75
void Set(const uint32_t &value) override
Sets the auto tolerance value.
Definition peak_afl_auto_tolerance.hpp:101
uint32_t Get() const override
Gets the current auto tolerance value.
Definition peak_afl_auto_tolerance.hpp:122
void Serialize(peak::common::serialization::IArchive &archive) const override
Serializes the current auto tolerance value to an archive.
Definition peak_afl_auto_tolerance.hpp:167
peak::common::RangeU GetRange() const override
Gets the valid range for auto tolerance values.
Definition peak_afl_auto_tolerance.hpp:147
void Deserialize(const peak::common::serialization::IArchive &archive) override
Deserializes the auto tolerance value from an archive.
Definition peak_afl_auto_tolerance.hpp:187
Interface for features that have a valid range of values.
Definition peak_afl_ifeature.hpp:126
#define PEAK_COMMON_NO_DISCARD
Compatability macro for the nodiscard attribute.
Definition peak_common_defines.h:86
detail::RangeT< uint32_t > RangeU
Alias for a range of 32-bit unsigned integers.
Definition peak_common_range.hpp:132
Interface definitions and implementations for individual module types used within a pipeline.
Definition peak_afl_generic_auto_brightness.hpp:39
Interfaces and implementations for defining and controlling data processing pipelines.
Definition peak_afl_generic_auto_brightness.hpp:37