/src/Fast-DDS/include/fastdds/rtps/reader/ReaderDiscoveryInfo.h
Line | Count | Source (jump to first uncovered line) |
1 | | // Copyright 2018 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 | | |
15 | | /** |
16 | | * @file ReaderDiscoveryInfo.h |
17 | | * |
18 | | */ |
19 | | |
20 | | #ifndef _FASTDDS_RTPS_READER_READERDISCOVERYINFO_H__ |
21 | | #define _FASTDDS_RTPS_READER_READERDISCOVERYINFO_H__ |
22 | | |
23 | | #include <fastrtps/fastrtps_dll.h> |
24 | | #include <fastdds/rtps/builtin/data/ReaderProxyData.h> |
25 | | |
26 | | namespace eprosima { |
27 | | namespace fastrtps { |
28 | | namespace rtps { |
29 | | |
30 | | /** |
31 | | * Class ReaderDiscoveryInfo with discovery information of the reader. |
32 | | * @ingroup RTPS_MODULE |
33 | | */ |
34 | | struct ReaderDiscoveryInfo |
35 | | { |
36 | | public: |
37 | | |
38 | | //!Enum DISCOVERY_STATUS, four different status for discovered readers. |
39 | | //!@ingroup RTPS_MODULE |
40 | | #if defined(_WIN32) |
41 | | enum RTPS_DllAPI DISCOVERY_STATUS |
42 | | #else |
43 | | enum DISCOVERY_STATUS |
44 | | #endif |
45 | | { |
46 | | DISCOVERED_READER, |
47 | | CHANGED_QOS_READER, |
48 | | REMOVED_READER |
49 | | }; |
50 | | |
51 | | ReaderDiscoveryInfo(const ReaderProxyData& data) |
52 | | : status(DISCOVERED_READER) |
53 | | , info(data) |
54 | 0 | {} |
55 | | |
56 | 0 | virtual ~ReaderDiscoveryInfo() {} |
57 | | |
58 | | //! Status |
59 | | DISCOVERY_STATUS status; |
60 | | |
61 | | //! Participant discovery info |
62 | | const ReaderProxyData& info; |
63 | | }; |
64 | | |
65 | | } |
66 | | } |
67 | | } |
68 | | |
69 | | #endif // _FASTDDS_RTPS_READER_READERDISCOVERYINFO_H__ |