6 #ifndef KNOWROB_TOKEN_BROADCASTER_H_
7 #define KNOWROB_TOKEN_BROADCASTER_H_
11 #include <knowrob/queries/TokenStream.h>
17 class TokenBroadcaster :
public TokenStream {
46 void operator>>(
const std::shared_ptr<TokenBroadcaster> &a,
47 const std::shared_ptr<TokenStream> &b);
~TokenBroadcaster() override
void removeSubscriber(const std::shared_ptr< Channel > &subscriber)
std::list< std::shared_ptr< Channel > > subscribers_
void addSubscriber(const std::shared_ptr< Channel > &subscriber)
void push(const TokenPtr &tok) override
virtual void pushToBroadcast(const TokenPtr &tok)
std::shared_ptr< const Token > TokenPtr
void operator>>(const std::shared_ptr< TokenBroadcaster > &a, const std::shared_ptr< TokenStream > &b)