Table of Contents

Class DeviceDataWriter

Namespace
Harp.Hobgoblin
Assembly
Harp.Hobgoblin.dll

Represents an operator that writes the sequence of Harp.Hobgoblin" messages to the standard Harp storage format.

public class DeviceDataWriter : Sink<HarpMessage>, INamedElement
Inheritance
DeviceDataWriter
Implements
Inherited Members

Properties

Buffered

Gets or sets a value indicating whether element writing should be buffered. If true, the write commands will be queued in memory as fast as possible and will be processed by the writer in a different thread. Otherwise, writing will be done in the same thread in which notifications arrive.

FilterType

Gets or sets a value specifying how the message filter will use the matching criteria.

MessageType

Gets or sets a value specifying the expected message type. If no value is specified, all messages will be accepted.

Overwrite

Gets or sets a value indicating whether to overwrite the output file if it already exists.

Path

Gets or sets the relative or absolute path on which to save the message data.

Methods

Process(IObservable<HarpMessage>)

Writes each Harp message in the sequence to the specified binary file, and the contents of the device metadata file to a separate text file.

Process(IObservable<IGroupedObservable<int, HarpMessage>>)

Writes each Harp message in the sequence of observable groups to the corresponding binary file, where the name of each file is generated from the common group register address. The contents of the device metadata file are written to a separate text file.

Process(IObservable<IGroupedObservable<Type, HarpMessage>>)

Writes each Harp message in the sequence of observable groups to the corresponding binary file, where the name of each file is generated from the common group register name. The contents of the device metadata file are written to a separate text file.