#include <io_event_notification.h>
◆ add_notification()
Add a definition when an event must be notified.
Also see vsdk::io::event_notification::process_notification for more details.
- Parameters
-
- Returns
- A event_notification_id value used to identify a notification.
Sample code:
void fn()
{
auto evt_queue = std::make_shared<event_queue>();
auto i420 = i420::instance();
.queue = evt_queue,
.source = event_source::i420_isns,
.interval = 100ms, },
.value = 1050.0,
});
.queue = evt_queue,
.source = event_source::i420_isns,
.interval = 50ms, },
});
i420->start_notifications();
i420->stop_notifications();
}
virtual event_notification_id add_notification(const event_notification_descriptor &desc)
Add a definition when an event must be notified.
The i420 class.
Definition i420.h:32
@ in_range
any value inside of [start, end) - including start, excluding end.
Definition io_event_common.h:46
@ threshold_above
any value greater than the threshold specified.
Definition io_event_common.h:43
@ continuous
continuous means a notification will be rescheduled
Definition io_event_notification.h:34
IO event queue interface.
IO range event interface.
IO threshold event interface.
Any entities that belong to the IO library.
@ i420
4-20 mA
Definition io_error_codes.h:25
A range value start-end pair.
Definition io_event_common.h:54
◆ process_notification()
|
|
protectedpure virtualnoexcept |
◆ remove_notification()
Remove a notification identified by 'id'.
- Parameters
-
- Returns
- Returns true if a notification has been removed, otherwise false.
The documentation for this class was generated from the following file: