9 #ifndef RAD_GUARD_CALLBACK_HPP
10 #define RAD_GUARD_CALLBACK_HPP
12 #include <rad/anyEvent.hpp>
14 #include <scxml4cpp/Action.h>
15 #include <scxml4cpp/Context.h>
26 explicit GuardCallback(
const std::string
id, std::function<
bool(AnyEvent
const&)> guard_method);
37 std::function<bool(AnyEvent const&)> m_guard_method;
42 #endif // RAD_GUARD_CALLBACK_HPP
void execute(scxml4cpp::Context *c) override
Definition: guardCallback.cpp:33
GuardCallback(const std::string id, std::function< bool(AnyEvent const &)> guard_method)
Definition: guardCallback.cpp:20
bool evaluate(scxml4cpp::Context *c) override
Definition: guardCallback.cpp:41
GuardCallback & operator=(GuardCallback &&)=default