Class DeviceProperty
Defined in File props.h
Inheritance Relationships
Derived Types
public ExternalProperty
(Class ExternalProperty)public FunctionProperty
(Class FunctionProperty)public InternalProperty
(Class InternalProperty)
Class Documentation
-
class DeviceProperty
Base class for all device properties.
Abstract base class that defines the interface for all property types. Properties can be backed by internal values, external variables, or functions.
Subclassed by ExternalProperty, FunctionProperty, InternalProperty
Public Functions
-
inline explicit DeviceProperty(PropertyAccess access)
Constructor.
- Parameters:
access – Access control for this property
-
virtual ~DeviceProperty() = default
Virtual destructor.
-
virtual uint32_t get_value() const = 0
Get the current value of the property.
- Returns:
Current property value
-
virtual void set_value(uint32_t newValue) = 0
Set the value of the property.
- Parameters:
newValue – New value to set
Protected Attributes
-
PropertyAccess access
Access control for this property
-
inline explicit DeviceProperty(PropertyAccess access)