Fawkes API  Fawkes Development Version
fawkes::GossipAspect Class Reference

Thread aspect to communicate with a group of robots. More...

#include <>>

Inheritance diagram for fawkes::GossipAspect:

Public Member Functions

 GossipAspect (const char *group_name)
 Constructor. More...
 
virtual ~GossipAspect ()
 Virtual empty destructor. More...
 
- Public Member Functions inherited from fawkes::Aspect
const std::list< const char * > & get_aspects () const
 Get list of aspect names attached to a aspected thread. More...
 

Protected Attributes

RefPtr< GossipGroupgossip_group
 Gossip group to communicate with other robots. More...
 

Friends

class GossipAspectIniFin
 

Additional Inherited Members

- Protected Member Functions inherited from fawkes::Aspect
void add_aspect (const char *name)
 Add an aspect to a thread. More...
 

Detailed Description

Thread aspect to communicate with a group of robots.

Give this aspect to your thread to get access to a communication group.

Author
Tim Niemueller

Definition at line 39 of file gossip.h.

Constructor & Destructor Documentation

◆ GossipAspect()

fawkes::GossipAspect::GossipAspect ( const char *  group_name)

Constructor.

Parameters
group_nameGossip group to join and communicate with.

Definition at line 48 of file gossip.cpp.

References fawkes::Aspect::add_aspect().

◆ ~GossipAspect()

fawkes::GossipAspect::~GossipAspect ( )
virtual

Virtual empty destructor.

Definition at line 56 of file gossip.cpp.

Member Data Documentation

◆ gossip_group

fawkes:RefPtr< GossipGroup > fawkes::GossipAspect::gossip_group
protected

Gossip group to communicate with other robots.

Definition at line 48 of file gossip.h.

Referenced by fawkes::GossipAspectIniFin::finalize(), fawkes::GossipAspectIniFin::init(), GossipExampleReceiverThread::init(), and GossipExampleSenderThread::loop().


The documentation for this class was generated from the following files: