Coverage Report

Created: 2025-06-13 06:46

/src/Fast-DDS/include/fastdds/dds/domain/qos/DomainParticipantExtendedQos.hpp
Line
Count
Source (jump to first uncovered line)
1
// Copyright 2024 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 DomainParticipantExtendedQos.hpp
17
 *
18
 */
19
20
#ifndef FASTDDS_DDS_DOMAIN_QOS__PARTICIPANTEXTENDEDQOS_HPP
21
#define FASTDDS_DDS_DOMAIN_QOS__PARTICIPANTEXTENDEDQOS_HPP
22
23
#include <fastdds/fastdds_dll.hpp>
24
25
#include "DomainParticipantQos.hpp"
26
27
namespace eprosima {
28
namespace fastdds {
29
namespace dds {
30
31
class DomainParticipantExtendedQos : public DomainParticipantQos
32
{
33
public:
34
35
    /**
36
     * @brief Constructor
37
     */
38
    FASTDDS_EXPORTED_API DomainParticipantExtendedQos()
39
0
    {
40
0
    }
41
42
    /**
43
     * @brief Destructor
44
     */
45
    FASTDDS_EXPORTED_API virtual ~DomainParticipantExtendedQos()
46
0
    {
47
0
    }
48
49
    DomainParticipantExtendedQos& operator =(
50
            const DomainParticipantQos& qos)
51
0
    {
52
0
        static_cast<DomainParticipantQos&>(*this) = qos;
53
54
0
        return *this;
55
0
    }
56
57
    bool operator ==(
58
            const DomainParticipantExtendedQos& b) const
59
0
    {
60
0
        return (this->domainId_ == b.domainId()) &&
61
0
               (DomainParticipantQos::operator ==(b));
62
0
    }
63
64
    bool operator ==(
65
            const DomainParticipantQos& b) const override
66
0
    {
67
0
        return (DomainParticipantQos::operator ==(b));
68
0
    }
69
70
    /**
71
     * Getter for domainId
72
     *
73
     * @return domainId reference
74
     */
75
    const uint32_t& domainId() const
76
0
    {
77
0
        return domainId_;
78
0
    }
79
80
    /**
81
     * Getter for domainId
82
     *
83
     * @return domainId reference
84
     */
85
    uint32_t& domainId()
86
0
    {
87
0
        return domainId_;
88
0
    }
89
90
private:
91
92
    //! DomainId to be used by the associated DomainParticipant (default: 0)
93
    uint32_t domainId_ = 0;
94
95
};
96
97
98
} // namespace dds
99
} // namespace fastdds
100
} // namespace eprosima
101
102
#endif // FASTDDS_DDS_DOMAIN_QOS__PARTICIPANTEXTENDEDQOS_HPP