Home
Sched module

DailyTrigger

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

DailyTrigger

#include <icy/sched/trigger.h>
struct DailyTrigger

Defined in src/sched/include/icy/sched/trigger.h:167

Inherits: Trigger

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

List of all members

NameKindOwner
timeOfDayvariableDeclared here
daysExcludedvariableDeclared here
DailyTriggerfunctionDeclared here
updatefunctionDeclared here
typevariableInherited from Trigger
namevariableInherited from Trigger
timesRunvariableInherited from Trigger
createdAtvariableInherited from Trigger
scheduleAtvariableInherited from Trigger
lastRunAtvariableInherited from Trigger
TriggerfunctionInherited from Trigger
updatefunctionInherited from Trigger
remainingfunctionInherited from Trigger
timeoutfunctionInherited from Trigger
expiredfunctionInherited from Trigger
serializefunctionInherited from Trigger
deserializefunctionInherited from Trigger
~ISerializablefunctionInherited from ISerializable
serializefunctionInherited from ISerializable
deserializefunctionInherited from ISerializable

Inherited from Trigger

KindNameDescription
variabletypeThe type of this trigger class.
variablenameThe display name of this trigger class.
variabletimesRunThe number of times the task has run since creation;
variablecreatedAtThe time the task was created.
variablescheduleAtThe time the task is scheduled to run.
variablelastRunAtThe time the task was last run.
functionTrigger
functionupdate virtualUpdates the scheduleAt value to the next scheduled time.
functionremaining virtualReturns the milliseconds remaining until the next scheduled timeout.
functiontimeout virtualReturns true if the task is ready to be run, false otherwise.
functionexpired virtualReturns true if the task is expired and should be destroyed. Returns false by default.
functionserialize virtual overrideSerializes timing state (type, name, createdAt, scheduleAt, lastRunAt, timesRun) to root.
functiondeserialize virtual overrideDeserializes timing state from root.

Inherited from ISerializable

KindNameDescription
function~ISerializable virtualDefaulted destructor.
functionserialize virtualSerializes this object's state into root.
functiondeserialize virtualPopulates this object's state from root.

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

Defined in src/sched/include/icy/sched/trigger.h:179

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


daysExcluded

std::vector< DaysOfTheWeek > daysExcluded

Defined in src/sched/include/icy/sched/trigger.h:183

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

Public Methods

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

DailyTrigger

DailyTrigger()

Defined in src/sched/include/icy/sched/trigger.h:170

Constructs the trigger with type "DailyTrigger".


update

virtual override

virtual void update() override

Defined in src/sched/include/icy/sched/trigger.h:174

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

Reimplements