Caffa  1.1.0
C++ Application Framework for Embedded Systems with introspection
Public Member Functions | List of all members
caffa::FieldProxyAccessor< DataType > Class Template Reference
Inheritance diagram for caffa::FieldProxyAccessor< DataType >:
Inheritance graph
[legend]
Collaboration diagram for caffa::FieldProxyAccessor< DataType >:
Collaboration graph
[legend]

Public Member Functions

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...
 
void registerSetMethod (typename SetterMethodCB< DataType >::SetterMethodType setterMethod)
 
void registerGetMethod (typename GetterMethodCB< DataType >::GetterMethodType getterMethod)
 
bool hasSetter () const
 
bool hasGetter () const
 

Member Function Documentation

◆ clone()

template<typename DataType >
std::unique_ptr<DataFieldAccessor<DataType> > caffa::FieldProxyAccessor< DataType >::clone ( ) const
inlineoverridevirtual

Clone the accessor using polymorphism.

Returns
A unique pointer to object of implementation class.

Implements caffa::DataFieldAccessor< DataType >.

◆ setValue()

template<typename DataType >
void caffa::FieldProxyAccessor< DataType >::setValue ( const DataType &  value)
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.

Parameters
valueThe value to set

Implements caffa::DataFieldAccessor< DataType >.

◆ value()

template<typename DataType >
DataType caffa::FieldProxyAccessor< DataType >::value ( )
inlineoverridevirtual

Get the field value.

Returns
Field value

Implements caffa::DataFieldAccessor< DataType >.


The documentation for this class was generated from the following file: