RA-Consulting-GmbH / openscenario.api.test

Apache License 2.0
38 stars 11 forks source link

Fix increment of _occuredElementList in XmlSequenceParser.cpp #210

Closed rgourova closed 4 days ago

rgourova commented 2 weeks ago

Reference to a related issue in the repository

Related to issue #209

Add a description

The proposed changes fix a bug related to _occuredElementList in XmlSequenceParser::XmlSequenceParser. The change introduces a check if _occuredElementList contains a parser, and, if it does, the number of times the parser has been encountered is incremented, otherwise a new key is created in _occuredElementList for the parser.

Added a new scenario (cpp/applications/openScenarioTester/res/exampleFilesVersion1_2/FollowTrajectory_Nurbs.xosc) to test the changes.

Check the checklist