22 lines
583 B
C#
22 lines
583 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Dakota.Segmente
|
|
{
|
|
internal abstract class Segment
|
|
{
|
|
//public List<Datenelement> Datenelemente { get; set; }
|
|
|
|
public abstract string GetHead();
|
|
public abstract List<Dateneinheit> GetBody();
|
|
|
|
public string ToString()
|
|
{
|
|
return GetHead() + DakotaConfig.Trennzeichen + string.Join(DakotaConfig.Trennzeichen, GetBody().Select(x => x.GetValue())) + DakotaConfig.Segmentendezeichen;
|
|
}
|
|
}
|
|
}
|