eProsima / Fast-DDS

The most complete DDS - Proven: Plenty of success cases. Looking for commercial support? Contact info@eprosima.com
https://eprosima.com
Apache License 2.0
2.04k stars 730 forks source link

[21184] Refactor XML Parser to return DynamicTypeBuilder instead of DynamicType #4970

Closed elianalf closed 5 days ago

elianalf commented 2 weeks ago

Description

This PR is a small refactor of the methods to get dynamic types from XML in order to return a DynamicTypeBuilder object instead of a DynamicType one. It also add a CLI flag to xtypes example to load types and profiles from an xml files.

Contributor Checklist

Reviewer Checklist

elianalf commented 1 week ago
* Also, I am getting a `AddressSanitizer:DEADLYSIGNAL` if I start the publisher with `--xml-type` (compiled with ASAN), we may need to investigate it further.

I have tried to reproduce the error, and it appears when the xml file is not uploaded through environment variable. Can you check if that is the case? I will expand the README to clarify that using the --xml-types option requires setting an environment variable with the path to the XML file you wish to use.

elianalf commented 6 days ago

Suggestions applied!

Leaving unresolved just a couple of conversations above that I think were not included