fesa-core
5.0.1
|
This class defines an event created by an event source. More...
#include <RTEvent.h>
Public Member Functions | |
RTEvent (AbstractEventSource *eventSource, const boost::shared_ptr< Diagnostics > &diagnostics) | |
Constructor. More... | |
RTEvent () | |
Empty-Constructor for unit-testing (Mocking of this Class) | |
virtual boost::shared_ptr < const RTEventPayload > | getPayload () const |
Retrieves the payload attached to the event. More... | |
virtual void | setPayload (const boost::shared_ptr< RTEventPayload > &payload) |
Sets the payload of the RTEvent to the passed value. More... | |
virtual void | setName (const std::string &concreteEventName) |
Sets the name of this RTEvent to the passed value. More... | |
virtual const std::string & | getName () const |
Returns the name of this RTEvent. More... | |
virtual const AbstractEventSource * | getEventSource () const |
Retrieves the event source that produced the event. More... | |
Public Member Functions inherited from fesa::AbstractEvent | |
virtual | ~AbstractEvent () |
Destructor. | |
MultiplexingContext * | getMultiplexingContext () const |
Returns a pointer to the context attached to the event. More... | |
boost::shared_ptr < MultiplexingContext > | getMultiplexingContextSharedPointer () const |
Returns a shared-pointer to the context attached to the event. More... | |
void | setMultiplexingContext (boost::shared_ptr< MultiplexingContext > &multiplexingContext) |
Set's the multiplexing-context of this RT-event to the passed multiplexingContext. More... | |
Additional Inherited Members | |
Protected Attributes inherited from fesa::AbstractEvent | |
boost::shared_ptr < MultiplexingContext > | multiplexingContext_ |
Multiplexing context attached to the event. | |
This class defines an event created by an event source.
fesa::RTEvent::RTEvent | ( | AbstractEventSource * | eventSource, |
const boost::shared_ptr< Diagnostics > & | diagnostics | ||
) |
Constructor.
eventSource | pointer to the event-source which fires the event |
diagnostics | diagnostic-logger, used to trace the event |
|
virtual |
Retrieves the event source that produced the event.
|
virtual |
|
inlinevirtual |
Retrieves the payload attached to the event.
FesaException | if there is no payload |
|
virtual |
|
virtual |
Sets the payload of the RTEvent to the passed value.
shared-pointer | to the payload to set |