Veethree D7 SDK
Loading...
Searching...
No Matches
io_threshold_event.h
Go to the documentation of this file.
1
5#ifndef IO_THRESHOLD_EVENT_H
6#define IO_THRESHOLD_EVENT_H
7
8#include "io_event.h"
9#include "io_event_data.h"
10
11#include <memory>
12
13namespace vsdk::io {
14
19
25class threshold_event : public event {
26public:
34 threshold_event(event_source evt_src, event_type evt_type, double threshold, double value);
49
50 ~threshold_event() noexcept override;
51
56 threshold_event& operator=(const threshold_event& evt);
57 threshold_event& operator=(threshold_event&& evt) noexcept;
59
64 event_source source() const override;
69 event_type type() const override;
74 double criteria() const;
79 double value() const;
97 void get_data(event_data& e) const override;
98
99private:
100 class impl;
101 std::unique_ptr<impl> _impl;
102};
103
111public:
119 void process(const threshold_event* e) override;
120
124 double criteria{};
128 double value{};
129};
130
131
132} // namespace vsdk::io
133
134#endif // IO_THRESHOLD_EVENT_H
The event_data class.
Definition io_event_data.h:22
Describes the source of an event.
Definition io_event_source.h:25
The event class interface.
Definition io_event.h:24
The threshold_event_data class.
Definition io_threshold_event.h:110
void process(const threshold_event *e) override
process
double value
value The value used for evaluating the event
Definition io_threshold_event.h:128
double criteria
criteria The event criteria
Definition io_threshold_event.h:124
The threshold_event class.
Definition io_threshold_event.h:25
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.
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.
void get_data(event_data &e) const override
Get data from a threshold event object.
threshold_event(const threshold_event &evt)
Copy constructor.
threshold_event(threshold_event &&evt) noexcept
Move constructor.
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.
event_type
Describes the event type.
Definition io_event_common.h:41
IO event interface.
IO event data interface.
Any entities that belong to the IO library.