// /*************************************************************************** // The Disc Image Chef // ---------------------------------------------------------------------------- // // Filename : ImageInfo.cs // Author(s) : Natalia Portillo // // Component : Disc image plugins. // // --[ Description ] ---------------------------------------------------------- // // Defines a common structure with information about a disk image. // // --[ License ] -------------------------------------------------------------- // // This library is free software; you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as // published by the Free Software Foundation; either version 2.1 of the // License, or (at your option) any later version. // // This library is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public // License along with this library; if not, see . // // ---------------------------------------------------------------------------- // Copyright © 2011-2018 Natalia Portillo // ****************************************************************************/ using System; using System.Collections.Generic; using DiscImageChef.CommonTypes; namespace DiscImageChef.DiscImages { /// /// Contains information about a dump image and its contents /// public struct ImageInfo { /// Image contains partitions (or tracks for optical media) public bool HasPartitions; /// Image contains sessions (optical media only) public bool HasSessions; /// Size of the image without headers public ulong ImageSize; /// Sectors contained in the image public ulong Sectors; /// Size of sectors contained in the image public uint SectorSize; /// Media tags contained by the image public List ReadableMediaTags; /// Sector tags contained by the image public List ReadableSectorTags; /// Image version public string Version; /// Application that created the image public string Application; /// Version of the application that created the image public string ApplicationVersion; /// Who (person) created the image? public string Creator; /// Image creation time public DateTime CreationTime; /// Image last modification time public DateTime LastModificationTime; /// Title of the media represented by the image public string MediaTitle; /// Image comments public string Comments; /// Manufacturer of the media represented by the image public string MediaManufacturer; /// Model of the media represented by the image public string MediaModel; /// Serial number of the media represented by the image public string MediaSerialNumber; /// Barcode of the media represented by the image public string MediaBarcode; /// Part number of the media represented by the image public string MediaPartNumber; /// Media type represented by the image public MediaType MediaType; /// Number in sequence for the media represented by the image public int MediaSequence; /// Last media of the sequence the media represented by the image corresponds to public int LastMediaSequence; /// Manufacturer of the drive used to read the media represented by the image public string DriveManufacturer; /// Model of the drive used to read the media represented by the image public string DriveModel; /// Serial number of the drive used to read the media represented by the image public string DriveSerialNumber; /// Firmware revision of the drive used to read the media represented by the image public string DriveFirmwareRevision; /// Type of the media represented by the image to use in XML sidecars public XmlMediaType XmlMediaType; // CHS geometry... /// Cylinders of the media represented by the image public uint Cylinders; /// Heads of the media represented by the image public uint Heads; /// Sectors per track of the media represented by the image (for variable image, the smallest) public uint SectorsPerTrack; } }