VideoXpert SDK  2.0
A software development kit for third party vendors to integrate with the VideoXpert platform
VxSdk::VxNewScheduleTrigger Struct Reference

Represents a new schedule trigger to be created. A schedule trigger is a time range and an optional event that together act as a trigger to activate a schedule and cause it to perform its configured action. More...

#include <VxNewScheduleTrigger.h>

Public Member Functions

 VxNewScheduleTrigger ()
 Initializes a new instance of the VxNewScheduleTrigger struct. More...
 
 VxNewScheduleTrigger (const VxNewScheduleTrigger &ref)
 Initializes a new instance of the VxNewScheduleTrigger struct. More...
 
 ~VxNewScheduleTrigger ()
 Finalizes an instance of the VxNewScheduleTrigger class. More...
 
void Clear ()
 Clears this instance. More...
 

Public Attributes

char dailyEndTime [64]
 The time at which the schedule trigger ends. A schedule trigger is active each day, only from dailyStartTime to dailyEndTime. If the dailyEndTime is less than the dailyStartTime, it is to be considered as occurring later (the following day). If these values are equal, the schedule trigger is not restricted by time. Defaults to 00:00:00. More...
 
char dailyStartTime [64]
 The time at which the schedule trigger begins. A schedule trigger is active each day, only from dailyStartTime to dailyEndTime. If these values are equal, the schedule trigger is not restricted by time. Defaults to 00:00:00. More...
 
char endDate [64]
 The date at which the schedule trigger ends. A schedule trigger is active, only from startDate to endDate. If the endDate is prior or equal to the startDate, the schedule trigger is not limited by date. Defaults to the value of startDate. More...
 
char eventSourceDevice [64]
 The unique identifier of a device. If set, the event will activate the schedule trigger only when it occurs on this device. Ignored if no event is set. More...
 
char id [64]
 The unique identifier of the schedule trigger. If not supplied, the system will create the identifier. More...
 
char startDate [64]
 The date at which the schedule trigger begins. A schedule trigger is active, only from startDate to endDate. If the endDate is prior or equal to the startDate, the schedule trigger is not limited by date. Defaults to the current date. More...
 
int eventPropertySize
 The size of eventProperties. More...
 
int postTrigger
 Amount of time, from 0 to 300 seconds, to continue to consider the schedule trigger active when it becomes inactive ("post alarm"). Defaults to 0. More...
 
int preTrigger
 Amount of time, from 0 to 30 seconds, to consider the schedule trigger active prior to when it becomes active ("pre alarm"). Defaults to 0. More...
 
int recurMonthlySize
 The size of recurMonthly. More...
 
int recurWeeklySize
 The size of recurWeekly. More...
 
int recurYearlySize
 The size of recurYearly. More...
 
int timeout
 Amount of time, from 1 to 300 seconds, to consider the schedule trigger active immediately after it becomes active ("duration recording"). Defaults to 0. More...
 
int * recurMonthly
 Days of the month, from 1 to 31, that the schedule trigger shall only be active on. Defaults to every day of the month. Ignored if recurrence is not set to VxRecurrenceType::kMonthly. More...
 
int * recurWeekly
 Days of the week, from 1 (Monday) to 7 (Sunday), that the schedule trigger shall only be active on. Defaults to every day of the week. Ignored if recurrence is not set to VxRecurrenceType::kWeekly. More...
 
int * recurYearly
 Months of the year, from 1 (January) to 12 (December), that the schedule trigger shall only be active on. Defaults to every month of the year. Ignored if recurrence is not set to VxRecurrenceType::kYearly. More...
 
VxKvObjecteventProperties
 If set, the event only activates when it occurs with these properties. Ignored if no event is set. More...
 
VxRecordingFramerate::Value framerate
 The framerate level to record at. Defaults to VxRecordingFramerate::kNormal. More...
 
VxRecurrenceType::Value recurrence
 Interval at which the schedule trigger repeats. Defaults to VxRecurrenceType::kDaily. More...
 
VxSituationType::Value event
 If set, the schedule trigger only activates when this type of VxSituationType occurs. The schedule trigger event state shall be considered active until the event becomes inactive. More...
 

Detailed Description

Represents a new schedule trigger to be created. A schedule trigger is a time range and an optional event that together act as a trigger to activate a schedule and cause it to perform its configured action.

Definition at line 14 of file VxNewScheduleTrigger.h.

