18 using Action = std::function<void()>;
A state that evaluates a predicate on entry and either executes or skips.
void setPredicate(Predicate predicate)
Set the predicate.
void setAction(Action action)
Set the action.
void skipped()
Emitted when the predicate returns false and the state is skipped.
std::function< void()> Action
std::function< bool()> Predicate
QString stateName() const
Full-featured base class for QGroundControl state machine states.