|
Veethree D7 SDK
|
The threshold_event class.
Class interface for all threshold-type events.
#include <io_threshold_event.h>
Public Member Functions | |
| threshold_event (event_source evt_src, event_type evt_type, double threshold, double value) | |
| Constructor that takes all required values for creating a threshold_event object. | |
| threshold_event () | |
| Default constructor. | |
| threshold_event (const threshold_event &evt) | |
| Copy constructor. | |
| threshold_event (threshold_event &&evt) noexcept | |
| Move constructor. | |
| event_source | source () const override |
| The event source as defined by vsdk::io::event_source. | |
| event_type | type () const override |
| The event type as defined by vsdk::io::event_type. | |
| double | criteria () const |
| threshold The threshold criteria for this event. | |
| double | value () const |
| The value used when determining if the event should have been created. | |
| void | get_data (event_data &e) const override |
| Get data from a threshold event object. | |
| threshold_event & | operator= (const threshold_event &evt) |
| Assignment operators. | |
| threshold_event & | operator= (threshold_event &&evt) noexcept |
| Assignment operators. | |
| Public Member Functions inherited from vsdk::io::event | |
| virtual | ~event () noexcept=default |
| The class destructor. | |
The threshold_event class.
Class interface for all threshold-type events.
| vsdk::io::threshold_event::threshold_event | ( | event_source | evt_src, |
| event_type | evt_type, | ||
| double | threshold, | ||
| double | value ) |
Constructor that takes all required values for creating a threshold_event object.
| evt_src | The vsdk::io::event_source for the event. |
| evt_type | The vsdk::io::event_type for the event. |
| threshold | The criteria for this event. |
| value | The value that triggered this event. |
| vsdk::io::threshold_event::threshold_event | ( | const threshold_event & | evt | ) |
Copy constructor.
| evt | The other vsdk::io::threshold_event object. |
|
noexcept |
Move constructor.
| evt | The other vsdk::io::threshold_event object. |
| double vsdk::io::threshold_event::criteria | ( | ) | const |
threshold The threshold criteria for this event.
|
overridevirtual |
Get data from a threshold event object.
| e | A threshold_event_data object. |
Sample code:
Implements vsdk::io::event.
|
overridevirtual |
The event source as defined by vsdk::io::event_source.
Implements vsdk::io::event.
|
overridevirtual |
The event type as defined by vsdk::io::event_type.
Implements vsdk::io::event.
| double vsdk::io::threshold_event::value | ( | ) | const |
The value used when determining if the event should have been created.