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" 49 typedef boost::shared_ptr<Scope>
ScopePtr;
60 class RSB_EXPORT
Event:
public virtual rsc::runtime::Printable {
75 Event(ScopePtr scope, boost::shared_ptr<void> payload,
76 const std::string& type,
const std::string& method =
"");
78 Event(
Scope scope, boost::shared_ptr<void> payload,
79 const std::string& type,
const std::string& method =
"");
83 std::string getClassName()
const;
84 void printContents(std::ostream& stream)
const;
93 DEPRECATED(boost::uint64_t getSequenceNumber()
const);
112 void setId(
const rsc::misc::UUID& senderId,
const boost::uint32_t& sequenceNumber);
124 DEPRECATED(
EventId getEventId()
const);
133 DEPRECATED(
void setEventId(
const rsc::misc::UUID& senderId,
134 const boost::uint32_t& sequenceNumber));
146 ScopePtr getScopePtr()
const;
147 Scope getScope()
const;
148 void setScopePtr(ScopePtr scope);
149 void setScope(
const Scope& scope);
153 std::string getType()
const;
154 void setType(
const std::string& type);
157 void setData(VoidPtr d);
182 bool addCause(
const EventId&
id);
192 bool removeCause(
const EventId&
id);
202 bool isCause(
const EventId&
id)
const;
210 std::set<EventId> getCauses()
const;
220 std::string getMethod()
const;
227 void setMethod(
const std::string& method);
253 void setMetaData(
const MetaData& metaData);
260 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::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.