Source code for cis_interface.drivers.FileOutputDriver

from cis_interface.drivers.OutputDriver import OutputDriver
from cis_interface.schema import register_component


[docs]@register_component class FileOutputDriver(OutputDriver): r"""Class to handle output of received messages to a file. Args: name (str): Name of the output queue to receive messages from. args (str): Path to the file that messages should be written to. **kwargs: Additional keyword arguments are passed to the parent class. """ _connection_type = 'file_output' _ocomm_type = 'FileComm' _direction = 'output' def __init__(self, name, args, **kwargs): kwargs.setdefault('ocomm_kws', {}) kwargs['ocomm_kws']['address'] = args super(FileOutputDriver, self).__init__(name, args, **kwargs) self.debug('(%s)', args)