oaEvalTextLink
模块: oapy._oa._design
导入: from oapy._oa import _design
概览
oaEvalTextLink 在 oapy 中可用,可通过 _design 模块访问。
本页汇总 oaEvalTextLink 当前在 oapy 中可用的 Python 接口。
详细说明
The oaEvalTextLink class implements the link between OpenAccess and an application-provided eval text evaluator implement though the IEvalText interfaces。 When the eval text evaluator is provided in memory, the application needs to create the eval text link using oaEvalTextLink::create() to register with OpenAccess。 For eval text evaluator provided through a plug-in module, oaEvalTextLink::find() can be used to create the link between OpenAccess and the IEvalText plugIn。
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.destroy() |
| ✅ | obj.getIEvalText() |
| ✅ | _design.oaEvalTextLink.find(name) |
| ✅ | _design.oaEvalTextLink.create(evalTextIn) |
方法说明
obj.destroy()
绑定状态: 已绑定
Python 调用: obj.destroy()
This function destroys the oaEvalTextLink object and removes the link in OpenAccess。
Python 示例
from oapy._oa import _design
# assume obj is a oaEvalTextLink
obj.destroy()
obj.getIEvalText()
绑定状态: 已绑定
Python 调用: obj.getIEvalText()
This function returns the IEvalText that this link is associated with。
Python 示例
from oapy._oa import _design
# assume obj is a oaEvalTextLink
obj.getIEvalText()
_design.oaEvalTextLink.find(name)
绑定状态: 已绑定
Python 调用: _design.oaEvalTextLink.find(name)
This function trys to find an existing link associated with an IEvalText of the same name。 If no existing link is found, one will be created by trying to load the plugIn with the same name。
参数
name: the name of the IEvalText。
Python 示例
from oapy._oa import _design
_design.oaEvalTextLink.find(name)
_design.oaEvalTextLink.create(evalTextIn)
绑定状态: 已绑定
Python 调用: _design.oaEvalTextLink.create(evalTextIn)
This function creates the oaEvalTextLink object with the specified IEvalText。
参数
evalTextIn: a pointer to the IEvalText to create the link for。
异常
oacEvalTextLinkExists。
Python 示例
from oapy._oa import _design
_design.oaEvalTextLink.create(evalTextIn)