Source code for rsrtx.Implementations.Search.Trigger.Cmsb.Ioperator

from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal.Types import DataType
from .....Internal.ArgSingleList import ArgSingleList
from .....Internal.ArgSingle import ArgSingle
from ..... import enums


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class IoperatorCls:
	"""
	| Commands in total: 1
	| Subgroups: 0
	| Direct child commands: 1
	"""

	def __init__(self, core: Core, parent):
		self._core = core
		self._cmd_group = CommandsGroup("ioperator", core, parent)

[docs] def set(self, search: str, frame: str, field: str, operator: enums.DataIndexOperator) -> None: """ ``SEARch:TRIGger:CMSB:IOPerator`` \n Snippet: ``driver.search.trigger.cmsb.ioperator.set(search = 'abc', frame = 'abc', field = 'abc', operator = enums.DataIndexOperator.ANY)`` \n Sets the operator for the index for searching in the selected field of the selected frame. """ param = ArgSingleList().compose_cmd_string(ArgSingle('search', search, DataType.String), ArgSingle('frame', frame, DataType.String), ArgSingle('field', field, DataType.String), ArgSingle('operator', operator, DataType.Enum, enums.DataIndexOperator)) self._core.io.write(f'SEARch:TRIGger:CMSB:IOPerator {param}'.rstrip())