Source code for RsFsw.Implementations.MassMemory.Store.Table.Limit

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
from ..... import repcap


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

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

[docs] def set(self, columns: enums.StatisticType, filename: str, store=repcap.Store.Default) -> None: """ ``MMEMory:STORe<n>:TABLe:LIMit`` \n Snippet: ``driver.massMemory.store.table.limit.set(columns = enums.StatisticType.ALL, filename = 'abc', store = repcap.Store.Default)`` \n No help available :param store: optional repeated capability selector. Default value: Pos1 (settable in the interface 'Store') """ param = ArgSingleList().compose_cmd_string(ArgSingle('columns', columns, DataType.Enum, enums.StatisticType), ArgSingle('filename', filename, DataType.String)) store_cmd_val = self._cmd_group.get_repcap_cmd_value(store, repcap.Store) self._core.io.write(f'MMEMory:STORe{store_cmd_val}:TABLe:LIMit {param}'.rstrip())