Simd Library Documentation.

Home | Release Notes | Download | Documentation | Issues | GitHub

Event structure. More...

#include <SimdMotion.hpp>

Public Types

enum  Type {
  ObjectIn ,
  ObjectOut ,
  SabotageOn ,
  SabotageOff
}
 

Public Member Functions

 Event (Type type_, const String &text_=String(), Id objectId_=-1)
 

Data Fields

enum Simd::Motion::Event::Type type
 A type of event.
 
String text
 Event text description.
 
Id objectId
 ID of object concerned with this event or -1.
 

Detailed Description

Event structure.

Describes event generated by Simd::Motion::Detector.

Member Enumeration Documentation

◆ Type

enum Type

Describes types of event.

Enumerator
ObjectIn 

An appearing of new object.

ObjectOut 

A disappearing of object.

SabotageOn 

An appearing of too big motion on the screen.

SabotageOff 

A disappearing of too big motion on the screen.

Constructor & Destructor Documentation

◆ Event()

Event ( Type  type_,
const String text_ = String(),
Id  objectId_ = -1 
)

Constructs Event structure.

Parameters
[in]type_- a type of a new event.
[in]text_- a text description of the event. It is equal to empty string by default.
[in]objectId_- an ID of object concerned with this event. It is equal to -1 by default.