Constructor & Destructor Documentation

VxSdk::VxNewScheduleTrigger::VxNewScheduleTrigger ( )
inline

Initializes a new instance of the VxNewScheduleTrigger struct.

Definition at line 19 of file VxNewScheduleTrigger.h.

19  {
20  Clear();
21  }
void Clear()
Clears this instance.
VxSdk::VxNewScheduleTrigger::VxNewScheduleTrigger ( const VxNewScheduleTrigger ref)
inline

Initializes a new instance of the VxNewScheduleTrigger struct.

Parameters
refThe reference.

Definition at line 27 of file VxNewScheduleTrigger.h.

27  {
28  Utilities::StrCopySafe(this->dailyEndTime, ref.dailyEndTime);
29  Utilities::StrCopySafe(this->dailyStartTime, ref.dailyStartTime);
30  Utilities::StrCopySafe(this->endDate, ref.endDate);
31  Utilities::StrCopySafe(this->eventSourceDevice, ref.eventSourceDevice);
32  Utilities::StrCopySafe(this->id, ref.id);
33  Utilities::StrCopySafe(this->startDate, ref.startDate);
34  this->eventPropertySize = ref.eventPropertySize;
35  this->postTrigger = ref.postTrigger;
36  this->preTrigger = ref.preTrigger;
37  this->recurMonthlySize = ref.recurMonthlySize;
38  this->recurWeeklySize = ref.recurWeeklySize;
39  this->recurYearlySize = ref.recurYearlySize;
40  this->timeout = ref.timeout;
41  this->recurMonthly = ref.recurMonthly;
42  this->recurWeekly = ref.recurWeekly;
43  this->recurYearly = ref.recurYearly;
44  this->eventProperties = ref.eventProperties;
45  this->framerate = ref.framerate;
46  this->recurrence = ref.recurrence;
47  this->event = ref.event;
48  }
char dailyEndTime[64]
The time at which the schedule trigger ends. A schedule trigger is active each day, only from dailyStartTime to dailyEndTime. If the dailyEndTime is less than the dailyStartTime, it is to be considered as occurring later (the following day). If these values are equal, the schedule trigger is not restricted by time. Defaults to 00:00:00.
char eventSourceDevice[64]
The unique identifier of a device. If set, the event will activate the schedule trigger only when it ...
int postTrigger
Amount of time, from 0 to 300 seconds, to continue to consider the schedule trigger active when it be...
int preTrigger
Amount of time, from 0 to 30 seconds, to consider the schedule trigger active prior to when it become...
VxKvObject * eventProperties
If set, the event only activates when it occurs with these properties. Ignored if no event is set...
char startDate[64]
The date at which the schedule trigger begins. A schedule trigger is active, only from startDate to e...
static void StrCopySafe(char(&dst)[dstSize], const char *src)
Performs a safe string copy.
Definition: VxUtilities.h:15
VxRecurrenceType::Value recurrence
Interval at which the schedule trigger repeats. Defaults to VxRecurrenceType::kDaily.
VxRecordingFramerate::Value framerate
The framerate level to record at. Defaults to VxRecordingFramerate::kNormal.
int eventPropertySize
The size of eventProperties.
int * recurWeekly
Days of the week, from 1 (Monday) to 7 (Sunday), that the schedule trigger shall only be active on...
int timeout
Amount of time, from 1 to 300 seconds, to consider the schedule trigger active immediately after it b...
int recurMonthlySize
The size of recurMonthly.
int * recurYearly
Months of the year, from 1 (January) to 12 (December), that the schedule trigger shall only be active...
char endDate[64]
The date at which the schedule trigger ends. A schedule trigger is active, only from startDate to end...
int recurYearlySize
The size of recurYearly.
char dailyStartTime[64]
The time at which the schedule trigger begins. A schedule trigger is active each day, only from dailyStartTime to dailyEndTime. If these values are equal, the schedule trigger is not restricted by time. Defaults to 00:00:00.
int * recurMonthly
Days of the month, from 1 to 31, that the schedule trigger shall only be active on. Defaults to every day of the month. Ignored if recurrence is not set to VxRecurrenceType::kMonthly.
int recurWeeklySize
The size of recurWeekly.
VxSdk::VxNewScheduleTrigger::~VxNewScheduleTrigger ( )
inline

Finalizes an instance of the VxNewScheduleTrigger class.

