Source code for RsFsw.Implementations.FormatPy.Dexport.Cseparator

from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
from ....Internal import Conversions
from .... import enums


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

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

[docs] def set(self, separator: enums.FileSeparator) -> None: """ ``FORMat:DEXPort:CSEParator`` \n Snippet: ``driver.formatPy.dexport.cseparator.set(separator = enums.FileSeparator.COMMa)`` \n Selects the column separator for exported trace data. The selected value is not affected by a preset. The command therefore has no reset value. :param separator: COMMa Selects a comma as a separator. SEMicolon Selects a semicolon as a separator. TAB Selects a tabulator as a separator. """ param = Conversions.enum_scalar_to_str(separator, enums.FileSeparator) self._core.io.write(f'FORMat:DEXPort:CSEParator {param}')
# noinspection PyTypeChecker
[docs] def get(self) -> enums.FileSeparator: """ ``FORMat:DEXPort:CSEParator`` \n Snippet: ``value: enums.FileSeparator = driver.formatPy.dexport.cseparator.get()`` \n Selects the column separator for exported trace data. The selected value is not affected by a preset. The command therefore has no reset value. :return: separator: COMMa Selects a comma as a separator. SEMicolon Selects a semicolon as a separator. TAB Selects a tabulator as a separator. """ response = self._core.io.query_str(f'FORMat:DEXPort:CSEParator?') return Conversions.str_to_scalar_enum(response, enums.FileSeparator)