C++ TargetRTS
Loading...
Searching...
No Matches
Public Member Functions | List of all members
RTEventReceptionMsg Class Reference

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>

Inheritance diagram for RTEventReceptionMsg:
RTEventReceptionInterface

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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ RTEventReceptionMsg()

RTEventReceptionMsg::RTEventReceptionMsg ( std::function< bool(const RTMessage *)>  pred)

Construction of RTEventReceptionMsg.

Parameters
[in]predpredicate used for dynamically matching a received message

Member Function Documentation

◆ match()

virtual bool RTEventReceptionMsg::match ( const RTMessage msg)
overridevirtual

Match the received message by calling the predicate function.

If it returns true, the message matches the expected event.

Parameters
[in]messagereceived by a capsule
Returns
true if the message matches, otherwise false

Implements RTEventReceptionInterface.


The documentation for this class was generated from the following file: