Veethree D7 SDK
Loading...
Searching...
No Matches
vsdk::io::event Class Referenceabstract

Detailed Description

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.

Detailed Description

The event class interface.

Common interface for all event types.

Member Function Documentation

◆ get_data()

virtual void vsdk::io::event::get_data ( event_data & e) const
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.

Parameters
eThe event to get the data from.

Sample code:

using namespace vsdk::io;
void fn_handler(std::shared_ptr<event> e)
{
e->get_data(data);
// use data...
}
The threshold_event_data class.
Definition io_threshold_event.h:110
IO threshold event interface.
Any entities that belong to the IO library.

Implemented in vsdk::io::range_event, vsdk::io::state_event, and vsdk::io::threshold_event.

◆ source()

virtual event_source vsdk::io::event::source ( ) const
pure virtual

The event source as defined by vsdk::io::event_source.

Returns
A vsdk::io::event_source value.

Implemented in vsdk::io::range_event, vsdk::io::state_event, and vsdk::io::threshold_event.

◆ type()

virtual event_type vsdk::io::event::type ( ) const
pure virtual

The event type as defined by vsdk::io::event_type.

Returns
A vsdk::io::event_type value.

Implemented in vsdk::io::range_event, vsdk::io::state_event, and vsdk::io::threshold_event.


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