2025-09-04 20:14:00 +01:00
|
|
|
using System;
|
2025-09-05 03:07:50 +01:00
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.IO;
|
2025-09-04 20:14:00 +01:00
|
|
|
using Aaru.CommonTypes.Interfaces;
|
|
|
|
|
|
|
|
|
|
namespace Aaru.Archives;
|
|
|
|
|
|
|
|
|
|
public sealed partial class Amg : IArchive
|
|
|
|
|
{
|
2025-09-05 03:07:50 +01:00
|
|
|
List<FileEntry> _files;
|
|
|
|
|
Stream _stream;
|
|
|
|
|
|
2025-09-04 20:14:00 +01:00
|
|
|
#region IArchive Members
|
|
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
|
public string Name => "AMG";
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
|
public Guid Id => new("3BB1D752-1C45-42BB-B771-76CDF08F82F8");
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
|
public string Author => Authors.NataliaPortillo;
|
|
|
|
|
/// <inheritdoc />
|
2025-09-05 03:07:50 +01:00
|
|
|
public bool Opened { get; private set; }
|
2025-09-04 20:14:00 +01:00
|
|
|
/// <inheritdoc />
|
|
|
|
|
public ArchiveSupportedFeature ArchiveFeatures => ArchiveSupportedFeature.HasEntryTimestamp |
|
|
|
|
|
ArchiveSupportedFeature.SupportsCompression |
|
|
|
|
|
ArchiveSupportedFeature.SupportsFilenames |
|
|
|
|
|
ArchiveSupportedFeature.SupportsSubdirectories;
|
|
|
|
|
/// <inheritdoc />
|
2025-09-05 03:07:50 +01:00
|
|
|
public int NumberOfEntries => Opened ? _files.Count : -1;
|
2025-09-04 20:14:00 +01:00
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
}
|