Schnittstelle erweitert.
Die lage wird jetzt mit aufgezeichnet
This commit is contained in:
39
SchnittstelleImporter/ImportBuilder.cs
Normal file
39
SchnittstelleImporter/ImportBuilder.cs
Normal file
@@ -0,0 +1,39 @@
|
||||
using KlassenBIB;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SchnittstelleImporter
|
||||
{
|
||||
/// <summary>
|
||||
/// Definiert die Importierbare Schnittstellen
|
||||
/// </summary>
|
||||
public enum ImportSchnittstellen
|
||||
{
|
||||
/// <summary>
|
||||
/// Euronorm XML 2006
|
||||
/// </summary>
|
||||
XML2006
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public static class ImportBuilder
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public static IImportedObjekte Import(ImportSchnittstellen importSchnittstellen)
|
||||
{
|
||||
switch (importSchnittstellen)
|
||||
{
|
||||
case ImportSchnittstellen.XML2006: return new I2006XML();
|
||||
default: throw new Exception("Gewünschte Schnittstelle nicht implementiert");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user