12#ifndef RTCTK_COMPONENTFRAMEWORK_MEASCMDSIMPL_HPP
13#define RTCTK_COMPONENTFRAMEWORK_MEASCMDSIMPL_HPP
17#include <rtctk/componentFramework/events.rad.hpp>
37 std::shared_ptr<elt::mal::rr::RrEntity> rr_service = std::make_shared<MeasCmdsImpl>(engine);
38 replier.
RegisterService<rtctkif::AsyncMeasCmds>(
"MeasCmds", rr_service);
42 : m_logger(
GetLogger(
"rtctk")), m_engine(engine) {
45 ::elt::mal::future<std::string>
Measure(
const std::string& args)
override {
46 LOG4CPLUS_TRACE(m_logger,
"Received command 'Measure' with payload '" + args +
"'");
51 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
static void Register(CommandReplier &replier, StateMachineEngine &engine)
Definition measCmdsImpl.hpp:36
::elt::mal::future< std::string > Measure(const std::string &args) override
Definition measCmdsImpl.hpp:45
MeasCmdsImpl(StateMachineEngine &engine)
Definition measCmdsImpl.hpp:41
Definition stateMachineEngine.hpp:34
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.