Caffa
1.1.0
C++ Application Framework for Embedded Systems with introspection
|
Direct storage accessor, which stores data values in local memory. More...
#include <cafDataFieldAccessor.h>
Public Member Functions | |
DataFieldDirectStorageAccessor ()=default | |
Construct a new Data Field Direct Storage Accessor object. | |
DataFieldDirectStorageAccessor (const DataType &value) | |
Construct a new Data Field Direct Storage Accessor object with a default value. More... | |
std::unique_ptr< DataFieldAccessor< DataType > > | clone () const override |
Clone the accessor using polymorphism. More... | |
DataType | value () override |
Get the field value. More... | |
void | setValue (const DataType &value) override |
Set the value with the accessor. Will throw a std::runtime_exception if the accessor has limits and the value is outside those limits. More... | |
Direct storage accessor, which stores data values in local memory.
DataType |
|
inline |
Construct a new Data Field Direct Storage Accessor object with a default value.
value | Default value |
|
inlineoverridevirtual |
Clone the accessor using polymorphism.
Implements caffa::DataFieldAccessor< DataType >.
|
inlineoverridevirtual |
Set the value with the accessor. Will throw a std::runtime_exception if the accessor has limits and the value is outside those limits.
value | The value to set |
Implements caffa::DataFieldAccessor< DataType >.
|
inlineoverridevirtual |