-
Notifications
You must be signed in to change notification settings - Fork 103
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
PrintConfig option to preserve includes when converting to string #749
Conversation
Signed-off-by: Jenn Nguyen <[email protected]>
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.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job, this is nice!
Just one minor suggestion, the rest works great and looks good to me.
include/sdf/PrintConfig.hh
Outdated
/// \return True if <include> tags are preserved. | ||
/// False if they are to be expanded. | ||
public: bool PreserveIncludes() const; | ||
|
||
/// \brief Private data pointer. | ||
IGN_UTILS_IMPL_PTR(dataPtr) | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also it seems like inline namespace SDF_VERSION_NAMESPACE {
is used for this case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Signed-off-by: Jenn Nguyen <[email protected]>
Signed-off-by: Jenn Nguyen <[email protected]>
Signed-off-by: Jenn Nguyen <[email protected]>
Signed-off-by: Jenn Nguyen <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a couple minor comments, otherwise LGTM!
Signed-off-by: Jenn Nguyen <[email protected]>
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
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge