12#ifndef RTCTK_COMPONENTFRAMEWORK_STATESUBSCRIBER_HPP
13#define RTCTK_COMPONENTFRAMEWORK_STATESUBSCRIBER_HPP
15#include <mal/utility/Uri.hpp>
16#include <taiclock/taiClock.hpp>
23template <
typename TOPIC_TYPE>
42 using Callback = std::function<void(
const taiclock::TaiClock::time_point time,
43 const std::string& name,
44 const std::string& state)>;
62 std::vector<std::unique_ptr<elt::mal::ps::Subscriber<stdif::State>>> m_subscribers;
63 std::vector<std::unique_ptr<elt::mal::ps::Subscription>> m_subscriptions;
Definition stateSubscriber.hpp:24
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:42
virtual ~StateSubscriber()=default
StateSubscriber(const elt::mal::Uri &uri, Callback on_state_change)
Definition stateSubscriber.cpp:49
Definition statePublisher.hpp:19
Definition commandReplier.cpp:21
Definition statePublisher.hpp:24