首页 / base / oaEnumPropIter

oaEnumPropIter

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

概览

oaEnumPropIteroapy 中可用,可通过 _base 模块访问。

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

详细说明

The oaEnumPropIter class implements a special case iterator。 This class returns enumeration values of an oaEnumProp object。 The intended usage of oaEnumPropIter is shown in the following example: oaEnumPropIter iter(enumProp->getEnums()); oaString enum; while (iter.getNext(enum)) { 。 }。

构造函数

_base.oaEnumPropIter(sub)

obj = _base.oaEnumPropIter(sub)

_base.oaEnumPropIter(iterIn)

obj = _base.oaEnumPropIter(iterIn)

方法总览

状态 Python 调用
obj.operator=(iterIn)
obj.getNext(enumV)
obj.reset()

方法说明

obj.operator=(iterIn)

绑定状态: 已绑定

Python 调用: obj.operator=(iterIn)

Python 示例

from oapy._oa import _base

# assume obj is a oaEnumPropIter
obj.operator=(iterIn)

obj.getNext(enumV)

绑定状态: 已绑定

Python 调用: obj.getNext(enumV)

This function returns an oaString that contains the name of the next enumeration value in the list of valid enum values for the property。 This function returns false when there are no more objects to return。

参数

  • enumV: The name of the next enumeration value in the list of enums。

Python 示例

from oapy._oa import _base

# assume obj is a oaEnumPropIter
obj.getNext(enumV)

obj.reset()

绑定状态: 已绑定

Python 调用: obj.reset()

This function restarts the iterator。 The next call to getNext() for this oaEnumPropIter returns the first object in the collection。

Python 示例

from oapy._oa import _base

# assume obj is a oaEnumPropIter
obj.reset()