Definition at line 53 of file VxNewScheduleTrigger.h.

53  {
54  Clear();
55  }
void Clear()
Clears this instance.

Member Function Documentation

void VxSdk::VxNewScheduleTrigger::Clear ( )
inline

Clears this instance.

Definition at line 60 of file VxNewScheduleTrigger.h.

60  {
63  VxZeroArray(this->endDate);
65  VxZeroArray(this->id);
66  VxZeroArray(this->startDate);
67  this->eventPropertySize = 0;
68  this->postTrigger = 0;
69  this->preTrigger = 0;
70  this->recurMonthlySize = 0;
71  this->recurWeeklySize = 0;
72  this->recurYearlySize = 0;
73  this->timeout = 0;
74  this->recurMonthly = nullptr;
75  this->recurWeekly = nullptr;
76  this->recurYearly = nullptr;
77  this->eventProperties = nullptr;
80  this->event = VxSituationType::kUnknown;
81  }
char dailyEndTime[64]
The time at which the schedule trigger ends. A schedule trigger is active each day, only from dailyStartTime to dailyEndTime. If the dailyEndTime is less than the dailyStartTime, it is to be considered as occurring later (the following day). If these values are equal, the schedule trigger is not restricted by time. Defaults to 00:00:00.
char eventSourceDevice[64]
The unique identifier of a device. If set, the event will activate the schedule trigger only when it ...
#define VxZeroArray(src)
Definition: VxMacros.h:25
An error or unknown value was returned.
Definition: VxPrimitives.h:550
int postTrigger
Amount of time, from 0 to 300 seconds, to continue to consider the schedule trigger active when it be...
int preTrigger
Amount of time, from 0 to 30 seconds, to consider the schedule trigger active prior to when it become...
VxKvObject * eventProperties
If set, the event only activates when it occurs with these properties. Ignored if no event is set...
char startDate[64]
The date at which the schedule trigger begins. A schedule trigger is active, only from startDate to e...
VxRecurrenceType::Value recurrence
Interval at which the schedule trigger repeats. Defaults to VxRecurrenceType::kDaily.
An error or unknown value was returned.
Definition: VxPrimitives.h:586
VxRecordingFramerate::Value framerate
The framerate level to record at. Defaults to VxRecordingFramerate::kNormal.
int eventPropertySize
The size of eventProperties.
int * recurWeekly
Days of the week, from 1 (Monday) to 7 (Sunday), that the schedule trigger shall only be active on...
int timeout
Amount of time, from 1 to 300 seconds, to consider the schedule trigger active immediately after it b...
int recurMonthlySize
The size of recurMonthly.
int * recurYearly
Months of the year, from 1 (January) to 12 (December), that the schedule trigger shall only be active...
char endDate[64]
The date at which the schedule trigger ends. A schedule trigger is active, only from startDate to end...
int recurYearlySize
The size of recurYearly.
char dailyStartTime[64]
The time at which the schedule trigger begins. A schedule trigger is active each day, only from dailyStartTime to dailyEndTime. If these values are equal, the schedule trigger is not restricted by time. Defaults to 00:00:00.
int * recurMonthly
Days of the month, from 1 to 31, that the schedule trigger shall only be active on. Defaults to every day of the month. Ignored if recurrence is not set to VxRecurrenceType::kMonthly.
An error or unknown value was returned.
Definition: VxPrimitives.h:857
int recurWeeklySize
The size of recurWeekly.

Member Data Documentation

char VxSdk::VxNewScheduleTrigger::dailyEndTime[64]

The time at which the schedule trigger ends. A schedule trigger is active each day, only from dailyStartTime to dailyEndTime. If the dailyEndTime is less than the dailyStartTime, it is to be considered as occurring later (the following day). If these values are equal, the schedule trigger is not restricted by time. Defaults to 00:00:00.

Definition at line 90 of file VxNewScheduleTrigger.h.

char VxSdk::VxNewScheduleTrigger::dailyStartTime[64]

The time at which the schedule trigger begins. A schedule trigger is active each day, only from dailyStartTime to dailyEndTime. If these values are equal, the schedule trigger is not restricted by time. Defaults to 00:00:00.

Definition at line 96 of file VxNewScheduleTrigger.h.

char VxSdk::VxNewScheduleTrigger::endDate[64]

