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

Support multiple messages in a proto file #70

Merged
merged 4 commits into from
Jul 14, 2020
Merged

Conversation

chapulina
Copy link
Contributor

Fixes #69

We have a few proto files that define more than one message. These messages have been working with Ignition Transport, but they didn't work with the factory. This PR updates the generator so that all messages in a file are registered with the factory. It also adds the special pointer types for them.

I'm targeting this at master (future Dome branch), because I believe that the change in the name of the static object created in the macro will break ABI. This is unfortunate, but I'm not sure how to work around that.

@chapulina chapulina added the bug Something isn't working label Jun 30, 2020
@chapulina chapulina requested a review from caguero as a code owner June 30, 2020 17:48
@codecov
Copy link

codecov bot commented Jun 30, 2020

Codecov Report

Merging #70 into master will increase coverage by 0.03%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #70      +/-   ##
==========================================
+ Coverage   85.66%   85.69%   +0.03%     
==========================================
  Files           7        7              
  Lines         795      797       +2     
==========================================
+ Hits          681      683       +2     
  Misses        114      114              
Impacted Files Coverage Δ
include/ignition/msgs/Factory.hh 100.00% <ø> (ø)
src/Generator.cc 92.53% <100.00%> (+0.22%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9d7791a...b961a91. Read the comment docs.

@chapulina chapulina added the 🔮 dome Ignition Dome label Jun 30, 2020
@caguero
Copy link
Collaborator

caguero commented Jul 13, 2020

I took the liberty of adding a few extra checks to make sure that all smart pointer flavors compile. b961a91.

Waiting for CI but all looks good to me!

@chapulina chapulina merged commit 48536f7 into master Jul 14, 2020
@chapulina chapulina deleted the chapulina/multi_msg branch July 14, 2020 04:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working 🔮 dome Ignition Dome
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Factory and multiple messages in a proto file
2 participants