/src/Fast-DDS/src/cpp/fastdds/subscriber/qos/DataReaderQos.cpp
Line | Count | Source (jump to first uncovered line) |
1 | | // Copyright 2019 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 DataReaderQos.cpp |
17 | | * |
18 | | */ |
19 | | |
20 | | #include <fastdds/dds/subscriber/qos/DataReaderQos.hpp> |
21 | | #include <fastdds/core/policy/QosPolicyUtils.hpp> |
22 | | |
23 | | namespace eprosima { |
24 | | namespace fastdds { |
25 | | namespace dds { |
26 | | |
27 | | const DataReaderQos DATAREADER_QOS_DEFAULT; |
28 | | const DataReaderQos DATAREADER_QOS_USE_TOPIC_QOS; |
29 | | |
30 | | ReaderQos DataReaderQos::get_readerqos( |
31 | | const SubscriberQos& sqos) const |
32 | 0 | { |
33 | 0 | ReaderQos qos; |
34 | 0 | qos.m_durability = durability(); |
35 | 0 | qos.m_deadline = deadline(); |
36 | 0 | qos.m_latencyBudget = latency_budget(); |
37 | 0 | qos.m_liveliness = liveliness(); |
38 | 0 | qos.m_reliability = reliability(); |
39 | 0 | qos.m_destinationOrder = destination_order(); |
40 | 0 | qos.m_presentation = sqos.presentation(); |
41 | 0 | qos.m_partition = sqos.partition(); |
42 | 0 | qos.m_groupData = sqos.group_data(); |
43 | 0 | qos.m_userData = user_data(); |
44 | 0 | qos.m_ownership = ownership(); |
45 | 0 | qos.m_timeBasedFilter = time_based_filter(); |
46 | 0 | qos.m_lifespan = lifespan(); |
47 | | //qos.m_topicData --> TODO: Fill with TopicQos info |
48 | 0 | qos.m_durabilityService = durability_service(); |
49 | 0 | qos.m_disablePositiveACKs = reliable_reader_qos().disable_positive_acks; |
50 | 0 | qos.type_consistency = type_consistency(); |
51 | 0 | qos.representation = representation(); |
52 | 0 | qos.data_sharing = data_sharing(); |
53 | |
|
54 | 0 | if (qos.data_sharing.kind() != OFF && |
55 | 0 | qos.data_sharing.domain_ids().empty()) |
56 | 0 | { |
57 | 0 | qos.data_sharing.add_domain_id(utils::default_domain_id()); |
58 | 0 | } |
59 | |
|
60 | 0 | return qos; |
61 | 0 | } |
62 | | |
63 | | } /* namespace dds */ |
64 | | } /* namespace fastdds */ |
65 | | } /* namespace eprosima */ |