32 #include "../EventId.h"
33 #include "rsb/protocol/EventId.pb.h"
42 EventIdConverter::EventIdConverter() :
55 return "EventIdConverter";
62 "Called with unsupported data type " + data.first);
65 boost::shared_ptr<EventId> eventId = boost::static_pointer_cast<
EventId>(
68 boost::shared_ptr<protocol::EventId> protocolId(
new protocol::EventId);
70 boost::uuids::uuid uuid = eventId->getParticipantId().getId();
71 protocolId->set_sender_id(uuid.data, uuid.size());
72 protocolId->set_sequence_number(eventId->getSequenceNumber());
75 make_pair(rsc::runtime::typeName<protocol::EventId>(), protocolId),
83 boost::shared_ptr<protocol::EventId> protocolId =
84 boost::static_pointer_cast<protocol::EventId>(
89 boost::shared_ptr<EventId>(
92 (boost::uint8_t*) protocolId->sender_id().c_str()),
93 protocolId->sequence_number())));