COSA
An Object-Oriented Platform for Arduino Programming
Registry::Action Class Referenceabstract

#include <Registry.hh>

Collaboration diagram for Registry::Action:
Collaboration graph

Public Member Functions

virtual int run (void *buf, size_t size)=0
 

Detailed Description

Registry Action handler. Must be sub-classed and the virtual member function run() must be implemented. Called after lookup by apply().

Definition at line 203 of file Registry.hh.

Member Function Documentation

virtual int Registry::Action::run ( void *  buf,
size_t  size 
)
pure virtual

Registry action function for given registry item. Should return number of bytes in buffer as return value or negative error code (EINVAL if illegal parameter, ENXIO if no object defined).

Parameters
[in,out]bufpointer to parameter block.
[in]sizeof parameter block.
Returns
number of bytes or negative error code.

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