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;
90 DEPRECATED(boost::uint64_t getSequenceNumber()
const);
121 void setEventId(
const rsc::misc::UUID& senderId,
const boost::uint32_t& sequenceNumber);
134 Scope getScope()
const;
136 void setScope(
const Scope& scope);
140 std::string getType()
const;
141 void setType(
const std::string& type);
169 bool addCause(
const EventId&
id);
179 bool removeCause(
const EventId&
id);
189 bool isCause(
const EventId&
id)
const;
197 std::set<EventId> getCauses()
const;
207 std::string getMethod()
const;
214 void setMethod(
const std::string& method);
240 void setMetaData(
const MetaData& metaData);
247 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
DEPRECATED(RSB_EXPORT Repository< std::string >::Ptr stringConverterRepository())
A unique ID for events in RSB.
boost::shared_ptr< Event > EventPtr
Scope is a descriptor for a hierarchical channel of the unified bus.