#9: add factories for gBase base classes

pull/26/head
Simon Gockner 6 years ago
parent 72defb90a4
commit 9a7ad8a93e
  1. 21
      GBase/Factories/IGBaseEntryFactory.cs
  2. 23
      GBase/Factories/IGBaseFactory.cs
  3. 21
      GBase/Factories/IGBaseTableFactory.cs

@ -0,0 +1,21 @@
// Author: Gockner, Simon
// Created: 2020-02-12
// Copyright(c) 2020 SimonG. All Rights Reserved.
using GBase.Interfaces;
namespace GBase.Factories
{
/// <summary>
/// Factory for the <see cref="IGBaseEntry"/>
/// </summary>
public interface IGBaseEntryFactory
{
/// <summary>
/// Creates an <see cref="IGBaseEntry"/>
/// </summary>
/// <returns>A newly created instance of the implementation for <see cref="IGBaseEntry"/></returns>
IGBaseEntry Create();
}
}

@ -0,0 +1,23 @@
// Author: Gockner, Simon
// Created: 2020-02-12
// Copyright(c) 2020 SimonG. All Rights Reserved.
using GBase.Interfaces;
using GBase.Interfaces.Settings;
namespace GBase.Factories
{
/// <summary>
/// Factory for the <see cref="IGBase"/>
/// </summary>
public interface IGBaseFactory
{
/// <summary>
/// Creates an <see cref="IGBase"/>
/// </summary>
/// <param name="settings">The <see cref="IGBaseSettings"/> for this <see cref="IGBase"/></param>
/// <returns>A newly created instance of the implementation for <see cref="IGBase"/></returns>
IGBase Create(IGBaseSettings settings);
}
}

@ -0,0 +1,21 @@
// Author: Gockner, Simon
// Created: 2020-02-12
// Copyright(c) 2020 SimonG. All Rights Reserved.
using GBase.Interfaces;
namespace GBase.Factories
{
/// <summary>
/// Factory for the <see cref="IGBaseTable"/>
/// </summary>
public interface IGBaseTableFactory
{
/// <summary>
/// Creates an <see cref="IGBaseTable"/>
/// </summary>
/// <returns>A newly created instance of the implementation for <see cref="IGBaseTable"/></returns>
IGBaseTable Create();
}
}
Loading…
Cancel
Save