/src/Fast-DDS/include/fastrtps/attributes/ParticipantAttributes.h
Line | Count | Source (jump to first uncovered line) |
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 | | |
15 | | /** |
16 | | * @file ParticipantAttributes.h |
17 | | * |
18 | | */ |
19 | | |
20 | | #ifndef PARTICIPANTATTRIBUTES_H_ |
21 | | #define PARTICIPANTATTRIBUTES_H_ |
22 | | |
23 | | #include <fastdds/rtps/attributes/RTPSParticipantAttributes.h> |
24 | | |
25 | | namespace eprosima { |
26 | | namespace fastrtps { |
27 | | |
28 | | /** |
29 | | * Class ParticipantAttributes, used by the user to define the attributes of a Participant. |
30 | | * The Participants in the Publisher-Subscriber layer are only a container to a RTPSParticipant, so their attributes are the same. |
31 | | * Still to maintain the equivalence this class is used to define them. |
32 | | * @ingroup FASTRTPS_ATTRIBUTES_MODULE |
33 | | */ |
34 | | class ParticipantAttributes |
35 | | { |
36 | | public: |
37 | | |
38 | | //! DomainId to be used by the associated RTPSParticipant (default: 0) |
39 | | uint32_t domainId = 0; |
40 | | |
41 | | //!Attributes of the associated RTPSParticipant. |
42 | | rtps::RTPSParticipantAttributes rtps; |
43 | | |
44 | | ParticipantAttributes() |
45 | 2 | { |
46 | 2 | } |
47 | | |
48 | | virtual ~ParticipantAttributes() |
49 | 0 | { |
50 | 0 | } |
51 | | |
52 | | bool operator ==( |
53 | | const ParticipantAttributes& b) const |
54 | 0 | { |
55 | 0 | return (this->domainId == b.domainId && this->rtps == b.rtps); |
56 | 0 | } |
57 | | |
58 | | }; |
59 | | |
60 | | } // namespace fastrtps |
61 | | } // namespace eprosima |
62 | | |
63 | | #endif /* PARTICIPANTATTRIBUTES_H_ */ |