Create and implement IGenerate, IImport

This commit is contained in:
Matt Nadareski
2016-05-28 16:15:47 -07:00
parent 7a5826e64b
commit 07db29cfbf
9 changed files with 29 additions and 15 deletions

View File

@@ -77,8 +77,8 @@
</ItemGroup>
<ItemGroup>
<Compile Include="DATabaseTwo.cs" />
<Compile Include="Generate.cs" />
<Compile Include="Import.cs" />
<Compile Include="GenerateTwo.cs" />
<Compile Include="ImportTwo.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>

View File

@@ -10,7 +10,7 @@ using SabreTools.Helper;
namespace SabreTools
{
public class Generate
public class GenerateTwo : IGenerate
{
// Private instance variables
private string _systemid;
@@ -35,7 +35,7 @@ namespace SabreTools
/// <param name="logger">Logger object for file or console output</param>
/// <param name="norename">True if files should not be renamed with system and/or source in merged mode (default false)</param>
/// <param name="old">True if the output file should be in ClrMamePro format (default false)</param>
public Generate(string systemid, string sourceid, string datroot, string outroot, string connectionString, Logger logger, bool norename = false, bool old = false)
public GenerateTwo(string systemid, string sourceid, string datroot, string outroot, string connectionString, Logger logger, bool norename = false, bool old = false)
{
_systemid = systemid;
_sourceid = sourceid;

View File

@@ -9,7 +9,7 @@ using SabreTools.Helper;
namespace SabreTools
{
public class Import
public class ImportTwo : IImport
{
// Private instance variables
private string _datroot;
@@ -24,7 +24,7 @@ namespace SabreTools
/// <param name="connectionString">Connection string for SQLite</param>
/// <param name="logger">Logger object for file or console output</param>
/// <param name="ignore">False if each DAT that has no defined source asks for user input (default), true otherwise</param>
public Import(string datroot, string connectionString, Logger logger, bool ignore = false)
public ImportTwo(string datroot, string connectionString, Logger logger, bool ignore = false)
{
_datroot = datroot;
_connectionString = connectionString;