Add writable image skeleton to dicformat.

This commit is contained in:
2019-04-30 23:32:25 +01:00
parent 9f7da82b41
commit 9edf8e1fa0
4 changed files with 52 additions and 1 deletions

View File

@@ -827,6 +827,7 @@
<e p="Properties.cs" t="Include" /> <e p="Properties.cs" t="Include" />
<e p="Read.cs" t="Include" /> <e p="Read.cs" t="Include" />
<e p="Structs.cs" t="Include" /> <e p="Structs.cs" t="Include" />
<e p="Tape.cs" t="Include" />
<e p="Verify.cs" t="Include" /> <e p="Verify.cs" t="Include" />
<e p="Write.cs" t="Include" /> <e p="Write.cs" t="Include" />
</e> </e>

View File

@@ -214,6 +214,7 @@
<Compile Include="DiscImageChef\Properties.cs" /> <Compile Include="DiscImageChef\Properties.cs" />
<Compile Include="DiscImageChef\Read.cs" /> <Compile Include="DiscImageChef\Read.cs" />
<Compile Include="DiscImageChef\Structs.cs" /> <Compile Include="DiscImageChef\Structs.cs" />
<Compile Include="DiscImageChef\Tape.cs" />
<Compile Include="DiscImageChef\Verify.cs" /> <Compile Include="DiscImageChef\Verify.cs" />
<Compile Include="DiscImageChef\Write.cs" /> <Compile Include="DiscImageChef\Write.cs" />
<Compile Include="DiscJuggler\Helpers.cs" /> <Compile Include="DiscJuggler\Helpers.cs" />

View File

@@ -81,7 +81,7 @@ using SharpCompress.Compressors.LZMA;
namespace DiscImageChef.DiscImages namespace DiscImageChef.DiscImages
{ {
public partial class DiscImageChef : IWritableOpticalImage, IVerifiableImage public partial class DiscImageChef : IWritableOpticalImage, IVerifiableImage, IWritableTapeImage
{ {
bool alreadyWrittenZero; bool alreadyWrittenZero;
/// <summary>Cache of uncompressed blocks.</summary> /// <summary>Cache of uncompressed blocks.</summary>

View File

@@ -0,0 +1,49 @@
// /***************************************************************************
// The Disc Image Chef
// ----------------------------------------------------------------------------
//
// Filename : Tape.cs
// Author(s) : Natalia Portillo <claunia@claunia.com>
//
// Component : Disk image plugins.
//
// --[ Description ] ----------------------------------------------------------
//
// Manages DiscImageChef format tape 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/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2011-2019 Natalia Portillo
// ****************************************************************************/
using System;
using System.Collections.Generic;
using DiscImageChef.CommonTypes.Interfaces;
using DiscImageChef.CommonTypes.Structs;
namespace DiscImageChef.DiscImages
{
public partial class DiscImageChef
{
public List<TapeFile> Files { get; }
List<TapePartition> ITapeImage.Partitions { get; }
public bool AddFile(TapeFile file) => throw new NotImplementedException();
public bool AddPartition(TapePartition partition) => throw new NotImplementedException();
}
}