13#ifndef RTCTK_COMPONENTFRAMEWORK_MALEVENTINJECTOR_HPP
14#define RTCTK_COMPONENTFRAMEWORK_MALEVENTINJECTOR_HPP
18#include <mal/utility/future.hpp>
22template <
typename EventType>
24 auto ev = std::make_unique<EventType>();
25 auto f = ev->GetPayload().GetReplyFuture();
30template <
typename EventType,
typename PayloadType>
32 auto ev = std::make_unique<EventType>(payload);
33 auto f = ev->GetPayload().GetReplyFuture();
Definition: stateMachineEngine.hpp:35
void PostEvent(rad::SharedEvent s)
Injects a new event into the state machine engine.
Definition: stateMachineEngine.cpp:148
Definition: commandReplier.cpp:22
elt::mal::future< std::string > InjectReqRepEvent(StateMachineEngine &engine)
Definition: malEventInjector.hpp:23
Wrapper around the SCXML State Machine Engine.