oaCMObjectVisitor
模块: oapy._oa._cms
导入: from oapy._oa import _cms
概览
oaCMObjectVisitor 在 oapy 中可用,可通过 _cms 模块访问。
本页汇总 oaCMObjectVisitor 当前在 oapy 中可用的 Python 接口。
详细说明
The oaCM classes support visitor design pattern interfaces。 A visitor design pattern interface uses a dual dispatch technique。 Each concrete node in the data structure has an accept method, which provides access to a visitor。 The accept method sends a message to the visitor that includes the node's class。 The visitor can then execute its behavior for that element。 The oaCMObjectVisitor class is the interface for the visitor, which is capable of visiting concrete oaCM nodes。 This class can be derived to define specific actions。
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.visit(node) |
| ✅ | obj.visit(node) |
| ✅ | obj.visit(node) |
方法说明
obj.visit(node)
绑定状态: 已绑定
Python 调用: obj.visit(node)
This function visits a concrete oaCMObjectStateRef node。 It is called with the oaCMObjectStateRef::accept function。 This function can be reimplemented in derived classes to define specific behaviors。
参数
node: A pointer to the concrete oaCMObjectStateRef 。
Python 示例
from oapy._oa import _cms
# assume obj is a oaCMObjectVisitor
obj.visit(node)
obj.visit(node)
绑定状态: 已绑定
Python 调用: obj.visit(node)
This function visits a concrete oaCMDatabaseRef node。 It is called with the oaCMDatabaseRef::accept function。 This function can be reimplemented in derived classes to define specific behaviors。
参数
node: A pointer to the concrete oaCMDatabaseRef 。
Python 示例
from oapy._oa import _cms
# assume obj is a oaCMObjectVisitor
obj.visit(node)
obj.visit(node)
绑定状态: 已绑定
Python 调用: obj.visit(node)
This function visits a concrete oaCMObjectIDRef node。 It is called with the oaCMObjectIDRef::accept function。 This function can be reimplemented in derived classes to define specific behaviors。
参数
node: A pointer to the concrete oaCMObjectIDRef 。
Python 示例
from oapy._oa import _cms
# assume obj is a oaCMObjectVisitor
obj.visit(node)