RSB
0.7.0
|
Objects of this class participate in the exchange of notifications on one channel of the bus. More...
#include <Participant.h>
Classes | |
class | Impl |
Public Member Functions | |
virtual | ~Participant () |
void | printContents (std::ostream &stream) const |
rsc::misc::UUID | getId () const |
Returns the unique id of the participant. | |
ScopePtr | getScope () const |
Returns the scope of this participant. | |
ParticipantConfig | getConfig () const |
Returns a copy of the participant's configuration. |
Protected Member Functions | |
Participant (const Scope &scope, const ParticipantConfig &config) |
Private Attributes | |
boost::scoped_ptr< Impl > | d |
Objects of this class participate in the exchange of notifications on one channel of the bus.
Since each channel is identified by scope, each rsb::Participant has an associated scope. On the other hand, scopes do not uniquely identify rsb::Participant s since zero, one or more of these can participate in the exchange of any given scope. For this reason, each rsb::Participant has a unique id.
Definition at line 57 of file Participant.h.
|
virtual |
Definition at line 49 of file Participant.cpp.
|
protected |
Definition at line 43 of file Participant.cpp.
References d.
ParticipantConfig rsb::Participant::getConfig | ( | ) | const |
Returns a copy of the participant's configuration.
Definition at line 60 of file Participant.cpp.
References d.
Referenced by rsb::Listener::initialize().
rsc::misc::UUID rsb::Participant::getId | ( | ) | const |
Returns the unique id of the participant.
Definition at line 52 of file Participant.cpp.
References d.
Referenced by rsb::InformerBase::uncheckedPublish().
ScopePtr rsb::Participant::getScope | ( | ) | const |
Returns the scope of this participant.
Definition at line 56 of file Participant.cpp.
References d.
Referenced by rsb::LocalService::addParticipant(), rsb::patterns::RemoteServer::callAsync(), rsb::InformerBase::checkedPublish(), and rsb::InformerBase::createEvent().
void rsb::Participant::printContents | ( | std::ostream & | stream | ) | const |
Reimplemented in rsb::InformerBase, and rsb::Service.
Definition at line 64 of file Participant.cpp.
References d.
|
private |
Definition at line 92 of file Participant.h.
Referenced by getConfig(), getId(), getScope(), Participant(), and printContents().