Table of Contents

Class CsvRunner

Namespace
Hi.Numerical.FilePlayers
Assembly
HiNc.dll

Provides functionality for running and processing csv lines.

public class CsvRunner : IControlRunner
Inheritance
CsvRunner
Implements
Inherited Members
Extension Methods

Constructors

CsvRunner(PacePlayer, LocalProjectService)

Initializes a new instance.

public CsvRunner(PacePlayer pacePlayer, LocalProjectService localProjectService)

Parameters

pacePlayer PacePlayer

The pace player for controlling playback.

localProjectService LocalProjectService

The local project service.

Properties

Config

Configuration for CSV Runner.

public CsvRunnerConfig Config { get; set; }

Property Value

CsvRunnerConfig

PacePlayer

Gets the pace player for controlling playback.

public PacePlayer PacePlayer { get; }

Property Value

PacePlayer

Methods

Reset()

Reset runtime data.

public void Reset()

ResetFileIndex()

Resets the file index to zero.

public void ResetFileIndex()

RunControlLines(string, IEnumerable<string>, SessionProgress, CancellationToken)

Runs raw Control lines and yields source sentence and Act pairs.

public IEnumerable<SourcedActEntry> RunControlLines(string relFilePath, IEnumerable<string> lines, SessionProgress sessionMessageHost, CancellationToken cancellationToken)

Parameters

relFilePath string

The relative path of the control file

lines IEnumerable<string>

The enumerable collection of command (control code) lines

sessionMessageHost SessionProgress
cancellationToken CancellationToken

Cancellation token to cancel the operation

Returns

IEnumerable<SourcedActEntry>

Enumerable of source sentence and Act pairs

RunToLineEnd()

Set EnumerablePlayer before use the function.

public void RunToLineEnd()