libOpenDRIVE
libOpenDRIVE copied to clipboard
Expose xml_parse_result for external queryability
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.