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

Add plugin name accessor #29

Merged
merged 3 commits into from
Oct 29, 2020

Conversation

nlamprian
Copy link
Contributor

@nlamprian nlamprian commented Oct 26, 2020

Closes #5

Signed-off-by: Nick Lamprianidis [email protected]

@nlamprian nlamprian requested a review from mxgrey as a code owner October 26, 2020 01:28
Copy link
Contributor

@mxgrey mxgrey left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution! I just have one remark, left as an inline comment.

core/include/ignition/plugin/Plugin.hh Outdated Show resolved Hide resolved
@nlamprian nlamprian force-pushed the nlamprian/plugin_name branch 3 times, most recently from ae9d80f to b6dbff6 Compare October 26, 2020 10:07
Copy link
Contributor

@chapulina chapulina left a comment

Choose a reason for hiding this comment

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

@nlamprian nlamprian force-pushed the nlamprian/plugin_name branch from b6dbff6 to a9e49ca Compare October 27, 2020 01:06
@nlamprian
Copy link
Contributor Author

Good thing that you asked for the tests. I removed the const reference and added a check for the pointer.

Btw last time, I had a hard time following what the classes do. These tests are a nice overview.

@nlamprian nlamprian force-pushed the nlamprian/plugin_name branch from a9e49ca to 85ae51a Compare October 27, 2020 08:17
Copy link
Contributor

@chapulina chapulina left a comment

Choose a reason for hiding this comment

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

Thank you for iterating and for the comprehensive tests. I think this is good to go once the doxygen is updated.

core/include/ignition/plugin/Plugin.hh Outdated Show resolved Hide resolved
@nlamprian nlamprian force-pushed the nlamprian/plugin_name branch from 85ae51a to ed66fff Compare October 28, 2020 20:11
@scpeters
Copy link
Member

this is targeting main, so we can backport it to ign-plugin1 after it is merged

@nlamprian
Copy link
Contributor Author

this is targeting main, so we can backport it to ign-plugin1 after it is merged

Care to elaborate? I changed a header file, shouldn't this prevent it from being merged into ign-plugin1?

@scpeters
Copy link
Member

this is targeting main, so we can backport it to ign-plugin1 after it is merged

Care to elaborate? I changed a header file, shouldn't this prevent it from being merged into ign-plugin1?

adding a non-virtual function to a class doesn't break API or ABI, so it's fine to do for ign-plugin1. Per semver.org, we should bump the minor version when "adding functionality in a backwards compatible manner", but it doesn't break anything

@nlamprian
Copy link
Contributor Author

In that case, I can simply rebase here. It doesn't seem there are any conflicts. Let me know.

@scpeters scpeters changed the base branch from main to ign-plugin1 October 29, 2020 04:32
@scpeters
Copy link
Member

In that case, I can simply rebase here. It doesn't seem there are any conflicts. Let me know.

sounds good. I just changed the target of this PR to ign-plugin1; please go ahead and rebase

@nlamprian nlamprian force-pushed the nlamprian/plugin_name branch from ed66fff to 6fe550c Compare October 29, 2020 08:21
Closes gazebosim#5

Signed-off-by: Nick Lamprianidis <[email protected]>
Signed-off-by: Nick Lamprianidis <[email protected]>
Signed-off-by: Nick Lamprianidis <[email protected]>
@nlamprian nlamprian force-pushed the nlamprian/plugin_name branch from 6fe550c to 5072f28 Compare October 29, 2020 08:25
Copy link
Member

@scpeters scpeters left a comment

Choose a reason for hiding this comment

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

thanks for the contribution!

@scpeters scpeters merged commit 4a87904 into gazebosim:ign-plugin1 Oct 29, 2020
@nlamprian nlamprian deleted the nlamprian/plugin_name branch October 29, 2020 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provide Name accessor for Plugin class
4 participants