@@ -1044,6 +1044,22 @@ ReturnCode_t DomainParticipantImpl::get_publisher_qos_from_profile(
1044
1044
return RETCODE_BAD_PARAMETER;
1045
1045
}
1046
1046
1047
+ ReturnCode_t DomainParticipantImpl::get_publisher_qos_from_xml (
1048
+ const std::string& xml,
1049
+ PublisherQos& qos,
1050
+ const std::string& profile_name) const
1051
+ {
1052
+ xmlparser::PublisherAttributes attr;
1053
+ if (XMLP_ret::XML_OK == XMLProfileManager::fill_publisher_attributes_from_xml (xml, attr, profile_name))
1054
+ {
1055
+ qos = default_pub_qos_;
1056
+ utils::set_qos_from_attributes (qos, attr);
1057
+ return RETCODE_OK;
1058
+ }
1059
+
1060
+ return RETCODE_BAD_PARAMETER;
1061
+ }
1062
+
1047
1063
ReturnCode_t DomainParticipantImpl::set_default_subscriber_qos (
1048
1064
const SubscriberQos& qos)
1049
1065
{
@@ -1092,6 +1108,22 @@ ReturnCode_t DomainParticipantImpl::get_subscriber_qos_from_profile(
1092
1108
return RETCODE_BAD_PARAMETER;
1093
1109
}
1094
1110
1111
+ ReturnCode_t DomainParticipantImpl::get_subscriber_qos_from_xml (
1112
+ const std::string& xml,
1113
+ SubscriberQos& qos,
1114
+ const std::string& profile_name) const
1115
+ {
1116
+ xmlparser::SubscriberAttributes attr;
1117
+ if (XMLP_ret::XML_OK == XMLProfileManager::fill_subscriber_attributes_from_xml (xml, attr, profile_name))
1118
+ {
1119
+ qos = default_sub_qos_;
1120
+ utils::set_qos_from_attributes (qos, attr);
1121
+ return RETCODE_OK;
1122
+ }
1123
+
1124
+ return RETCODE_BAD_PARAMETER;
1125
+ }
1126
+
1095
1127
ReturnCode_t DomainParticipantImpl::set_default_topic_qos (
1096
1128
const TopicQos& qos)
1097
1129
{
@@ -1140,6 +1172,22 @@ ReturnCode_t DomainParticipantImpl::get_topic_qos_from_profile(
1140
1172
return RETCODE_BAD_PARAMETER;
1141
1173
}
1142
1174
1175
+ ReturnCode_t DomainParticipantImpl::get_topic_qos_from_xml (
1176
+ const std::string& profile_name,
1177
+ TopicQos& qos,
1178
+ const std::string& xml) const
1179
+ {
1180
+ xmlparser::TopicAttributes attr;
1181
+ if (XMLP_ret::XML_OK == XMLProfileManager::fill_topic_attributes_from_xml (xml, attr, profile_name))
1182
+ {
1183
+ qos = default_topic_qos_;
1184
+ utils::set_qos_from_attributes (qos, attr);
1185
+ return RETCODE_OK;
1186
+ }
1187
+
1188
+ return RETCODE_BAD_PARAMETER;
1189
+ }
1190
+
1143
1191
ReturnCode_t DomainParticipantImpl::get_replier_qos_from_profile (
1144
1192
const std::string& profile_name,
1145
1193
ReplierQos& qos) const
@@ -1154,6 +1202,21 @@ ReturnCode_t DomainParticipantImpl::get_replier_qos_from_profile(
1154
1202
return RETCODE_BAD_PARAMETER;
1155
1203
}
1156
1204
1205
+ ReturnCode_t DomainParticipantImpl::get_replier_qos_from_xml (
1206
+ const std::string& xml,
1207
+ ReplierQos& qos,
1208
+ const std::string& profile_name) const
1209
+ {
1210
+ xmlparser::ReplierAttributes attr;
1211
+ if (XMLP_ret::XML_OK == XMLProfileManager::fill_replier_attributes_from_xml (xml, attr, profile_name))
1212
+ {
1213
+ utils::set_qos_from_attributes (qos, attr);
1214
+ return RETCODE_OK;
1215
+ }
1216
+
1217
+ return RETCODE_BAD_PARAMETER;
1218
+ }
1219
+
1157
1220
ReturnCode_t DomainParticipantImpl::get_requester_qos_from_profile (
1158
1221
const std::string& profile_name,
1159
1222
RequesterQos& qos) const
@@ -1168,6 +1231,21 @@ ReturnCode_t DomainParticipantImpl::get_requester_qos_from_profile(
1168
1231
return RETCODE_BAD_PARAMETER;
1169
1232
}
1170
1233
1234
+ ReturnCode_t DomainParticipantImpl::get_requester_qos_from_xml (
1235
+ const std::string& xml,
1236
+ RequesterQos& qos,
1237
+ const std::string& profile_name) const
1238
+ {
1239
+ xmlparser::RequesterAttributes attr;
1240
+ if (XMLP_ret::XML_OK == XMLProfileManager::fill_requester_attributes_from_xml (xml, attr, profile_name))
1241
+ {
1242
+ utils::set_qos_from_attributes (qos, attr);
1243
+ return RETCODE_OK;
1244
+ }
1245
+
1246
+ return RETCODE_BAD_PARAMETER;
1247
+ }
1248
+
1171
1249
/* TODO
1172
1250
bool DomainParticipantImpl::get_discovered_participants(
1173
1251
std::vector<InstanceHandle_t>& participant_handles) const
0 commit comments