13#ifndef RTCTK_COMPONENTFRAMEWORK_STATESUBSCRIBER_HPP
14#define RTCTK_COMPONENTFRAMEWORK_STATESUBSCRIBER_HPP
16#include <mal/utility/Uri.hpp>
23template <
typename TOPIC_TYPE>
43 std::function<void(
double time,
const std::string& name,
const std::string& state)>;
59 std::vector<std::unique_ptr<elt::mal::ps::Subscriber<stdif::State>>> m_subscribers;
60 std::vector<std::unique_ptr<elt::mal::ps::Subscription>> m_subscriptions;
Definition: stateSubscriber.hpp:24
Class used to subscribe to state-changed-topic using MAL.
Definition: stateSubscriber.hpp:40
std::function< void(double time, const std::string &name, const std::string &state)> Callback
Definition: stateSubscriber.hpp:43
StateSubscriber & operator=(StateSubscriber &&other)=default
StateSubscriber(const StateSubscriber &other)=delete
StateSubscriber & operator=(const StateSubscriber &other)=delete
StateSubscriber(StateSubscriber &&other)=default
virtual ~StateSubscriber()=default
Definition: statePublisher.hpp:20
Definition: commandReplier.cpp:22
Definition: statePublisher.hpp:25