You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The sdf::readFile and sdf::readString functions in parser.hh convert file to the latest SDF version. It would be nice to provide an API that loads the file at its current version without conversion.
Motivation
It would allow 3rd parties that use the sdformat parser time to migrate from an older version of the spec to the newest one.
Describe alternatives you've considered
Tell users to read the /sdf[@version] attribute and pass it to sdf::convertFile to load the file at the specific version. Providing a dedicated API would simplify this process.
The text was updated successfully, but these errors were encountered:
Original report (archived issue) by Steve Peters (Bitbucket: Steven Peters).
Summary
The
sdf::readFile
andsdf::readString
functions in parser.hh convert file to the latest SDF version. It would be nice to provide an API that loads the file at its current version without conversion.Motivation
It would allow 3rd parties that use the sdformat parser time to migrate from an older version of the spec to the newest one.
Describe alternatives you've considered
Tell users to read the
/sdf[@version]
attribute and pass it tosdf::convertFile
to load the file at the specific version. Providing a dedicated API would simplify this process.The text was updated successfully, but these errors were encountered: