from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
from .......Internal.Utilities import trim_str_response
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class AllCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("all", core, parent)
[docs]
def set(self, filename: str) -> None:
"""
``MMEMory:LOAD:DEModsetting:ALL`` \n
Snippet: ``driver.applications.k14Xnr5G.massMemory.load.demodSetting.all.set(filename = 'abc')`` \n
Restores the signal description of multiple carriers from a single file.
:param filename: String containing the path and name of the file. The file extension is .ccallocation.
"""
param = Conversions.value_to_quoted_str(filename)
self._core.io.write(f'MMEMory:LOAD:DEModsetting:ALL {param}')
[docs]
def get(self) -> str:
"""
``MMEMory:LOAD:DEModsetting:ALL`` \n
Snippet: ``value: str = driver.applications.k14Xnr5G.massMemory.load.demodSetting.all.get()`` \n
Restores the signal description of multiple carriers from a single file.
:return: filename: String containing the path and name of the file. The file extension is .ccallocation.
"""
response = self._core.io.query_str(f'MMEMory:LOAD:DEModsetting:ALL?')
return trim_str_response(response)