[Enums, FileTypes/, Utilities] Use new enum, new class

Add a new "BaseFile" class for potential future use. This should be the "base" for all future files and folders that could exist. This is likely to change over time.
This commit is contained in:
Matt Nadareski
2018-02-15 22:06:20 -08:00
parent 336388c717
commit 3a45dcc1a5
18 changed files with 192 additions and 36 deletions

View File

@@ -9,20 +9,16 @@ using System.IO;
using MemoryStream = System.IO.MemoryStream;
using Stream = System.IO.Stream;
#endif
using SharpCompress.Common;
namespace SabreTools.Library.FileTypes
{
public abstract class BaseArchive
public abstract class BaseArchive : BaseFile
{
#region Protected instance variables
// Buffer size used by archives
protected const int _bufferSize = 4096 * 128;
protected ArchiveType _archiveType;
protected string _filename;
#endregion
#region Construtors
@@ -39,8 +35,8 @@ namespace SabreTools.Library.FileTypes
/// </summary>
/// <param name="filename">Name of the file to use as an archive</param>
public BaseArchive(string filename)
: base(filename)
{
_filename = filename;
}
#endregion