24 #include <plugins/gossip/aspect/gossip_inifin.h> 25 #include <plugins/gossip/gossip/gossip_group_manager.h> 26 #include <plugins/gossip/gossip/gossip_group.h> 27 #include <core/threading/thread_finalizer.h> 59 if (gossip_thread == NULL) {
61 "GossipAspect, but RTTI says it " 62 "has not. ", thread->
name());
66 gossip_group_mgr_->
join_group(gossip_thread->GossipAspect_group_name_);
76 if (gossip_thread == NULL) {
78 "GossipAspect, but RTTI says it " 79 "has not. ", thread->
name());
93 gossip_group_mgr_ = gossip_group_mgr;
virtual void leave_group(RefPtr< GossipGroup > &group)
Leave a gossip group.
GossipAspectIniFin()
Constructor.
Fawkes library namespace.
virtual RefPtr< GossipGroup > join_group(const std::string &name)
Join a group.
Thread class encapsulation of pthreads.
virtual void finalize(Thread *thread)
Finalize thread.
Thread aspect to communicate with a group of robots.
Thread cannot be initialized.
RefPtr< GossipGroup > gossip_group
Gossip group to communicate with other robots.
~GossipAspectIniFin()
Destructor.
Abstract class for a Gossip group manager.
const char * name() const
Get name of thread.
RefPtr<> is a reference-counting shared smartpointer.
Thread cannot be finalized.
virtual void init(Thread *thread)
Initialize thread.
Aspect initializer/finalizer base class.
void set_manager(GossipGroupManager *gossip_group_mgr)
Set gossip group manger.