![]() |
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.
Definition at line 27 of file PythonConfig.h.
|
constexprdefault |
|
inlineconstexpr |
Definition at line 31 of file PythonConfig.h.
|
explicit |
Definition at line 46 of file PythonConfig.cpp.
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.
Definition at line 64 of file PythonConfig.cpp.
References PythonVersion(), versionMajor, and versionMinor.
Referenced by PythonConfig::validateAndDisplayErrors().
|
inline |
Definition at line 51 of file PythonConfig.h.
References versionMajor, versionMinor, and versionPatch.
Referenced by PythonConfig::validateAndDisplayErrors().
| bool Version::operator== | ( | const Version & | other | ) | const |
Definition at line 69 of file PythonConfig.cpp.
References versionMajor, versionMinor, and versionPatch.
| uint16_t Version::versionMajor {0} |
Definition at line 58 of file PythonConfig.h.
Referenced by PythonInterpreter::initialize(), isCompatibleWithCompiledVersion(), isNull(), operator==(), PythonConfig::validateAndDisplayErrors(), and Version().
| uint16_t Version::versionMinor {0} |
Definition at line 59 of file PythonConfig.h.
Referenced by PythonInterpreter::initialize(), isCompatibleWithCompiledVersion(), isNull(), operator==(), PythonConfig::validateAndDisplayErrors(), and Version().
| uint16_t Version::versionPatch {0} |
Definition at line 60 of file PythonConfig.h.
Referenced by isNull(), operator==(), PythonConfig::validateAndDisplayErrors(), and Version().