Veethree D7 SDK
Loading...
Searching...
No Matches
vsdk::io::threshold_event Class Reference

Detailed Description

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.

Detailed Description

The threshold_event class.

Class interface for all threshold-type events.

Constructor & Destructor Documentation

◆ threshold_event() [1/3]

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.

Parameters
evt_srcThe vsdk::io::event_source for the event.
evt_typeThe vsdk::io::event_type for the event.
thresholdThe criteria for this event.
valueThe value that triggered this event.

◆ threshold_event() [2/3]

vsdk::io::threshold_event::threshold_event ( const threshold_event & evt)

Copy constructor.

Parameters
evtThe other vsdk::io::threshold_event object.

◆ threshold_event() [3/3]

vsdk::io::threshold_event::threshold_event ( threshold_event && evt)
noexcept

Move constructor.

Parameters
evtThe other vsdk::io::threshold_event object.

Member Function Documentation

◆ criteria()

double vsdk::io::threshold_event::criteria ( ) const

threshold The threshold criteria for this event.

Returns
Returns the threshold value.

◆ get_data()

void vsdk::io::threshold_event::get_data ( event_data & e) const
overridevirtual

Get data from a threshold event object.

Parameters
eA threshold_event_data object.

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.

Implements vsdk::io::event.

◆ source()

event_source vsdk::io::threshold_event::source ( ) const
overridevirtual

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

Returns
A vsdk::io::event_source value.

Implements vsdk::io::event.

◆ type()

event_type vsdk::io::threshold_event::type ( ) const
overridevirtual

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

Returns
A vsdk::io::event_type value.

Implements vsdk::io::event.

◆ value()

double vsdk::io::threshold_event::value ( ) const

The value used when determining if the event should have been created.

Returns
The value that triggered this event.

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