You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
552 B
22 lines
552 B
// Author: Gockner, Simon
|
|
// Created: 2021-04-09
|
|
// Copyright(c) 2021 SimonG. All Rights Reserved.
|
|
|
|
using Lib.Driver.Interfaces;
|
|
using Lib.Driver.Xml;
|
|
using Lib.Xml;
|
|
using Lib.Xml.Interfaces;
|
|
|
|
namespace Lib.Driver
|
|
{
|
|
public class DriverLoader : IDriverLoader
|
|
{
|
|
public const string DRIVER_FILE_EXTENSION = "myd";
|
|
|
|
private readonly IXmlReader<XmlDriver> _xmlReader;
|
|
|
|
public DriverLoader() => _xmlReader = new XmlReader<XmlDriver>();
|
|
|
|
public IDriver Load(string driverPath) => _xmlReader.Read(driverPath);
|
|
}
|
|
} |