oaVCVersion
模块: oapy._oa._dm
导入: from oapy._oa import _dm
概览
oaVCVersion 在 oapy 中可用,可通过 _dm 模块访问。
本页汇总 oaVCVersion 当前在 oapy 中可用的 Python 接口。
详细说明
The oaVCVersion class manages an IVersion interface pointer as an abstraction for the OpenAccess public API。 The real work is done by a derived oaVCVersionPvt class to prevent dependencies from the OpenAccess public API on the plug-in interfaces。
构造函数
_dm.oaVCVersion()
obj = _dm.oaVCVersion()
_dm.oaVCVersion(sysName, displayName=NULL)
obj = _dm.oaVCVersion(sysName, displayName=NULL)
_dm.oaVCVersion(ver)
obj = _dm.oaVCVersion(ver)
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.getVCSystemName(sysName) |
| ✅ | obj.setDisplayName(sysName, displayName) |
| ✅ | obj.getDisplayName(name) |
| ✅ | obj.compare(other) |
| ✅ | obj.operator=(ver) |
| ✅ | obj.getRaw() |
方法说明
obj.getVCSystemName(sysName)
绑定状态: 已绑定
Python 调用: obj.getVCSystemName(sysName)
This function returns the version control system name of the version object。
参数
sysName: Returned system name of the version object。
Python 示例
from oapy._oa import _dm
# assume obj is a oaVCVersion
obj.getVCSystemName(sysName)
obj.setDisplayName(sysName, displayName)
绑定状态: 已绑定
Python 调用: obj.setDisplayName(sysName, displayName)
This function sets the display name of this version object by calling into the VC system and having it create a new version object。
参数
sysName: System name of this version object。displayName: Display name to set on this version object。
Python 示例
from oapy._oa import _dm
# assume obj is a oaVCVersion
obj.setDisplayName(sysName, displayName)
obj.getDisplayName(name)
绑定状态: 已绑定
Python 调用: obj.getDisplayName(name)
This function returns the display name of this version object。
参数
name: Returned display name of this version object。
Python 示例
from oapy._oa import _dm
# assume obj is a oaVCVersion
obj.getDisplayName(name)
obj.compare(other)
绑定状态: 已绑定
Python 调用: obj.compare(other)
This function compares two versions。 This is a legal operation even if the version objects were generated from different version control systems。 In that case, the most likely return value will be "oacVersionCompIncompatable"。
参数
other: A pointer to another version object to compare to this one。
Python 示例
from oapy._oa import _dm
# assume obj is a oaVCVersion
obj.compare(other)
obj.operator=(ver)
绑定状态: 已绑定
Python 调用: obj.operator=(ver)
Python 示例
from oapy._oa import _dm
# assume obj is a oaVCVersion
obj.operator=(ver)
obj.getRaw()
绑定状态: 已绑定
Python 调用: obj.getRaw()
This function returns an IVersion pointer to the version object referenced by this object。 This function is useful when using the oaVCVersionIter::getNext() function -- when the getRaw() function returns a NULL pointer, the iteration is finished。
Python 示例
from oapy._oa import _dm
# assume obj is a oaVCVersion
obj.getRaw()