These are the pre-v12 classes, kept so existing code keeps building. New code should use the modern API — see Migration Guide: v11 to v12.
optris::VersionInfo
The version is represented in the format: major.minor.patch.
Public functions
VersionInfo
VersionInfo()=default
Constructor.
getSdkVersion
OTC_SDK_API Version getSdkVersion() noexcept
Returns the SDK version.
Returns: SDK version.
getBuildType
OTC_SDK_API std::string getBuildType() noexcept
Returns the build type of the SDK.
Returns: "Release" for release builds and "Debug" for debug builds.
getBuildDate
OTC_SDK_API std::string getBuildDate() noexcept
Returns the UTC build date of the SDK in ISO format.
Returns: the UTC build date in ISO format.
getCommitHash
OTC_SDK_API std::string getCommitHash() noexcept
Returns the first part of the hash of the commit that was used to build the SDK.
Returns: first part of the hash of the commit that was used to build the SDK.
getCommitDate
OTC_SDK_API std::string getCommitDate() noexcept
Returns the date of the commit that was used to build the SDK in ISO format.
Returns: date of the commit that was used to build the SDK in ISO format
getCommitBranch
OTC_SDK_API std::string getCommitBranch() noexcept
Returns the branch name used to build the SDK.
Returns: branch name used to build the SDK.
getName
OTC_SDK_API std::string getName() noexcept
Returns the name of the SDK.
Returns: name of the SDK.
getCompany
OTC_SDK_API std::string getCompany() noexcept
Returns the name of the company that created the SDK.
Returns: name of the company that created the SDK.
getCopyright
OTC_SDK_API std::string getCopyright() noexcept
Returns the copyright string of the SDK.
Returns: copyright string of the SDK.
getDescription
OTC_SDK_API std::string getDescription() noexcept
Returns a description of the SDK.
Returns: description of the SDK.
getBuildOS
OTC_SDK_API std::string getBuildOS() noexcept
Returns the name of the operating system for which the SDK was build for. Examples: Windows, Linux.
Returns: name of the operating system for which the SDK was build for.
getBuildPlatform
OTC_SDK_API std::string getBuildPlatform() noexcept
Returns the name of the platform for which the SDK was build for. Examples: amd64, arm64.
Returns: name of the platform for which the SDK was build for.
getFormatsVersion
OTC_SDK_API Version getFormatsVersion() noexcept
Returns the version of the format definitions.
Returns: version of the format definitions or an invalid version if the corresponding Formats.def file was not found or could not be read.