Coverage Report

Created: 2026-09-14 06:15

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