oaVCSystem
模块: oapy._oa._dm
导入: from oapy._oa import _dm
概览
oaVCSystem 在 oapy 中可用,可通过 _dm 模块访问。
本页汇总 oaVCSystem 当前在 oapy 中可用的 Python 接口。
详细说明
The oaVCSystem class is used to manage and access version control plug-ins through the OpenAccess public interface。
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.destroy() |
| ✅ | obj.getName(name) |
| ✅ | obj.testCapability(cap) |
| ✅ | obj.getControlledLibs(libs) |
| ✅ | _dm.oaVCSystem.get(name) |
方法说明
obj.destroy()
绑定状态: 已绑定
Python 调用: obj.destroy()
This function will destroy this instance of the oaVCSystem object by calling "delete" on it。 Since the destructor is virtual, the oaVCSystemPvt destructor will be called first, releasing the IVCSystem interface pointer。
Python 示例
from oapy._oa import _dm
# assume obj is a oaVCSystem
obj.destroy()
obj.getName(name)
绑定状态: 已绑定
Python 调用: obj.getName(name)
This function returns the name of this oaVCSystem object。
参数
name: Returned name of this oaVCSystem。
Python 示例
from oapy._oa import _dm
# assume obj is a oaVCSystem
obj.getName(name)
obj.testCapability(cap)
绑定状态: 已绑定
Python 调用: obj.testCapability(cap)
This function is used to determine if a particular capability is supported by the installed version control system。
参数
cap: An enumerated value for the capability that is being queried from the version control system。
Python 示例
from oapy._oa import _dm
# assume obj is a oaVCSystem
obj.testCapability(cap)
obj.getControlledLibs(libs)
绑定状态: 已绑定
Python 调用: obj.getControlledLibs(libs)
This function will return an array of libraries that are being controlled by this version control system。 Note that this isn't all the controlled libraries in this session; if a library is being controlled by a different version control system than the one represented by this instance of oaVCSystem, it will not appear in this list。
参数
libs: Output parameter - an array of the libraries controlled by this version control system。
Python 示例
from oapy._oa import _dm
# assume obj is a oaVCSystem
obj.getControlledLibs(libs)
_dm.oaVCSystem.get(name)
绑定状态: 已绑定
Python 调用: _dm.oaVCSystem.get(name)
This function will get the correct oaVCSystem object (actually, an oaVCSystemPvt class)。 If a VC system of that name exists, the corresponding oaVCSystem object will be returned to the caller。 If not, NULL will be returned。
参数
name: Input parameter - name of VC system。
Python 示例
from oapy._oa import _dm
_dm.oaVCSystem.get(name)