oaMarkerChangeRec
模块: oapy._oa._cms
导入: from oapy._oa import _cms
概览
oaMarkerChangeRec 在 oapy 中可用,可通过 _cms 模块访问。
本页汇总 oaMarkerChangeRec 当前在 oapy 中可用的 Python 接口。
详细说明
The oaMarkerChangeRec class represents a change record that captures information about an event that occurred in the session, such as a checkpoint being placed on a design。 An oaMarkerChangeRec can also be used to indicate the point at which a change set was last exported。 An oaMarkerChangeRec object does not reflect changes to the data model。 变更记录由 OpenAccess 变更管理系统(CMS)使用。
构造函数
_cms.oaMarkerChangeRec(changeSetIn, typeIn, dbRef)
obj = _cms.oaMarkerChangeRec(changeSetIn, typeIn, dbRef)
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.clone() |
| ✅ | obj.accept(visitor, forward=true) |
| ✅ | obj.isMarkerChangeRec() |
| ✅ | obj.getType() |
| ✅ | obj.getDatabaseRef() |
| ✅ | obj.setDatabaseRef(dbRef) |
方法说明
obj.clone()
绑定状态: 已绑定
Python 调用: obj.clone()
This function creates an exact copy of the specified oaMarkerChangeRec, including an identical timestamp。 由 oaExportMarkerChangeRec 和 oaTransientMarkerChangeRec 实现。
Python 示例
from oapy._oa import _cms
# assume obj is a oaMarkerChangeRec
obj.clone()
obj.accept(visitor, forward=true)
绑定状态: 已绑定
Python 调用: obj.accept(visitor, forward=true)
This function accepts a change record visitor。 It calls the visit function of the specified visitor on this object。 The forward parameter indicates the direction in which the change records are being visited。 The forward parameter might be set to false if the goal of the visit is to roll back changes due to an undo command。 实现 oaChangeRec。 由 oaExportMarkerChangeRec 和 oaTransientMarkerChangeRec 实现。
参数
visitor: A pointer to the change record visitor to call on this object。forward: Specifies the direction in which change records are being visited。
Python 示例
from oapy._oa import _cms
# assume obj is a oaMarkerChangeRec
obj.accept(visitor, forward=true)
obj.isMarkerChangeRec()
绑定状态: 已绑定
Python 调用: obj.isMarkerChangeRec()
This function returns the flag value of this marker change record (it returns true)。 从 oaChangeRec 重新实现。
Python 示例
from oapy._oa import _cms
# assume obj is a oaMarkerChangeRec
obj.isMarkerChangeRec()
obj.getType()
绑定状态: 已绑定
Python 调用: obj.getType()
This function returns the type of this marker change record。
Python 示例
from oapy._oa import _cms
# assume obj is a oaMarkerChangeRec
obj.getType()
obj.getDatabaseRef()
绑定状态: 已绑定
Python 调用: obj.getDatabaseRef()
此函数返回与此marker 变更记录关联的数据库引用。 A NULL return value indicates a change record that is global to all databases in the session。 实现 oaLeafChangeRec。
Python 示例
from oapy._oa import _cms
# assume obj is a oaMarkerChangeRec
obj.getDatabaseRef()
obj.setDatabaseRef(dbRef)
绑定状态: 已绑定
Python 调用: obj.setDatabaseRef(dbRef)
This function sets the database reference for this marker change record。
参数
dbRef: A smart pointer to the database reference with which this marker change record is associated。
Python 示例
from oapy._oa import _cms
# assume obj is a oaMarkerChangeRec
obj.setDatabaseRef(dbRef)