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

Public Member Functions

 DataFieldAccessor (Client *client, caffa::ObjectHandle *fieldOwner, const std::string &fieldName)
 
std::unique_ptr< caffa::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...
 

Member Function Documentation

◆ clone()

template<class DataType >
std::unique_ptr<caffa::DataFieldAccessor<DataType> > caffa::rpc::DataFieldAccessor< DataType >::clone ( ) const
inlineoverridevirtual

Clone the accessor using polymorphism.

Returns
A unique pointer to object of implementation class.

Implements caffa::DataFieldAccessor< DataType >.

◆ setValue()

template<class DataType >
void caffa::rpc::DataFieldAccessor< 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<class DataType >
DataType caffa::rpc::DataFieldAccessor< 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: