31 #include <boost/format.hpp>
33 #include <rsc/runtime/ContainerIO.h>
34 #include <rsc/misc/IllegalStateException.h>
41 using namespace boost;
68 d(new
Impl(*event.d)) {
73 const string& type,
const string& method) :
82 const string& method) :
84 d->scope.reset(
new Scope(scope));
102 stream <<
"UNSPECIFIED";
104 stream <<
", type = " <<
d->type <<
", scope = ";
108 stream <<
"UNSPECIFIED";
110 stream <<
", metaData = " <<
d->metaData <<
", method = " <<
d->method;
111 stream <<
", causes = " <<
d->causes;
114 boost::uint64_t Event::getSequenceNumber()
const {
118 rsc::misc::UUID Event::getId()
const {
124 throw rsc::misc::IllegalStateException(
125 "The event does not contain id information.");
131 const boost::uint32_t& sequenceNumber) {
132 d->id.reset(
new EventId(senderId, sequenceNumber));
133 d->metaData.setSenderId(senderId);
169 return d->causes.insert(
id).second;
173 return d->causes.erase(
id) > 0;
177 return d->causes.count(
id) > 0;
201 d->metaData = metaData;