using System.Diagnostics.CodeAnalysis;
namespace VersOne.Epub.Options
{
///
/// Various options to configure the behavior of the EPUB spine reader which is used for parsing the <spine> section
/// of the EPUB OPF package file. This section represents the default reading order of the EPUB book.
///
public class SpineReaderOptions
{
///
/// Initializes a new instance of the class.
///
/// An optional preset to initialize the class with a predefined set of options.
[SuppressMessage("Style", "IDE0060:Remove unused parameter", Justification = "Temporarily ignore unused 'preset' parameter.")]
public SpineReaderOptions(EpubReaderOptionsPreset? preset = null)
{
}
///
/// Gets or sets a value indicating whether EPUB spine reader should ignore the error when the manifest item referenced by
/// a EPUB spine item is missing.
/// If it's set to false and the manifest item with the given ID is not present, then
/// the "Incorrect EPUB spine: item with IdRef = "..." is missing in the manifest" exception will be thrown.
/// Default value is false.
///
public bool IgnoreMissingManifestItems { get; set; }
}
}