Fast DDS  Version 3.6.1.0
Fast DDS
MatchingInfo.hpp
1 // Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
19 #ifndef FASTDDS_RTPS_COMMON__MATCHINGINFO_HPP
20 #define FASTDDS_RTPS_COMMON__MATCHINGINFO_HPP
21 
22 #include <fastdds/rtps/common/Guid.hpp>
23 
24 namespace eprosima {
25 namespace fastdds {
26 namespace rtps {
27 
32 #if defined(_WIN32)
33 enum FASTDDS_EXPORTED_API MatchingStatus
34 {
35 #else
37 {
38 #endif // if defined(_WIN32)
41 };
42 
47 class FASTDDS_EXPORTED_API MatchingInfo
48 {
49 public:
50 
53  : status(MATCHED_MATCHING)
54  {
55  }
56 
62  MatchingStatus stat,
63  const GUID_t& guid)
64  : status(stat)
65  , remoteEndpointGuid(guid)
66  {
67  }
68 
70  {
71  }
72 
77 };
78 } // namespace rtps
79 } // namespace fastdds
80 } // namespace eprosima
81 
82 #endif // FASTDDS_RTPS_COMMON__MATCHINGINFO_HPP
Class MatchingInfo contains information about the matching between two endpoints.
Definition: MatchingInfo.hpp:48
GUID_t remoteEndpointGuid
Remote endpoint GUID.
Definition: MatchingInfo.hpp:76
MatchingStatus status
Status.
Definition: MatchingInfo.hpp:74
~MatchingInfo()
Definition: MatchingInfo.hpp:69
MatchingInfo()
Default constructor.
Definition: MatchingInfo.hpp:52
MatchingInfo(MatchingStatus stat, const GUID_t &guid)
Definition: MatchingInfo.hpp:61
MatchingStatus
Indicates whether the matched publication/subscription method of the PublisherListener or SubscriberL...
Definition: MatchingInfo.hpp:37
@ MATCHED_MATCHING
MATCHED_MATCHING, new publisher/subscriber found.
Definition: MatchingInfo.hpp:39
@ REMOVED_MATCHING
REMOVED_MATCHING, publisher/subscriber removed.
Definition: MatchingInfo.hpp:40
Structure GUID_t, entity identifier, unique in DDS-RTPS Domain.
Definition: Guid.hpp:40