- add addEntry and removeEntry methods

pull/27/head
Simon G 5 years ago
parent 2e2c0f74c2
commit 92cca71166
  1. 13
      GBase/FileHandling/FileHandler.cs
  2. 4
      GBase/Interfaces/FileHandling/IFileHandler.cs

@ -7,6 +7,7 @@ using System.Collections.Generic;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
using GBase.DataHandling.Factories; using GBase.DataHandling.Factories;
using GBase.Interfaces;
using GBase.Interfaces.DataHandling; using GBase.Interfaces.DataHandling;
using GBase.Interfaces.DataHandling.Xml; using GBase.Interfaces.DataHandling.Xml;
using GBase.Interfaces.FileHandling; using GBase.Interfaces.FileHandling;
@ -48,6 +49,18 @@ namespace GBase.FileHandling
return success; return success;
} }
public Task AddEntry<T>(T entry, IGBaseTable table)
{
//create new entry file
throw new NotImplementedException();
}
public Task<bool> RemoveEntry<T>(T entry)
{
//remove entry file
throw new NotImplementedException();
}
/// <summary> /// <summary>
/// Set the value for the given property /// Set the value for the given property
/// </summary> /// </summary>

@ -22,6 +22,10 @@ namespace GBase.Interfaces.FileHandling
/// <returns>True if successful, false if not</returns> /// <returns>True if successful, false if not</returns>
Task<bool> Init(string path, CancellationToken cancellationToken); Task<bool> Init(string path, CancellationToken cancellationToken);
Task AddEntry<T>(T entry, IGBaseTable table);
Task<bool> RemoveEntry<T>(T entry);
/// <summary> /// <summary>
/// Set the value for the given property /// Set the value for the given property
/// </summary> /// </summary>

Loading…
Cancel
Save