CPP Device Virtualization API Reference for Oracle Internet of Things Cloud Service Client Software Library. Release 21.1.1.0.0-3. E92477-09
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Pages
iotdcl::Callable Class Referenceabstract

Callback interface for actions in the device model. More...

#include <VirtualDevice.hpp>

Public Member Functions

virtual void call (VirtualDevice *virtualDevice, const NamedValue &data) const =0
 The method called for handling a device model action. More...
 
virtual ~Callable ()
 Desctructor.
 

Detailed Description

Callback interface for actions in the device model.

Deprecated:
This interface does not support actions with multiple arguments. Use iotcs::ActionCallback

Member Function Documentation

virtual void iotdcl::Callable::call ( VirtualDevice virtualDevice,
const NamedValue data 
) const
pure virtual

The method called for handling a device model action.

For an execute action, the generic type should be

Void

. The client library will pass NULL to the call() method if the action is executable. For a write-only action, the generic type should match the expected data type of the action.

Parameters
virtualDevicethe VirtualDevice on which the action is being invoked
datathe data

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