RSB
0.7.0
|
A unique ID for events in RSB. More...
#include <EventId.h>
Public Member Functions | |
EventId (const rsc::misc::UUID &participantId, const boost::uint32_t &sequenceNumber) | |
virtual | ~EventId () |
rsc::misc::UUID | getParticipantId () const |
boost::uint32_t | getSequenceNumber () const |
rsc::misc::UUID | getAsUUID () const |
bool | operator== (const EventId &other) const |
bool | operator< (const EventId &other) const |
std::string | getClassName () const |
void | printContents (std::ostream &stream) const |
Private Attributes | |
rsc::misc::UUID | participantId |
The id of the sending participant. | |
boost::uint32_t | sequenceNumber |
rsc::misc::UUIDPtr | id |
A cache for the generated uuid. |
A unique ID for events in RSB.
Ids are composed of the sending participant's ID and a sequence number and can optionally be converted to UUIDs.
rsb::EventId::EventId | ( | const rsc::misc::UUID & | participantId, |
const boost::uint32_t & | sequenceNumber | ||
) |
Definition at line 35 of file EventId.cpp.
|
virtual |
Definition at line 40 of file EventId.cpp.
rsc::misc::UUID rsb::EventId::getAsUUID | ( | ) | const |
Definition at line 51 of file EventId.cpp.
References id, participantId, and sequenceNumber.
string rsb::EventId::getClassName | ( | ) | const |
Definition at line 82 of file EventId.cpp.
rsc::misc::UUID rsb::EventId::getParticipantId | ( | ) | const |
Definition at line 43 of file EventId.cpp.
References participantId.
Referenced by rsb::protocol::fillEventId().
boost::uint32_t rsb::EventId::getSequenceNumber | ( | ) | const |
Definition at line 47 of file EventId.cpp.
References sequenceNumber.
Referenced by rsb::protocol::fillEventId().
bool rsb::EventId::operator< | ( | const EventId & | other | ) | const |
Definition at line 72 of file EventId.cpp.
References participantId, and sequenceNumber.
bool rsb::EventId::operator== | ( | const EventId & | other | ) | const |
Definition at line 66 of file EventId.cpp.
References participantId, and sequenceNumber.
void rsb::EventId::printContents | ( | std::ostream & | stream | ) | const |
Definition at line 86 of file EventId.cpp.
References participantId, and sequenceNumber.
|
mutableprivate |
|
private |
The id of the sending participant.
Definition at line 72 of file EventId.h.
Referenced by getAsUUID(), getParticipantId(), operator<(), operator==(), and printContents().
|
private |
Definition at line 73 of file EventId.h.
Referenced by getAsUUID(), getSequenceNumber(), operator<(), operator==(), and printContents().