Function ouster::sdk::core::version_from_string

Function Documentation

Version ouster::sdk::core::version_from_string(const std::string &ver)

Get version from string.

Parses strings of the format: STAGE-MACHINE-vMAJOR.MINOR.PATCH-PRERELEASE+BUILD Requires at least major.minor.patch to return a valid version.

Parameters:

ver[in] – string.

Returns:

version corresponding to the string, or invalid_version on error.