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