13#ifndef RTCTK_COMPONENTFRAMEWORK_MEASCMDSIMPL_HPP
14#define RTCTK_COMPONENTFRAMEWORK_MEASCMDSIMPL_HPP
18#include <rtctk/componentFramework/events.rad.hpp>
38 std::shared_ptr<elt::mal::rr::RrEntity> rr_service = std::make_shared<MeasCmdsImpl>(engine);
39 replier.
RegisterService<rtctkif::AsyncMeasCmds>(
"MeasCmds", rr_service);
43 : m_logger(
GetLogger(
"rtctk")), m_engine(engine) {
46 ::elt::mal::future<std::string>
Measure(std::string
const& args)
override {
47 LOG4CPLUS_TRACE(m_logger,
"Received command 'Measure' with payload '" + args +
"'");
48 return InjectReqRepEvent<events::Measure>(this->m_engine, args);
52 log4cplus::Logger& m_logger;
Class that handles reception of commands using MAL.
Definition: commandReplier.hpp:29
void RegisterService(std::string const &name, std::shared_ptr< elt::mal::rr::RrEntity > &service)
Definition: commandReplier.hpp:36
Class that handles reception of command Measure using MAL.
Definition: measCmdsImpl.hpp:35
static void Register(CommandReplier &replier, StateMachineEngine &engine)
Definition: measCmdsImpl.hpp:37
::elt::mal::future< std::string > Measure(std::string const &args) override
Definition: measCmdsImpl.hpp:46
MeasCmdsImpl(StateMachineEngine &engine)
Definition: measCmdsImpl.hpp:42
Definition: stateMachineEngine.hpp:35
Receive commands via MAL.
log4cplus::Logger & GetLogger(const std::string &name="app")
Get handle to a specific logger.
Definition: logger.cpp:180
Logging Support Library based on log4cplus.
Provides core functionality of an RTC Component.
Definition: commandReplier.cpp:22
Wrapper around the SCXML State Machine Engine.