13#ifndef RTCTK_COMPONENTFRAMEWORK_STATESUBSCRIBER_HPP
14#define RTCTK_COMPONENTFRAMEWORK_STATESUBSCRIBER_HPP
16#include <mal/utility/Uri.hpp>
17#include <taiclock/taiClock.hpp>
24template <
typename TOPIC_TYPE>
43 using Callback = std::function<
void(
const taiclock::TaiClock::time_point time,
44 const std::string& name,
45 const std::string& state)>;
63 std::vector<std::unique_ptr<elt::mal::ps::Subscriber<stdif::State>>> m_subscribers;
64 std::vector<std::unique_ptr<elt::mal::ps::Subscription>> m_subscriptions;
Definition stateSubscriber.hpp:25
Class used to subscribe to state-changed-topic using MAL.
Definition stateSubscriber.hpp:41
StateSubscriber & operator=(StateSubscriber &&other)=default
StateSubscriber(const StateSubscriber &other)=delete
StateSubscriber & operator=(const StateSubscriber &other)=delete
StateSubscriber(StateSubscriber &&other)=default
std::function< void(const taiclock::TaiClock::time_point time, const std::string &name, const std::string &state)> Callback
Definition stateSubscriber.hpp:43
virtual ~StateSubscriber()=default
StateSubscriber(const elt::mal::Uri &uri, Callback on_state_change)
Definition stateSubscriber.cpp:49
Definition statePublisher.hpp:20
Definition commandReplier.cpp:22
elt::mal::future< std::string > InjectReqRepEvent(StateMachineEngine &engine)
Definition malEventInjector.hpp:23
Definition statePublisher.hpp:25