Sched module

DailyTrigger

[Trigger]({#ref structicy_1_1sched_1_1Trigger #}) that fires once per day at a configured time, with optional day-of-week exclusions.

DailyTrigger

#include <icy/sched/trigger.h>

Inherits: Trigger

Trigger that fires once per day at a configured time, with optional day-of-week exclusions.

Public Attributes

ReturnNameDescription
DateTimetimeOfDayThis value represents the time of day the task will trigger. The date part of the timestamp is redundant.
std::vector< DaysOfTheWeek >daysExcludedDays of the week can be excluded by adding the appropriate bit flag here.

timeOfDay

DateTime timeOfDay

This value represents the time of day the task will trigger. The date part of the timestamp is redundant.


daysExcluded

std::vector< DaysOfTheWeek > daysExcluded

Days of the week can be excluded by adding the appropriate bit flag here.

Public Methods

ReturnNameDescription
DailyTriggerConstructs the trigger with type "DailyTrigger".
voidupdate virtualComputes the next scheduleAt value by advancing to the next non-excluded weekday at the configured timeOfDay.

DailyTrigger

DailyTrigger()

Constructs the trigger with type "DailyTrigger".


update

virtual

virtual void update()

Computes the next scheduleAt value by advancing to the next non-excluded weekday at the configured timeOfDay.