Source code for rsrtx.Implementations.Search.Trigger.Can.Ssymbolic

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


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

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

[docs] def set(self, search: str, check_symbolic: bool) -> None: """ ``SEARch:TRIGger:CAN:SSYMbolic`` \n Snippet: ``driver.search.trigger.can.ssymbolic.set(search = 'abc', check_symbolic = False)`` \n Enables the symbolic search and disables all other search criteria. :param search: String that contains the search definition name :param check_symbolic: OFF | ON """ param = ArgSingleList().compose_cmd_string(ArgSingle('search', search, DataType.String), ArgSingle('check_symbolic', check_symbolic, DataType.Boolean)) self._core.io.write(f'SEARch:TRIGger:CAN:SSYMbolic {param}'.rstrip())
[docs] def get(self, search: str) -> bool: """ ``SEARch:TRIGger:CAN:SSYMbolic`` \n Snippet: ``value: bool = driver.search.trigger.can.ssymbolic.get(search = 'abc')`` \n Enables the symbolic search and disables all other search criteria. :param search: String that contains the search definition name :return: check_symbolic: OFF | ON """ param = Conversions.value_to_quoted_str(search) response = self._core.io.query_str(f'SEARch:TRIGger:CAN:SSYMbolic? {param}') return Conversions.str_to_bool(response)