13#ifndef HLCC_TELIF_TELIF_SIMCMDSIMPL_HPP
14#define HLCC_TELIF_TELIF_SIMCMDSIMPL_HPP
16#include <rad/exceptions.hpp>
17#include <rad/smAdapter.hpp>
19#include "telif/simCmds.rad.hpp"
35 virtual elt::mal::future<std::string>
UpdateRousTimer(std::uint16_t new_time)
override {
38 LOG4CPLUS_INFO(
GetLogger(),
"Received UpdateRousTimer with: new_time " << new_time);
40 auto ev = std::make_shared<SimCmds::UpdateRousTimer>(new_time);
41 m_sm.RegisterDefaultRequestRejectHandler<SimCmds::UpdateRousTimer>();
44 return ev->GetPayload().GetReplyFuture();
50 static std::string ContinuationCheckRejection(elt::mal::future<std::string> future, std::string method_name) {
51 std::string reply = future.get();
52 if (reply.find(
"Request rejected in state") != std::string::npos) {
53 LOG4CPLUS_INFO(
GetLogger(), method_name <<
" command rejected by eltpk: " << reply);
virtual elt::mal::future< std::string > UpdateRousTimer(std::uint16_t new_time) override
Definition simCmdsImpl.hpp:35
SimCmdsImpl(rad::SMAdapter &sm)
Definition simCmdsImpl.hpp:27
virtual ~SimCmdsImpl()
Definition simCmdsImpl.hpp:31
Definition configTest.cpp:22
log4cplus::Logger & GetLogger()
Definition logger.cpp:21