version.h
Version
-
struct version
-
std::string ouster::util::to_string(const version &v)
Get string representation of a version.
- Parameters:
v – [in] version.
- Returns:
string representation of the version.
-
version ouster::util::version_of_string(const std::string &s)
Get version from string.
- Parameters:
s – [in] string.
- Returns:
version corresponding to the string, or invalid_version on error.
-
inline bool operator==(const version &u, const version &v)
Equality operation for version structs.
- Parameters:
u – [in] The first version to compare.
v – [in] The second version to compare.
- Returns:
If the versions are the same.
-
inline bool operator<(const version &u, const version &v)
Less than operation for version structs.
- Parameters:
u – [in] The first version to compare.
v – [in] The second version to compare.
- Returns:
If the first version is less than the second version.
-
inline bool operator<=(const version &u, const version &v)
Less than or equal to operation for version structs.
- Parameters:
u – [in] The first version to compare.
v – [in] The second version to compare.
- Returns:
If the first version is less than or equal to the second version.
-
inline bool operator!=(const version &u, const version &v)
In-equality operation for version structs.
- Parameters:
u – [in] The first version to compare.
v – [in] The second version to compare.
- Returns:
If the versions are not the same.
-
inline bool operator>=(const version &u, const version &v)
Greater than or equal to operation for version structs.
- Parameters:
u – [in] The first version to compare.
v – [in] The second version to compare.
- Returns:
If the first version is greater than or equal to the second version.
-
inline bool operator>(const version &u, const version &v)
Greater than operation for version structs.
- Parameters:
u – [in] The first version to compare.
v – [in] The second version to compare.
- Returns:
If the first version is greater than the second version.