C++ TargetRTS
Loading...
Searching...
No Matches
RTEventReception.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 __RTEventReception_h__
11#define __RTEventReception_h__ included
12
13#ifdef PRAGMA
14#pragma interface
15#endif
16
17#include <string>
18#include <RTConfig.h>
19#include <RTEventReceptionInterface.h>
20
21class RTProtocol;
22class RTMessage;
23
30{
31public:
35 RTEventReception( const RTProtocol * p = nullptr );
36
42 RTEventReception( const std::string & sigName,
43 const RTProtocol * p = nullptr,
44 const std::string & data = "" );
45
51 RTEventReception( const int & sig,
52 const RTProtocol * p,
53 const std::string & data = "" );
54
56
61 virtual bool match( const RTMessage * msg ) override;
62
63private:
64 const RTProtocol * proto;
65 const std::string signalName;
66 const int signal;
67 const std::string dataString;
68};
69
70#endif //__RTEventReception_h__
A static constraint on an event that should be received by a capsule that uses the RTMultiReceive uti...
Definition: RTEventReception.h:30
RTEventReception(const int &sig, const RTProtocol *p, const std::string &data="")
Construction of RTEventReception.
RTEventReception(const std::string &sigName, const RTProtocol *p=nullptr, const std::string &data="")
Construction of RTEventReception.
RTEventReception(const RTProtocol *p=nullptr)
Construction of RTEventReception.
virtual bool match(const RTMessage *msg) override
Match the received message with the data of this RTEventReception object.
Abstract description of an event that is expected to be received by a capsule that uses the RTMultiRe...
Definition: RTEventReceptionInterface.h:24
Represents a message used for communication between capsule instances.
Definition: RTMessage.h:33
Represents a general capsule port typed by a protocol which determines the set of events that can be ...
Definition: RTProtocol.h:50