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::Event< V > Class Template Referenceabstract

An event passed to a callback. More...

#include <AbstractVirtualDevice.hpp>

+ Inheritance diagram for iotdcl::Event< V >:

Public Member Functions

virtual ~Event ()
 Destructor.
 
virtual V * getVirtualDevice ()=0
 Get the virtual device that is the source of the event. More...
 
virtual NamedValuegetNamedValue () const =0
 Get the name-value pair from the event. More...
 

Protected Member Functions

 Event (VirtualDevice *vd, NamedValue *value)
 

Protected Attributes

VirtualDevicevd
 
NamedValuevalue
 

Detailed Description

template<class V>
class iotdcl::Event< V >

An event passed to a callback.

Parameters
<V>the type of iotdcl::AbstractVirtualDevice

Member Function Documentation

template<class V >
virtual NamedValue* iotdcl::Event< V >::getNamedValue ( ) const
pure virtual

Get the name-value pair from the event.

Returns
the value, never
null
See Also
iotdcl::ChangeCallback
iotdcl::ErrorCallback
template<class V >
virtual V* iotdcl::Event< V >::getVirtualDevice ( )
pure virtual

Get the virtual device that is the source of the event.

Returns
the virtual device, never NULL

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