首页 / dm / oaVersionComp

oaVersionComp

模块: oapy._oa._dm 导入: from oapy._oa import _dm

概览

oaVersionCompoapy 中可用,可通过 _dm 模块访问。

本页汇总 oaVersionComp 当前在 oapy 中可用的 Python 接口。

详细说明

The oaVersionComp class is an enum wrapper class for oaVersionCompEnum values, which describe the results of version control system comparison operations。 enum oaVersionCompEnum This enumeration represents the possible return values of the IVersion::compare() function。 If the versions represent the same version, IVersion::cEqual is returned (not just if it is the same version object)。 IVersion::cEarlier means that the version being passed in is earlier in that branch, while IVersion::cLater means that it is later in the branch。 The IVersion::cDifferentBranch value means that the incoming version is not on the same branch, while IVersion::cIncompatable means it is from an incompatable VC system。 Enumeration values: oacVersionCompEqual "versionCompEqual" The two version are semantically identical - that is, they refer to the same version in the repository。 oacVersionCompEarlier "versionCompEarlier" The version being passed in to the comparison is earlier than the one being compared to。 This usually means that the earlier version either has an earlier creation date or is a lower version number, or both。 oacVersionCompLater "versionCompLater" The version being passed in to the comparison is later than the one being compared to。 This usually means that the later version either has a later creation date or is a higher version number, or both。 oacVersionCompDifferentBranch "versionCompDifferentBranch" For VC systems that choose not to make an earlier/later determination for versions on different branches, this value can be returned to indicate this condition。 oacVersionCompIncompatable "versionCompIncompatable" This value is returned when the two versions are fundamentally incompatable。 This usually means that they represent versions in two different VC systems。

构造函数

_dm.oaVersionComp(valueIn)

obj = _dm.oaVersionComp(valueIn)

_dm.oaVersionComp(name)

obj = _dm.oaVersionComp(name)

方法总览

状态 Python 调用
obj.getName()

方法说明

obj.getName()

绑定状态: 已绑定

Python 调用: obj.getName()

This function returns the name of the oaVersionCompEnum value set on this oaVersionComp wrapper object。

Python 示例

from oapy._oa import _dm

# assume obj is a oaVersionComp
obj.getName()