34 #include <boost/cstdint.hpp>
35 #include <boost/shared_ptr.hpp>
36 #include <boost/scoped_ptr.hpp>
38 #include <rsc/misc/langutils.h>
39 #include <rsc/misc/UUID.h>
40 #include <rsc/runtime/Printable.h>
42 #include "rsb/rsbexports.h"
50 typedef boost::shared_ptr<Scope>
ScopePtr;
61 class RSB_EXPORT
Event:
public virtual rsc::runtime::Printable {
77 const std::string& type,
const std::string& method =
"");
79 Event(
Scope scope, boost::shared_ptr<void> payload,
80 const std::string& type,
const std::string& method =
"");
84 std::string getClassName()
const;
85 void printContents(std::ostream& stream)
const;
93 boost::uint64_t getSequenceNumber()
const;
106 DEPRECATED(rsc::misc::UUID getId()
const);
124 void setEventId(
const rsc::misc::UUID& senderId,
const boost::uint32_t& sequenceNumber);
137 Scope getScope()
const;
139 void setScope(
const Scope& scope);
143 std::string getType()
const;
144 void setType(
const std::string& type);
172 bool addCause(
const EventId&
id);
182 bool removeCause(
const EventId&
id);
192 bool isCause(
const EventId&
id)
const;
200 std::set<EventId> getCauses()
const;
210 std::string getMethod()
const;
217 void setMethod(
const std::string& method);
243 void setMetaData(
const MetaData& metaData);
250 boost::scoped_ptr<Impl>
d;
boost::shared_ptr< Scope > ScopePtr
boost::shared_ptr< void > VoidPtr
std::pair< std::string, boost::shared_ptr< void > > AnnotatedData
A combination of data type and the actual data.
Basic message that is exchanged between informers and listeners.
boost::shared_ptr< EventId > EventIdPtr
boost::scoped_ptr< Impl > d
A unique ID for events in RSB.
boost::shared_ptr< Event > EventPtr
Scope is a descriptor for a hierarchical channel of the unified bus.