Go to the documentation of this file.
12 #ifndef RTCTK_COMPONENTFRAMEWORK_LOOPCMDSIMPL_HPP
13 #define RTCTK_COMPONENTFRAMEWORK_LOOPCMDSIMPL_HPP
15 #include <Rtctkif.hpp>
17 #include <rtctk/componentFramework/events.rad.hpp>
22 #include <mal/Cii.hpp>
35 std::shared_ptr<elt::mal::rr::RrEntity> rr_service = std::make_shared<LoopCmdsImpl>(engine);
36 replier.
RegisterService<rtctkif::AsyncLoopCmds>(
"LoopCmds", rr_service);
42 ::elt::mal::future<std::string>
Open()
override {
43 LOG4CPLUS_TRACE(
GetLogger(),
"Received command 'Open'");
44 return InjectReqRepEvent<events::Open>(m_engine);
47 ::elt::mal::future<std::string>
Close()
override {
48 LOG4CPLUS_TRACE(
GetLogger(),
"Received command 'Close'");
49 return InjectReqRepEvent<events::Close>(m_engine);
Receive commands via MAL.
Wrapper around the SCXML State Machine Engine.
Definition: commandReplier.cpp:20
Definition: stateMachineEngine.hpp:31
log4cplus::Logger & GetLogger(const std::string &name="")
Get handle to a specific logger (used with logging macros)
static void Register(CommandReplier &replier, StateMachineEngine &engine)
Definition: loopCmdsImpl.hpp:34
Class that handles reception of commands using MAL.
Definition: commandReplier.hpp:26
LoopCmdsImpl(StateMachineEngine &engine)
Definition: loopCmdsImpl.hpp:39
Logging Support Library based on log4cplus.
void RegisterService(std::string const &name, std::shared_ptr< elt::mal::rr::RrEntity > &service)
Definition: commandReplier.hpp:33
Provides core functionality of an RTC Component.
::elt::mal::future< std::string > Close() override
Definition: loopCmdsImpl.hpp:47
Class that handles reception of commands Open and Close using MAL.
Definition: loopCmdsImpl.hpp:32
::elt::mal::future< std::string > Open() override
Definition: loopCmdsImpl.hpp:42