State changing trigger wrapper.
Definition: trigger.h:17
Trigger(T &state, TriggerHandler handler)
Constructor.
Definition: trigger.h:26
void Write(T state)
Write into the trigger.
Definition: trigger.h:40
std::function< void()> TriggerHandler
Callback on trigger invocation.
Definition: trigger.h:11