首页 / tech / oaTechHeader

oaTechHeader

模块: oapy._oa._tech 导入: from oapy._oa import _tech

概览

oaTechHeaderoapy 中可用,可通过 _tech 模块访问。

本页汇总 oaTechHeader 当前在 oapy 中可用的 Python 接口。

详细说明

The oaTechHeader class implements an object that contains information about a referenced oaTech database in a given parent oaTech database。 The oaTechHeader manages the binding and unbinding of the oaTech references。 An oaTechHeader is an automatic object that is created and destroyed by the database。 An oaTechHeader is automatically created when an object references another object that is in another oaTech database in the graph of referenced oaTech databases。 The oaTechHeader is automatically destroyed when the last object making the reference is destroyed。 Refer to Incremental Technology Databases in the Using Technology Databases section of the Programmers Guide for more information about referenced tech databases。

方法总览

状态 Python 调用
obj.getRefLibName(refLibName)
obj.getRefLibName(ns, refLibName)
obj.getRefTech()
obj.isBound()
_tech.oaTechHeader.find(tech, refLibName)
_tech.oaTechHeader.find(tech, refTech)

方法说明

obj.getRefLibName(refLibName)

绑定状态: 已绑定

Python 调用: obj.getRefLibName(refLibName)

This function retrieves the name of the library in the specified ns nameSpace that contains the technology database that this techHeader references。

参数

  • ns: nameSpace in which to retrieve the library name。
  • refLibName: Retrieved library name。

Python 示例

from oapy._oa import _tech

# assume obj is a oaTechHeader
obj.getRefLibName(refLibName)

obj.getRefLibName(ns, refLibName)

绑定状态: 已绑定

Python 调用: obj.getRefLibName(ns, refLibName)

This function retrieves the name of the library that contains the technology database that this techHeader references。

参数

  • refLibName: Retrieved library name。

Python 示例

from oapy._oa import _tech

# assume obj is a oaTechHeader
obj.getRefLibName(ns, refLibName)

obj.getRefTech()

绑定状态: 已绑定

Python 调用: obj.getRefTech()

This function returns a pointer to the technology database that this techHeader references。 NULL is returned if the technology database is not bound。

Python 示例

from oapy._oa import _tech

# assume obj is a oaTechHeader
obj.getRefTech()

obj.isBound()

绑定状态: 已绑定

Python 调用: obj.isBound()

This function returns a boolean indicating whether this techHeader is bound or not。

Python 示例

from oapy._oa import _tech

# assume obj is a oaTechHeader
obj.isBound()

_tech.oaTechHeader.find(tech, refLibName)

绑定状态: 已绑定

Python 调用: _tech.oaTechHeader.find(tech, refLibName)

This function searches the specified tech database ( tech) for a techHeader that references the specified tech database ( refTech)。

参数

  • tech: Tech database to search。
  • refTech: Tech database that is referenced。

Python 示例

from oapy._oa import _tech

_tech.oaTechHeader.find(tech, refLibName)

_tech.oaTechHeader.find(tech, refTech)

绑定状态: 已绑定

Python 调用: _tech.oaTechHeader.find(tech, refTech)

This function searches the specified technology database for a techHeader that references a tech in the library with the specified name。

参数

  • tech: Tech database to search。
  • refLibName: Name of library in which to find the tech reference。

Python 示例

from oapy._oa import _tech

_tech.oaTechHeader.find(tech, refTech)