API Reference — riglogic/version/VersionInfo
struct RLAPI VersionInfo
Reports the RigLogic library version at runtime, as major/minor/patch numbers and a formatted string.
When to use this
Use this to check which RigLogic version a linked binary was built against — for example, to log it at startup or to verify compatibility with a DNA file format before loading it.
Method groups
| Group | Methods |
|---|---|
| Version | getMajorVersion, getMinorVersion, getPatchVersion, getVersionString |
Example
int major = rl4::VersionInfo::getMajorVersion();
int minor = rl4::VersionInfo::getMinorVersion();
rl4::StringView versionStr = rl4::VersionInfo::getVersionString();
// e.g. major == 13, minor == 2, versionStr == "13.2.9"
Returns
int / StringView — the numeric version components and the combined human-readable version string, respectively.