from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
from ....Internal.Types import DataType
from ....Internal.Utilities import trim_str_response
from ....Internal.ArgSingleList import ArgSingleList
from ....Internal.ArgSingle import ArgSingle
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class ConditionsCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("conditions", core, parent)
[docs]
def get(self, search: str, sdata: str) -> str:
"""
``SEARch:TRIGger:CONDitions`` \n
Snippet: ``value: str = driver.search.trigger.conditions.get(search = 'abc', sdata = 'abc')`` \n
No help available
"""
param = ArgSingleList().compose_cmd_string(ArgSingle('search', search, DataType.String), ArgSingle('sdata', sdata, DataType.String))
response = self._core.io.query_str_with_opc(f'SEARch:TRIGger:CONDitions? {param}'.rstrip())
return trim_str_response(response)