C# Class AK.F1.Timing.Playback.RecordingMessageReader

Provides a AK.F1.Timing.IMessageReader decorator which records the AK.F1.Timing.Messages read from an inner AK.F1.Timing.IMessageReader.
Inheritance: MessageReaderBase
Show file Open project: simoneb/ak-f1-timing Class Usage Examples

Private Properties

Property Type Description
Initialise void
Write void
WriteDelay void

Public Methods

Method Description
RecordingMessageReader ( IMessageReader inner, Stream output, bool ownsOutput ) : System

Initialises a new instance of the RecordingMessageReader class and specified the inner message reader, the output stream and a value indicating if the decorator owns the output.

RecordingMessageReader ( IMessageReader inner, string path ) : System

Initialises a new instance of the RecordingMessageReader class and specified the inner message reader and the output file path.

Protected Methods

Method Description
DisposeOfManagedResources ( ) : void
ReadImpl ( ) : Message

Private Methods

Method Description
Initialise ( IMessageReader inner, Stream output, bool ownsOutput ) : void
Write ( Message message ) : void
WriteDelay ( ) : void

Method Details

DisposeOfManagedResources() protected method

protected DisposeOfManagedResources ( ) : void
return void

ReadImpl() protected method

protected ReadImpl ( ) : Message
return Message

RecordingMessageReader() public method

Initialises a new instance of the RecordingMessageReader class and specified the inner message reader, the output stream and a value indicating if the decorator owns the output.
/// Thrown when or is /// . ///
public RecordingMessageReader ( IMessageReader inner, Stream output, bool ownsOutput ) : System
inner IMessageReader The inner message reader.
output Stream The output stream.
ownsOutput bool if the decorator owns the specified output /// stream, otherwise; .
return System

RecordingMessageReader() public method

Initialises a new instance of the RecordingMessageReader class and specified the inner message reader and the output file path.
/// Thrown when or is /// . /// /// Thrown when an IO error occurs whilst creating the internal /// using the supplied arguments. ///
public RecordingMessageReader ( IMessageReader inner, string path ) : System
inner IMessageReader The inner message reader.
path string The output file path.
return System