libOpenDRIVE icon indicating copy to clipboard operation
libOpenDRIVE copied to clipboard

Expose xml_parse_result for external queryability

Open michikommader opened this issue 9 months ago • 0 comments

Currently, when including libOpenDRIVE in an external project, there is no possibility to elegantly catch XML parsing errors. The reason is that "most pugixml functions have a no-throw exception guarantee" and that libOpenDRIVE itself does not expose any additional exception handling possibility.

Exposing pugi::xml_parse_result as member variable of OpenDriveMap enables handling of parsing errors by querying the xml_parse_status from within the external project.

michikommader avatar May 23 '24 11:05 michikommader