Class ExtractResult

Namespace
CHDSharp.Models
Assembly
CHDSharpLib.dll

Represents the result of an ChdFile extraction to a directory, including per-track reporting for CD/GD-ROM images.

public sealed record ExtractResult : IEquatable<ExtractResult>
Inheritance
ExtractResult
Implements
Inherited Members

Constructors

ExtractResult(List<string>, List<TrackExtractResult>, ChdError)

Creates a new ExtractResult with the given lists and error code.

public ExtractResult(List<string> createdFiles, List<TrackExtractResult> trackResults, ChdError error)

Parameters

createdFiles List<string>
trackResults List<TrackExtractResult>
error ChdError

Properties

CreatedFiles

Paths to all files that were successfully created (track files, CUE/GDI descriptor).

public IReadOnlyList<string> CreatedFiles { get; init; }

Property Value

IReadOnlyList<string>

Error

An error code for the overall extraction. Chderrnone means the entire operation succeeded. Set to a non-none value only when a non-track-specific fatal error occurs (e.g. writing the CUE/GDI descriptor fails).

public ChdError Error { get; init; }

Property Value

ChdError

HasTrackFailures

true if at least one track failed to extract.

public bool HasTrackFailures { get; }

Property Value

bool

IsCompleteSuccess

true if every track and descriptor was extracted without error.

public bool IsCompleteSuccess { get; }

Property Value

bool

TrackResults

Per-track extraction results. Non-empty only for GD-ROM images where tracks are extracted individually. Each entry reports the track number, output path on success, and error code.

public IReadOnlyList<TrackExtractResult> TrackResults { get; init; }

Property Value

IReadOnlyList<TrackExtractResult>