diff --git a/src/cpp/fastdds/domain/DomainParticipantFactory.cpp b/src/cpp/fastdds/domain/DomainParticipantFactory.cpp index 9ebe37ac243..e243d1ef252 100644 --- a/src/cpp/fastdds/domain/DomainParticipantFactory.cpp +++ b/src/cpp/fastdds/domain/DomainParticipantFactory.cpp @@ -341,125 +341,14 @@ ReturnCode_t DomainParticipantFactory::get_participant_qos_from_profile( return RETCODE_BAD_PARAMETER; } -<<<<<<< HEAD -======= -ReturnCode_t DomainParticipantFactory::get_participant_qos_from_xml( - const std::string& xml, - DomainParticipantQos& qos) const -{ - ParticipantAttributes attr; - if (XMLP_ret::XML_OK == XMLProfileManager::fill_participant_attributes_from_xml(xml, attr, false)) - { - qos = default_participant_qos_; - utils::set_qos_from_attributes(qos, attr.rtps); - return RETCODE_OK; - } - - return RETCODE_BAD_PARAMETER; -} - -ReturnCode_t DomainParticipantFactory::get_participant_qos_from_xml( - const std::string& xml, - DomainParticipantQos& qos, - const std::string& profile_name) const -{ - if (profile_name.empty()) - { - EPROSIMA_LOG_ERROR(DDS_DOMAIN, "Provided profile name must be non-empty"); - return RETCODE_BAD_PARAMETER; - } - - ParticipantAttributes attr; - if (XMLP_ret::XML_OK == XMLProfileManager::fill_participant_attributes_from_xml(xml, attr, true, profile_name)) - { - qos = default_participant_qos_; - utils::set_qos_from_attributes(qos, attr.rtps); - return RETCODE_OK; - } - - return RETCODE_BAD_PARAMETER; -} - -ReturnCode_t DomainParticipantFactory::get_default_participant_qos_from_xml( - const std::string& xml, - DomainParticipantQos& qos) const -{ - ParticipantAttributes attr; - if (XMLP_ret::XML_OK == XMLProfileManager::fill_default_participant_attributes_from_xml(xml, attr, true)) - { - qos = default_participant_qos_; - utils::set_qos_from_attributes(qos, attr.rtps); - return RETCODE_OK; - } - - return RETCODE_BAD_PARAMETER; -} - ->>>>>>> 55cf7b2a (Fix log category name macro collision in `MacOS` (#5585) (#5595)) ReturnCode_t DomainParticipantFactory::get_participant_extended_qos_from_profile( const std::string& profile_name, DomainParticipantExtendedQos& extended_qos) const { - extended_qos = default_participant_qos_; ParticipantAttributes attr; if (XMLP_ret::XML_OK == XMLProfileManager::fillParticipantAttributes(profile_name, attr, false)) - { -<<<<<<< HEAD -======= - extended_qos = default_participant_qos_; - utils::set_extended_qos_from_attributes(extended_qos, attr); - return RETCODE_OK; - } - - return RETCODE_BAD_PARAMETER; -} - -ReturnCode_t DomainParticipantFactory::get_participant_extended_qos_from_xml( - const std::string& xml, - DomainParticipantExtendedQos& extended_qos) const -{ - ParticipantAttributes attr; - if (XMLP_ret::XML_OK == XMLProfileManager::fill_participant_attributes_from_xml(xml, attr, false)) - { - extended_qos = default_participant_qos_; - utils::set_extended_qos_from_attributes(extended_qos, attr); - return RETCODE_OK; - } - - return RETCODE_BAD_PARAMETER; -} - -ReturnCode_t DomainParticipantFactory::get_participant_extended_qos_from_xml( - const std::string& xml, - DomainParticipantExtendedQos& extended_qos, - const std::string& profile_name) const -{ - if (profile_name.empty()) - { - EPROSIMA_LOG_ERROR(DDS_DOMAIN, "Provided profile name must be non-empty"); - return RETCODE_BAD_PARAMETER; - } - - ParticipantAttributes attr; - if (XMLP_ret::XML_OK == XMLProfileManager::fill_participant_attributes_from_xml(xml, attr, true, profile_name)) - { - extended_qos = default_participant_qos_; - utils::set_extended_qos_from_attributes(extended_qos, attr); - return RETCODE_OK; - } - - return RETCODE_BAD_PARAMETER; -} - -ReturnCode_t DomainParticipantFactory::get_default_participant_extended_qos_from_xml( - const std::string& xml, - DomainParticipantExtendedQos& extended_qos) const -{ - ParticipantAttributes attr; - if (XMLP_ret::XML_OK == XMLProfileManager::fill_default_participant_attributes_from_xml(xml, attr, true)) { extended_qos = default_participant_qos_; ->>>>>>> 55cf7b2a (Fix log category name macro collision in `MacOS` (#5585) (#5595)) utils::set_extended_qos_from_attributes(extended_qos, attr); return RETCODE_OK; } diff --git a/test/blackbox/common/DDSBlackboxTestsBasic.cpp b/test/blackbox/common/DDSBlackboxTestsBasic.cpp index 24c9b8722ff..adbf36c5211 100644 --- a/test/blackbox/common/DDSBlackboxTestsBasic.cpp +++ b/test/blackbox/common/DDSBlackboxTestsBasic.cpp @@ -1087,7 +1087,7 @@ TEST(DDSBasic, participant_factory_output_log_error_no_macro_collision) auto dpf = DomainParticipantFactory::get_shared_instance(); DomainParticipantQos qos; - dpf->get_participant_qos_from_xml("", qos, ""); + dpf->get_participant_qos_from_profile("", qos); Log::Flush(); ASSERT_GE(n_logs.load(), 1u); }