PrintConfig option to preserve includes when converting to string#749
PrintConfig option to preserve includes when converting to string#749
Conversation
Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>
Codecov Report
@@ Coverage Diff @@
## sdf12 #749 +/- ##
==========================================
- Coverage 89.40% 89.30% -0.11%
==========================================
Files 76 76
Lines 12326 12347 +21
==========================================
+ Hits 11020 11026 +6
- Misses 1306 1321 +15
Continue to review full report at Codecov.
|
marcoag
left a comment
There was a problem hiding this comment.
Great job, this is nice!
Just one minor suggestion, the rest works great and looks good to me.
include/sdf/PrintConfig.hh
Outdated
|
|
||
| /// \brief Private data pointer. | ||
| IGN_UTILS_IMPL_PTR(dataPtr) | ||
| }; |
There was a problem hiding this comment.
nit: not really directly related to this PR but it seems that other heather files indent everything inside namespace sdf maybe we should take this opportunity to do the same in this file for consistency with the rest?
There was a problem hiding this comment.
Also it seems like inline namespace SDF_VERSION_NAMESPACE { is used for this case.
Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>
Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>
Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>
Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>
azeey
left a comment
There was a problem hiding this comment.
Just a couple minor comments, otherwise LGTM!
Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>
|
This pull request has been mentioned on Gazebo Community. There might be relevant details there: https://community.gazebosim.org/t/new-ignition-releases-2022-04-13-fortress-edifice/1367/1 |
🎉 New feature
Closes #522
Summary
Added option to preserve
<include>tags when converting the element to a string usingPrintConfig. By default, the<include>element will be expanded.Test it
or
Checklist
codecheckpassed (See contributing)Note to maintainers: Remember to use Squash-Merge