12#ifndef RTCTK_COMPONENTFRAMEWORK_SUSPCMDSIMPL_HPP
13#define RTCTK_COMPONENTFRAMEWORK_SUSPCMDSIMPL_HPP
17#include <rtctk/componentFramework/events.rad.hpp>
37 std::shared_ptr<elt::mal::rr::RrEntity> rr_service = std::make_shared<SuspCmdsImpl>(engine);
38 replier.
RegisterService<rtctkif::AsyncSuspCmds>(
"SuspCmds", rr_service);
42 : m_logger(
GetLogger(
"rtctk")), m_engine(engine) {
45 ::elt::mal::future<std::string>
Suspend()
override {
46 LOG4CPLUS_TRACE(m_logger,
"Received command 'Suspend'");
50 ::elt::mal::future<std::string>
Resume()
override {
51 LOG4CPLUS_TRACE(m_logger,
"Received command 'Resume'");
56 log4cplus::Logger& m_logger;
Class that handles reception of commands using MAL.
Definition commandReplier.hpp:29
void RegisterService(const std::string &name, std::shared_ptr< elt::mal::rr::RrEntity > &service)
Definition commandReplier.hpp:36
Definition stateMachineEngine.hpp:34
SuspCmdsImpl(StateMachineEngine &engine)
Definition suspCmdsImpl.hpp:41
static void Register(CommandReplier &replier, StateMachineEngine &engine)
Definition suspCmdsImpl.hpp:36
::elt::mal::future< std::string > Resume() override
Definition suspCmdsImpl.hpp:50
::elt::mal::future< std::string > Suspend() override
Definition suspCmdsImpl.hpp:45
Receive commands via MAL.
log4cplus::Logger & GetLogger(const std::string &name="app")
Get handle to a specific logger.
Definition logger.cpp:191
Logging Support Library based on log4cplus.
Provides core functionality of an RTC Component.
Definition commandReplier.cpp:21
elt::mal::future< std::string > InjectReqRepEvent(StateMachineEngine &engine)
Definition malEventInjector.hpp:22
Wrapper around the SCXML State Machine Engine.