Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[15417] Group set_qos_from_attributes free functions into a separate file #2914

Merged
merged 25 commits into from
Sep 2, 2022

Conversation

MRicoIE2CS
Copy link
Contributor

Description

set_qos_from_attributes() are defined as static free functions. And there is the need to access them from outside the .cpp where they are defined.
This PR should satisfy the following:

  • Provide a header and a source
  • Put the new files in src/cpp/fastdds/utils
  • Add the free functions into the eprosima::fastdds::dds::utils namespace.
  • The new functions cannot be static. We won't inline them either.
  • Refactor usage of the functions.

Contributor Checklist

  • Commit messages follow the project guidelines.
  • The code follows the style guidelines of this project.
  • [N/A] Tests that thoroughly check the new feature have been added/Regression tests checking the bug and its fix have been added.
  • Any new/modified methods have been properly documented using Doxygen.
  • Fast DDS test suite has been run locally.
  • Changes are ABI compatible.
  • Changes are API compatible.
  • [N/A] Documentation builds and tests pass locally.
  • [N/A] New feature has been added to the versions.md file (if applicable).
  • [N/A] New feature has been documented/Current behavior is correctly described in the documentation.

Reviewer Checklist

  • Check contributor checklist is correct.
  • Check CI results: changes do not issue any warning.
  • Check CI results: failing tests are unrelated with the changes.

…folder.

Signed-off-by: Mikel Rico <mikelrico@eprosima.com>
Signed-off-by: Mikel Rico <mikelrico@eprosima.com>
…included. src/cpp/CMakeLists.txt modified to compile new source.

Signed-off-by: Mikel Rico <mikelrico@eprosima.com>
…ource.

Signed-off-by: Mikel Rico <mikelrico@eprosima.com>
…de erased.

Signed-off-by: Mikel Rico <mikelrico@eprosima.com>
…actory.

Signed-off-by: Mikel Rico <mikelrico@eprosima.com>
…tory erased, and not-used #include erased..

Signed-off-by: Mikel Rico <mikelrico@eprosima.com>
…rted from DomainParticipantImpl.

Signed-off-by: Mikel Rico <mikelrico@eprosima.com>
…tions in DomainParticipantImpl erased.

Signed-off-by: Mikel Rico <mikelrico@eprosima.com>
Signed-off-by: Mikel Rico <mikelrico@eprosima.com>
Signed-off-by: Mikel Rico <mikelrico@eprosima.com>
…utils::

Signed-off-by: Mikel Rico <mikelrico@eprosima.com>
…qos pointing to ::utils:: namespace.

Signed-off-by: Mikel Rico <mikelrico@eprosima.com>
Signed-off-by: Mikel Rico <mikelrico@eprosima.com>
@MRicoIE2CS
Copy link
Contributor Author

@richiprosima please test this

@MRicoIE2CS
Copy link
Contributor Author

@richiprosima please test this again

@JLBuenoLopez
Copy link
Contributor

@richiprosima please test mac

1 similar comment
@JLBuenoLopez
Copy link
Contributor

@richiprosima please test mac

src/cpp/fastdds/utils/QosConverters.cpp Outdated Show resolved Hide resolved
src/cpp/fastdds/utils/QosConverters.cpp Outdated Show resolved Hide resolved
src/cpp/fastdds/utils/QosConverters.hpp Outdated Show resolved Hide resolved
src/cpp/fastdds/utils/QosConverters.hpp Outdated Show resolved Hide resolved
src/cpp/fastdds/utils/QosConverters.hpp Outdated Show resolved Hide resolved
src/cpp/fastdds/utils/QosConverters.hpp Outdated Show resolved Hide resolved
src/cpp/fastdds/utils/QosConverters.hpp Outdated Show resolved Hide resolved
src/cpp/fastdds/utils/QosConverters.hpp Outdated Show resolved Hide resolved
src/cpp/fastdds/utils/QosConverters.hpp Show resolved Hide resolved
src/cpp/fastdds/utils/QosConverters.cpp Show resolved Hide resolved
Signed-off-by: Mikel Rico <mikelrico@eprosima.com>
Signed-off-by: Mikel Rico <mikelrico@eprosima.com>
Signed-off-by: Mikel Rico <mikelrico@eprosima.com>
…butes used on each method.

Signed-off-by: Mikel Rico <mikelrico@eprosima.com>
Signed-off-by: Mikel Rico <mikelrico@eprosima.com>
Signed-off-by: Mikel Rico <mikelrico@eprosima.com>
Signed-off-by: Mikel Rico <mikelrico@eprosima.com>
Copy link
Contributor

@JLBuenoLopez JLBuenoLopez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple of nitpicks to improve the doxydoc and comply with the code style.

src/cpp/fastdds/utils/QosConverters.cpp Outdated Show resolved Hide resolved
src/cpp/fastdds/utils/QosConverters.hpp Outdated Show resolved Hide resolved
Signed-off-by: Mikel Rico <mikelrico@eprosima.com>
Signed-off-by: Mikel Rico <mikelrico@eprosima.com>
Signed-off-by: Mikel Rico <mikelrico@eprosima.com>
@MRicoIE2CS MRicoIE2CS force-pushed the refactor/group_set_qos_from_attributes branch from 77c1c7a to 9edf728 Compare August 25, 2022 10:26
Signed-off-by: Mikel Rico <mikelrico@eprosima.com>
Copy link
Contributor

@JLBuenoLopez JLBuenoLopez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks, @MRicoIE2C!

I will launch another CI run previous to be merged, though I am not expecting any significant difference from the previous runs.

@JLBuenoLopez
Copy link
Contributor

@richiprosima please test this

@JLBuenoLopez JLBuenoLopez added the ready-to-merge Ready to be merged. CI and changes have been reviewed and approved. label Aug 25, 2022
@JLBuenoLopez JLBuenoLopez added this to the v2.8.0 milestone Aug 25, 2022
@MiguelCompany
Copy link
Member

@richiprosima Please test mac

@MiguelCompany MiguelCompany merged commit 7ccc7a7 into master Sep 2, 2022
@MiguelCompany MiguelCompany deleted the refactor/group_set_qos_from_attributes branch September 2, 2022 06:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge Ready to be merged. CI and changes have been reviewed and approved.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants