Remove the class FGPropertyNode#1270
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1270 +/- ##
==========================================
- Coverage 24.78% 24.77% -0.02%
==========================================
Files 169 169
Lines 19656 19598 -58
==========================================
- Hits 4872 4855 -17
+ Misses 14784 14743 -41 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Could you also replace the FGPropertyNode with SGPropertyNode in the Unreal Plugin? Just these two below. The rest of the code should work fine as is. I could submit a PR later but figured it could be included with your PR. Thanks :) |
|
I'm not a great fan of using map<int,list<string>>::iterator i = m.begin();
auto i = m.begin();But for these sorts of cases when I'm browsing code I'd prefer to see bool HasNode(const std::string& path) const
{
std::string newPath = path;
if (newPath[0] == '-') newPath.erase(0,1);
auto prop = root->getNode(newPath);
return prop;
}Also would prefer |
|
Noticed a couple of other places where the dangerous cast up to a |
203be93 to
7dc4554
Compare
Yep! Done. Thanks for the heads up @gallonmate 👍
Fair enough I've replaced all the new occurrences of
Done ! Thanks for the comments @seanmcleod70. |
|
All looks good. |
Thanks. PR merged. |
As per the issue reported in #834 (comment) and the discussion that followed, this PR removes the class
FGPropertyNodefrom JSBSim.Direct calls to
SGPropertyNodeallow to avoid the dubious conversion fromSGPropertyNode*toFGPropertyNode*in methods such as the one below:jsbsim/src/input_output/FGPropertyManager.cpp
Lines 109 to 117 in e1ea4e8
Note that this PR does not remove
FGPropertyNodefrom the Python module which keeps its methods unchanged includingFGPropertyNode.get_fully_qualified_name(). Not sure if renaming it toSGPropertyNodeand makingget_fully_qualified_name()a function is a better option ?