From 92cca711668991cb16123ec2b501f5abb182328e Mon Sep 17 00:00:00 2001 From: Simon G Date: Fri, 18 Sep 2020 15:58:39 +0200 Subject: [PATCH] - add addEntry and removeEntry methods --- GBase/FileHandling/FileHandler.cs | 13 +++++++++++++ GBase/Interfaces/FileHandling/IFileHandler.cs | 4 ++++ 2 files changed, 17 insertions(+) diff --git a/GBase/FileHandling/FileHandler.cs b/GBase/FileHandling/FileHandler.cs index 89376b6..cbc1952 100644 --- a/GBase/FileHandling/FileHandler.cs +++ b/GBase/FileHandling/FileHandler.cs @@ -7,6 +7,7 @@ using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; using GBase.DataHandling.Factories; +using GBase.Interfaces; using GBase.Interfaces.DataHandling; using GBase.Interfaces.DataHandling.Xml; using GBase.Interfaces.FileHandling; @@ -48,6 +49,18 @@ namespace GBase.FileHandling return success; } + public Task AddEntry(T entry, IGBaseTable table) + { + //create new entry file + throw new NotImplementedException(); + } + + public Task RemoveEntry(T entry) + { + //remove entry file + throw new NotImplementedException(); + } + /// /// Set the value for the given property /// diff --git a/GBase/Interfaces/FileHandling/IFileHandler.cs b/GBase/Interfaces/FileHandling/IFileHandler.cs index 9e33882..ae3eb99 100644 --- a/GBase/Interfaces/FileHandling/IFileHandler.cs +++ b/GBase/Interfaces/FileHandling/IFileHandler.cs @@ -22,6 +22,10 @@ namespace GBase.Interfaces.FileHandling /// True if successful, false if not Task Init(string path, CancellationToken cancellationToken); + Task AddEntry(T entry, IGBaseTable table); + + Task RemoveEntry(T entry); + /// /// Set the value for the given property ///