C++ TargetRTS
|
A dynamic constraint on a message that should be received by a capsule that uses the RTMultiReceive utility for keeping track of multiple received events. More...
#include <RTEventReceptionMsg.h>
Public Member Functions | |
RTEventReceptionMsg (std::function< bool(const RTMessage *)> pred) | |
Construction of RTEventReceptionMsg. | |
virtual bool | match (const RTMessage *msg) override |
Match the received message by calling the predicate function. | |
virtual bool | match (const RTMessage *)=0 |
Check if a received message matches the expectations on a received event as described in the concrete derived classes. | |
A dynamic constraint on a message that should be received by a capsule that uses the RTMultiReceive utility for keeping track of multiple received events.
The constraint lets you specify the event to be received by means of a predicate function.
RTEventReceptionMsg::RTEventReceptionMsg | ( | std::function< bool(const RTMessage *)> | pred | ) |
Construction of RTEventReceptionMsg.
[in] | pred | predicate used for dynamically matching a received message |
|
overridevirtual |
Match the received message by calling the predicate function.
If it returns true, the message matches the expected event.
[in] | message | received by a capsule |
Implements RTEventReceptionInterface.