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 TitleCls:
"""
| Commands in total: 2
| Subgroups: 1
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("title", core, parent)
@property
def state(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_state'):
from .State import StateCls
self._state = StateCls(self._core, self._cmd_group)
return self._state
[docs]
def set(self, title: str) -> None:
"""
``HCOPy:TREPort:TITLe`` \n
Snippet: ``driver.hardCopy.treport.title.set(title = 'abc')`` \n
This command defines the title for the test report as shown on its title page.
:param title: String containing the title.
"""
param = Conversions.value_to_quoted_str(title)
self._core.io.write(f'HCOPy:TREPort:TITLe {param}')
[docs]
def get(self) -> str:
"""
``HCOPy:TREPort:TITLe`` \n
Snippet: ``value: str = driver.hardCopy.treport.title.get()`` \n
This command defines the title for the test report as shown on its title page.
:return: title: String containing the title.
"""
response = self._core.io.query_str(f'HCOPy:TREPort:TITLe?')
return trim_str_response(response)
def clone(self) -> 'TitleCls':
"""
Clones the group by creating new object from it and its whole existing subgroups.
Also copies all the existing default Repeated Capabilities setting,
which you can change independently without affecting the original group.
"""
new_group = TitleCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group