2017-05-19 20:28:49 +01:00
|
|
|
// /***************************************************************************
|
2016-07-28 18:13:49 +01:00
|
|
|
// The Disc Image Chef
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
//
|
|
|
|
|
// Filename : ImageInfo.cs
|
|
|
|
|
// Author(s) : Natalia Portillo <claunia@claunia.com>
|
|
|
|
|
//
|
|
|
|
|
// 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 <http://www.gnu.org/licenses/>.
|
|
|
|
|
//
|
|
|
|
|
// ----------------------------------------------------------------------------
|
2017-12-19 03:50:57 +00:00
|
|
|
// Copyright © 2011-2018 Natalia Portillo
|
2016-07-28 18:13:49 +01:00
|
|
|
// ****************************************************************************/
|
|
|
|
|
|
|
|
|
|
using System;
|
2014-07-03 18:35:35 +01:00
|
|
|
using System.Collections.Generic;
|
2015-11-23 21:44:58 +00:00
|
|
|
using DiscImageChef.CommonTypes;
|
2014-07-03 18:35:35 +01:00
|
|
|
|
2017-12-20 17:15:26 +00:00
|
|
|
namespace DiscImageChef.DiscImages
|
2014-07-03 18:35:35 +01:00
|
|
|
{
|
2017-12-26 02:51:10 +00:00
|
|
|
/// <summary>
|
|
|
|
|
/// Contains information about a dump image and its contents
|
|
|
|
|
/// </summary>
|
2017-12-19 20:33:03 +00:00
|
|
|
public struct ImageInfo
|
2014-07-03 18:35:35 +01:00
|
|
|
{
|
2017-12-26 02:51:10 +00:00
|
|
|
/// <summary>Image contains partitions (or tracks for optical media)</summary>
|
|
|
|
|
public bool HasPartitions;
|
|
|
|
|
/// <summary>Image contains sessions (optical media only)</summary>
|
|
|
|
|
public bool HasSessions;
|
|
|
|
|
/// <summary>Size of the image without headers</summary>
|
2017-12-20 17:15:26 +00:00
|
|
|
public ulong ImageSize;
|
2017-12-26 02:51:10 +00:00
|
|
|
/// <summary>Sectors contained in the image</summary>
|
2017-12-20 17:15:26 +00:00
|
|
|
public ulong Sectors;
|
2017-12-26 02:51:10 +00:00
|
|
|
/// <summary>Size of sectors contained in the image</summary>
|
2017-12-20 17:15:26 +00:00
|
|
|
public uint SectorSize;
|
2017-12-26 02:51:10 +00:00
|
|
|
/// <summary>Media tags contained by the image</summary>
|
2017-12-20 17:15:26 +00:00
|
|
|
public List<MediaTagType> ReadableMediaTags;
|
2017-12-26 02:51:10 +00:00
|
|
|
/// <summary>Sector tags contained by the image</summary>
|
2017-12-20 17:15:26 +00:00
|
|
|
public List<SectorTagType> ReadableSectorTags;
|
2017-12-26 02:51:10 +00:00
|
|
|
/// <summary>Image version</summary>
|
|
|
|
|
public string Version;
|
|
|
|
|
/// <summary>Application that created the image</summary>
|
|
|
|
|
public string Application;
|
|
|
|
|
/// <summary>Version of the application that created the image</summary>
|
|
|
|
|
public string ApplicationVersion;
|
|
|
|
|
/// <summary>Who (person) created the image?</summary>
|
|
|
|
|
public string Creator;
|
|
|
|
|
/// <summary>Image creation time</summary>
|
|
|
|
|
public DateTime CreationTime;
|
|
|
|
|
/// <summary>Image last modification time</summary>
|
|
|
|
|
public DateTime LastModificationTime;
|
|
|
|
|
/// <summary>Title of the media represented by the image</summary>
|
|
|
|
|
public string MediaTitle;
|
|
|
|
|
/// <summary>Image comments</summary>
|
|
|
|
|
public string Comments;
|
|
|
|
|
/// <summary>Manufacturer of the media represented by the image</summary>
|
2017-12-20 17:15:26 +00:00
|
|
|
public string MediaManufacturer;
|
2017-12-26 02:51:10 +00:00
|
|
|
/// <summary>Model of the media represented by the image</summary>
|
2017-12-20 17:15:26 +00:00
|
|
|
public string MediaModel;
|
2017-12-26 02:51:10 +00:00
|
|
|
/// <summary>Serial number of the media represented by the image</summary>
|
2017-12-20 17:15:26 +00:00
|
|
|
public string MediaSerialNumber;
|
2017-12-26 02:51:10 +00:00
|
|
|
/// <summary>Barcode of the media represented by the image</summary>
|
2017-12-20 17:15:26 +00:00
|
|
|
public string MediaBarcode;
|
2017-12-26 02:51:10 +00:00
|
|
|
/// <summary>Part number of the media represented by the image</summary>
|
2017-12-20 17:15:26 +00:00
|
|
|
public string MediaPartNumber;
|
2017-12-26 02:51:10 +00:00
|
|
|
/// <summary>Media type represented by the image</summary>
|
2017-12-20 17:15:26 +00:00
|
|
|
public MediaType MediaType;
|
2017-12-26 02:51:10 +00:00
|
|
|
/// <summary>Number in sequence for the media represented by the image</summary>
|
2017-12-20 17:15:26 +00:00
|
|
|
public int MediaSequence;
|
2017-12-26 02:51:10 +00:00
|
|
|
/// <summary>Last media of the sequence the media represented by the image corresponds to</summary>
|
2017-12-20 17:15:26 +00:00
|
|
|
public int LastMediaSequence;
|
2017-12-26 02:51:10 +00:00
|
|
|
/// <summary>Manufacturer of the drive used to read the media represented by the image</summary>
|
2017-12-20 17:15:26 +00:00
|
|
|
public string DriveManufacturer;
|
2017-12-26 02:51:10 +00:00
|
|
|
/// <summary>Model of the drive used to read the media represented by the image</summary>
|
2017-12-20 17:15:26 +00:00
|
|
|
public string DriveModel;
|
2017-12-26 02:51:10 +00:00
|
|
|
/// <summary>Serial number of the drive used to read the media represented by the image</summary>
|
2017-12-20 17:15:26 +00:00
|
|
|
public string DriveSerialNumber;
|
2017-12-26 02:51:10 +00:00
|
|
|
/// <summary>Firmware revision of the drive used to read the media represented by the image</summary>
|
2017-12-20 17:15:26 +00:00
|
|
|
public string DriveFirmwareRevision;
|
2017-12-26 02:51:10 +00:00
|
|
|
/// <summary>Type of the media represented by the image to use in XML sidecars</summary>
|
2017-12-20 17:15:26 +00:00
|
|
|
public XmlMediaType XmlMediaType;
|
2017-12-19 20:33:03 +00:00
|
|
|
// CHS geometry...
|
2017-12-26 02:51:10 +00:00
|
|
|
/// <summary>Cylinders of the media represented by the image</summary>
|
2017-12-20 17:15:26 +00:00
|
|
|
public uint Cylinders;
|
2017-12-26 02:51:10 +00:00
|
|
|
/// <summary>Heads of the media represented by the image</summary>
|
2017-12-20 17:15:26 +00:00
|
|
|
public uint Heads;
|
2017-12-26 02:51:10 +00:00
|
|
|
/// <summary>Sectors per track of the media represented by the image (for variable image, the smallest)</summary>
|
2017-12-20 17:15:26 +00:00
|
|
|
public uint SectorsPerTrack;
|
2014-07-03 18:35:35 +01:00
|
|
|
}
|
2017-12-19 20:33:03 +00:00
|
|
|
}
|