Go to the documentation of this file.
12 #ifndef RTCTK_COMPONENTFRAMEWORK_STATESUBSCRIBER_HPP
13 #define RTCTK_COMPONENTFRAMEWORK_STATESUBSCRIBER_HPP
15 #include <mal/utility/Uri.hpp>
22 template <
typename TOPIC_TYPE>
40 std::function<void(
double time,
const std::string&
name,
const std::string&
state)>;
56 std::vector<std::unique_ptr<elt::mal::ps::Subscriber<stdif::State>>> m_subscribers;
57 std::vector<std::unique_ptr<elt::mal::ps::Subscription>> m_subscriptions;
62 #endif // RTCTK_COMPONENTFRAMEWORK_STATESUBSCRIBER_HPP
StateSubscriber & operator=(StateSubscriber &&other)=default
name
Definition: wscript:15
Definition: commandReplier.cpp:20
std::function< void(double time, const std::string &name, const std::string &state)> Callback
Definition: stateSubscriber.hpp:40
Class used to subscribe to state-changed-topic using MAL.
Definition: stateSubscriber.hpp:37
StateSubscriber(const elt::mal::Uri &uri, Callback on_state_change)
Definition: stateSubscriber.cpp:36
StateSubscriber & operator=(const StateSubscriber &other)=delete
StateSubscriber(StateSubscriber &&other)=default
Definition: statePublisher.hpp:19
Definition: stateSubscriber.hpp:23
Definition: statePublisher.hpp:24
StateSubscriber(const StateSubscriber &other)=delete
virtual ~StateSubscriber()=default