|
Unravel Engine C++ Reference
|
#include <version.h>
Public Member Functions | |
| auto | to_string () const -> std::string |
Public Attributes | |
| int | major = 0 |
| int | minor = 0 |
| int | patch = 0 |
| int | commit_count = 0 |
Commits since the tagged release (e.g. the 66 in 1.0.0-66-g...). | |
| std::string | sha |
| Git SHA suffix (including any leading 'g'), or empty if absent. | |
| std::string | original |
Friends | |
| auto | operator== (const engine_version &a, const engine_version &b) -> bool |
| auto | operator<=> (const engine_version &a, const engine_version &b) -> std::strong_ordering |
Structured representation of the engine version string scheme used across the project: "major.minor.patch[-commit_count[-sha]]" (e.g. "1.0.0-66-gc83fa23"). Parsing tolerates an optional leading "v"/"V".
Equality and ordering compare only (major, minor, patch, commit_count). The SHA is metadata and is intentionally not part of the ordering.
| auto version::engine_version::to_string | ( | ) | const -> std::string |
Returns the canonical "M.m.p[-commit[-sha]]" string. This is what should be written to disk, and roundtrips through parse.
Definition at line 82 of file version.cpp.
|
friend |
Definition at line 112 of file version.cpp.
|
friend |
Definition at line 107 of file version.cpp.
| int version::engine_version::commit_count = 0 |
| std::string version::engine_version::original |
| std::string version::engine_version::sha |