|
Veethree D7 SDK
|
The event class interface.
Common interface for all event types.
#include <io_event.h>
Public Member Functions | |
| virtual | ~event () noexcept=default |
| The class destructor. | |
| virtual event_source | source () const =0 |
| The event source as defined by vsdk::io::event_source. | |
| virtual event_type | type () const =0 |
| The event type as defined by vsdk::io::event_type. | |
| virtual void | get_data (event_data &e) const =0 |
| Get data from an event object. | |
The event class interface.
Common interface for all event types.
|
pure virtual |
Get data from an event object.
This function takes a reference to an event_data object, which implements the required interface for retrieving event-specific data.
The common usage of this function is in an event handler function.
| e | The event to get the data from. |
Sample code:
Implemented in vsdk::io::range_event, vsdk::io::state_event, and vsdk::io::threshold_event.
|
pure virtual |
The event source as defined by vsdk::io::event_source.
Implemented in vsdk::io::range_event, vsdk::io::state_event, and vsdk::io::threshold_event.
|
pure virtual |
The event type as defined by vsdk::io::event_type.
Implemented in vsdk::io::range_event, vsdk::io::state_event, and vsdk::io::threshold_event.