首页 / common / IDTester

IDTester

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

概览

IDTesteroapy 中可用,可通过 _common 模块访问。

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

详细说明

template class IDTester< I > This class is used by the PlugInBase class to perform the id comparison in it's queryInterface implementation。 The purpose of this class is to allow some interfaces to override the usual comparison mechanism。 This is most often required because the interface in question inherits from an interface other than IBase 。 Note that the default expansion of IDTester assumes that the comparison sequence if to first compare against the interface given in the template parameter, then against IID_IBase。 For an interface that, derives from another interface (e.g。 ISequence derives from IIter ) a full specialization of IDTester should be defined to change the comparison sequence to first compare against the derived interface's id, then invoke IDTester::test() of the base interface。

方法总览

状态 Python 调用
_common.IDTester.test(id)

方法说明

_common.IDTester.test(id)

绑定状态: 已绑定

Python 调用: _common.IDTester.test(id)

Python 示例

from oapy._oa import _common

_common.IDTester.test(id)