Files
Aaru/Aaru.Images/CHD/Properties.cs

89 lines
2.8 KiB
C#
Raw Normal View History

// /***************************************************************************
2020-02-27 12:31:25 +00:00
// Aaru Data Preservation Suite
// ----------------------------------------------------------------------------
//
// Filename : Properties.cs
// Author(s) : Natalia Portillo <claunia@claunia.com>
//
// Component : Disk image plugins.
//
// --[ Description ] ----------------------------------------------------------
//
// Contains properties for MAME Compressed Hunks of Data disk images.
//
// --[ 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/>.
//
// ----------------------------------------------------------------------------
2022-12-03 16:07:10 +00:00
// Copyright © 2011-2023 Natalia Portillo
// ****************************************************************************/
using System;
using System.Collections.Generic;
using System.Linq;
using Aaru.CommonTypes.AaruMetadata;
2020-02-27 00:33:26 +00:00
using Aaru.CommonTypes.Structs;
using Partition = Aaru.CommonTypes.Partition;
using Track = Aaru.CommonTypes.Structs.Track;
namespace Aaru.DiscImages;
2022-03-06 13:29:38 +00:00
public sealed partial class Chd
{
2023-10-03 23:34:59 +01:00
#region IOpticalMediaImage Members
2022-03-06 13:29:38 +00:00
/// <inheritdoc />
// ReSharper disable once ConvertToAutoProperty
2022-03-06 13:29:38 +00:00
public ImageInfo Info => _imageInfo;
2023-10-03 23:34:59 +01:00
2022-03-06 13:29:38 +00:00
/// <inheritdoc />
public string Name => Localization.Chd_Name;
2023-10-03 23:34:59 +01:00
2022-03-06 13:29:38 +00:00
/// <inheritdoc />
public Guid Id => new("0D50233A-08BD-47D4-988B-27EAA0358597");
2023-10-03 23:34:59 +01:00
2022-03-06 13:29:38 +00:00
/// <inheritdoc />
public string Format => "Compressed Hunks of Data";
2023-10-03 23:34:59 +01:00
2022-03-06 13:29:38 +00:00
/// <inheritdoc />
public string Author => Authors.NataliaPortillo;
2020-02-29 18:03:35 +00:00
2022-03-06 13:29:38 +00:00
/// <inheritdoc />
public List<Partition> Partitions => _isHdd ? null : _partitions;
2020-02-29 18:03:35 +00:00
2022-03-06 13:29:38 +00:00
/// <inheritdoc />
public List<Track> Tracks => _isHdd ? null : _tracks.Values.ToList();
2020-02-29 18:03:35 +00:00
2022-03-06 13:29:38 +00:00
/// <inheritdoc />
public List<Session> Sessions
{
get
{
2022-03-06 13:29:38 +00:00
if(_isHdd)
2021-09-21 04:55:28 +01:00
return null;
2020-02-29 18:03:35 +00:00
2022-03-06 13:29:38 +00:00
// TODO: Implement
return null;
}
}
2022-03-06 13:29:38 +00:00
/// <inheritdoc />
public List<DumpHardware> DumpHardware => null;
2023-10-03 23:34:59 +01:00
2022-03-06 13:29:38 +00:00
/// <inheritdoc />
public Metadata AaruMetadata => null;
2023-10-03 23:34:59 +01:00
#endregion
}