C++ TargetRTS
Loading...
Searching...
No Matches
RTEventReceptionMsg.h
1/*
2 * Licensed Materials - Property of HCL and/or IBM
3 * Copyright HCL Technologies Ltd. 2016, 2025. All Rights Reserved.
4 * Copyright IBM Corporation 1999, 2016. All Rights Reserved.
5 *
6 * U.S. Government Users Restricted Rights - Use, duplication or
7 * disclosure restricted by GSA ADP Schedule.
8 */
9
10#ifndef __RTEventReceptionMsg_h__
11#define __RTEventReceptionMsg_h__ included
12
13#ifdef PRAGMA
14#pragma interface
15#endif
16
17#include <RTConfig.h>
18
19#if !RTUseCPP11
20#error RTEventReceptionMsg requires a compiler that supports C++ 11.
21#endif
22
23#include <RTEventReceptionInterface.h>
24#include <functional>
25
26class RTMessage;
27
33{
34public:
35
39 RTEventReceptionMsg( std::function<bool(const RTMessage*)> pred );
40
42
48 virtual bool match( const RTMessage * msg ) override;
49
50private:
51 std::function<bool(const RTMessage*)> predicate;
52};
53
54#endif //__RTEventReceptionMsg_h__
Abstract description of an event that is expected to be received by a capsule that uses the RTMultiRe...
Definition: RTEventReceptionInterface.h:24
A dynamic constraint on a message that should be received by a capsule that uses the RTMultiReceive u...
Definition: RTEventReceptionMsg.h:33
virtual bool match(const RTMessage *msg) override
Match the received message by calling the predicate function.
RTEventReceptionMsg(std::function< bool(const RTMessage *)> pred)
Construction of RTEventReceptionMsg.
Represents a message used for communication between capsule instances.
Definition: RTMessage.h:33