![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Simple representation of a SemVer version. More...
#include <PythonConfig.h>
Public Member Functions | |
| constexpr | Version ()=default |
| constexpr | Version (uint16_t major_, uint16_t minor_, uint16_t patch_) |
| Version (const QtCompatStringRef &versionStr) | |
| bool | isCompatibleWithCompiledVersion () const |
| bool | isNull () const |
| bool | operator== (const Version &other) const |
Public Attributes | |
| uint16_t | versionMajor {0} |
| uint16_t | versionMinor {0} |
| uint16_t | versionPatch {0} |
Simple representation of a SemVer version.
|
constexprdefault |
|
inlineconstexpr |
|
explicit |
References qtCompatSplitRefChar(), qtCompatStringRefToString(), versionMajor, versionMinor, and versionPatch.
| bool Version::isCompatibleWithCompiledVersion | ( | ) | const |
Checks whether the Python version number described by this instance is compatible with the Python version the plugin was compiled with.
As explained in https://docs.python.org/3/c-api/stable.html#stable: CPython’s Application Binary Interface (ABI) is forward- and backwards-compatible across a minor release. So, code compiled for Python 3.10.0 will work on 3.10.8 and vice versa, but will need to be compiled separately for 3.9.x and 3.10.x.
References PythonVersion(), versionMajor, and versionMinor.
Referenced by PythonConfig::validateAndDisplayErrors().
|
inline |
References versionMajor, versionMinor, and versionPatch.
Referenced by PythonConfig::validateAndDisplayErrors().
| bool Version::operator== | ( | const Version & | other | ) | const |
References versionMajor, versionMinor, and versionPatch.
| uint16_t Version::versionMajor {0} |
| uint16_t Version::versionMinor {0} |
| uint16_t Version::versionPatch {0} |
Referenced by isNull(), operator==(), PythonConfig::validateAndDisplayErrors(), and Version().