The date at which the schedule trigger ends. A schedule trigger is active, only from startDate to endDate. If the endDate is prior or equal to the startDate, the schedule trigger is not limited by date. Defaults to the value of startDate.

Definition at line 102 of file VxNewScheduleTrigger.h.

VxSituationType::Value VxSdk::VxNewScheduleTrigger::event

If set, the schedule trigger only activates when this type of VxSituationType occurs. The schedule trigger event state shall be considered active until the event becomes inactive.

Definition at line 180 of file VxNewScheduleTrigger.h.

VxKvObject* VxSdk::VxNewScheduleTrigger::eventProperties

If set, the event only activates when it occurs with these properties. Ignored if no event is set.

Definition at line 167 of file VxNewScheduleTrigger.h.

int VxSdk::VxNewScheduleTrigger::eventPropertySize

The size of eventProperties.

Definition at line 121 of file VxNewScheduleTrigger.h.

char VxSdk::VxNewScheduleTrigger::eventSourceDevice[64]

The unique identifier of a device. If set, the event will activate the schedule trigger only when it occurs on this device. Ignored if no event is set.

Definition at line 107 of file VxNewScheduleTrigger.h.

VxRecordingFramerate::Value VxSdk::VxNewScheduleTrigger::framerate

The framerate level to record at. Defaults to VxRecordingFramerate::kNormal.

Definition at line 171 of file VxNewScheduleTrigger.h.

char VxSdk::VxNewScheduleTrigger::id[64]

The unique identifier of the schedule trigger. If not supplied, the system will create the identifier.

Definition at line 111 of file VxNewScheduleTrigger.h.

int VxSdk::VxNewScheduleTrigger::postTrigger

Amount of time, from 0 to 300 seconds, to continue to consider the schedule trigger active when it becomes inactive ("post alarm"). Defaults to 0.

Definition at line 126 of file VxNewScheduleTrigger.h.

int VxSdk::VxNewScheduleTrigger::preTrigger

Amount of time, from 0 to 30 seconds, to consider the schedule trigger active prior to when it becomes active ("pre alarm"). Defaults to 0.

Definition at line 131 of file VxNewScheduleTrigger.h.

int* VxSdk::VxNewScheduleTrigger::recurMonthly

Days of the month, from 1 to 31, that the schedule trigger shall only be active on. Defaults to every day of the month. Ignored if recurrence is not set to VxRecurrenceType::kMonthly.

Definition at line 153 of file VxNewScheduleTrigger.h.

int VxSdk::VxNewScheduleTrigger::recurMonthlySize

The size of recurMonthly.

Definition at line 135 of file VxNewScheduleTrigger.h.

VxRecurrenceType::Value VxSdk::VxNewScheduleTrigger::recurrence

Interval at which the schedule trigger repeats. Defaults to VxRecurrenceType::kDaily.

Definition at line 175 of file VxNewScheduleTrigger.h.

int* VxSdk::VxNewScheduleTrigger::recurWeekly

Days of the week, from 1 (Monday) to 7 (Sunday), that the schedule trigger shall only be active on. Defaults to every day of the week. Ignored if recurrence is not set to VxRecurrenceType::kWeekly.

Definition at line 158 of file VxNewScheduleTrigger.h.

int VxSdk::VxNewScheduleTrigger::recurWeeklySize

The size of recurWeekly.

Definition at line 139 of file VxNewScheduleTrigger.h.

int* VxSdk::VxNewScheduleTrigger::recurYearly

Months of the year, from 1 (January) to 12 (December), that the schedule trigger shall only be active on. Defaults to every month of the year. Ignored if recurrence is not set to VxRecurrenceType::kYearly.

Definition at line 163 of file VxNewScheduleTrigger.h.

int VxSdk::VxNewScheduleTrigger::recurYearlySize

The size of recurYearly.

Definition at line 143 of file VxNewScheduleTrigger.h.

char VxSdk::VxNewScheduleTrigger::startDate[64]

The date at which the schedule trigger begins. A schedule trigger is active, only from startDate to endDate. If the endDate is prior or equal to the startDate, the schedule trigger is not limited by date. Defaults to the current date.

Definition at line 117 of file VxNewScheduleTrigger.h.

int VxSdk::VxNewScheduleTrigger::timeout

Amount of time, from 1 to 300 seconds, to consider the schedule trigger active immediately after it becomes active ("duration recording"). Defaults to 0.

Definition at line 148 of file VxNewScheduleTrigger.h.


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