File tree Expand file tree Collapse file tree 4 files changed +17
-1
lines changed Expand file tree Collapse file tree 4 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 1288
1288
├ reliability [0~1],
1289
1289
├ timeBasedFilter [0~1],
1290
1290
├ topicData [0~1],
1291
- └ userData [0~1] -->
1291
+ ├ userData [0~1],
1292
+ └ transport_priority [0~1] -->
1292
1293
<xs : complexType name =" dataWriterQosPoliciesType" >
1293
1294
<xs : all >
1294
1295
<xs : element name =" data_sharing" type =" dataSharingQosPolicyType" minOccurs =" 0" maxOccurs =" 1" />
1311
1312
<xs : element name =" timeBasedFilter" type =" timeBasedFilterQosPolicyType" minOccurs =" 0" maxOccurs =" 1" />
1312
1313
<xs : element name =" topicData" type =" octectVectorQosPolicyType" minOccurs =" 0" maxOccurs =" 1" />
1313
1314
<xs : element name =" userData" type =" octectVectorQosPolicyType" minOccurs =" 0" maxOccurs =" 1" />
1315
+ <xs : element name =" transport_priority" type =" int32" minOccurs =" 0" maxOccurs =" 1" />
1314
1316
</xs : all >
1315
1317
</xs : complexType >
1316
1318
Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ void set_qos_from_attributes(
63
63
qos.resource_limits () = attr.topic .resourceLimitsQos ;
64
64
qos.data_sharing () = attr.qos .data_sharing ;
65
65
qos.reliable_writer_qos ().disable_heartbeat_piggyback = attr.qos .disable_heartbeat_piggyback ;
66
+ qos.transport_priority ().value = attr.transport_priority ;
66
67
67
68
if (attr.qos .m_partition .size () > 0 )
68
69
{
Original file line number Diff line number Diff line change @@ -4285,6 +4285,14 @@ XMLP_ret XMLParser::getXMLPublisherAttributes(
4285
4285
return XMLP_ret::XML_ERROR;
4286
4286
}
4287
4287
}
4288
+ else if (strcmp (name, " transport_priority" ) == 0 )
4289
+ {
4290
+ // transport_priority - int32
4291
+ if (XMLP_ret::XML_OK != getXMLInt (p_aux0, &publisher.transport_priority , ident))
4292
+ {
4293
+ return XMLP_ret::XML_ERROR;
4294
+ }
4295
+ }
4288
4296
else
4289
4297
{
4290
4298
EPROSIMA_LOG_ERROR (XMLPARSER, " Invalid element found into 'publisherProfileType'. Name: " << name);
Original file line number Diff line number Diff line change 19
19
#ifndef FASTDDS_XMLPARSER_ATTRIBUTES__PUBLISHERATTRIBUTES_HPP
20
20
#define FASTDDS_XMLPARSER_ATTRIBUTES__PUBLISHERATTRIBUTES_HPP
21
21
22
+ #include < cstdint>
22
23
23
24
#include < fastdds/dds/publisher/qos/WriterQos.hpp>
24
25
#include < fastdds/rtps/attributes/ExternalLocators.hpp>
27
28
#include < fastdds/rtps/attributes/WriterAttributes.hpp>
28
29
#include < fastdds/rtps/common/Locator.hpp>
29
30
#include < fastdds/rtps/common/Time_t.hpp>
31
+ #include < fastdds/utils/collections/ResourceLimitedContainerConfig.hpp>
30
32
31
33
#include < xmlparser/attributes/TopicAttributes.hpp>
32
34
@@ -95,6 +97,9 @@ class PublisherAttributes
95
97
// ! Allocation limits on the matched subscribers collections
96
98
fastdds::ResourceLimitedContainerConfig matched_subscriber_allocation;
97
99
100
+ // ! Transport priority for the Publisher
101
+ int32_t transport_priority;
102
+
98
103
/* *
99
104
* Get the user defined ID
100
105
* @return User defined ID
You can’t perform that action at this time.
0 commit comments