--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/client/src/Iri.Modernisation.Data/Ldt/LDTInst.cs Wed Nov 18 15:30:31 2009 +0100
@@ -0,0 +1,98 @@
+using System;
+using System.Net;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Documents;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Shapes;
+using System.Xml.Linq;
+namespace Iri.Modernisation.Data.LDTClass
+{
+ /// <summary>
+ /// Balise inst
+ /// </summary>
+ public class LDTInst
+ {
+ /// <summary>
+ /// Attribut
+ /// </summary>
+ public String Ref { get; set; }
+ /// <summary>
+ /// Attribut
+ /// </summary>
+ public long Begin { get; set; }
+ /// <summary>
+ /// Attribut
+ /// </summary>
+ public long End { get; set; }
+ /// <summary>
+ /// Attribut
+ /// </summary>
+ public int M { get; set; }
+ /// <summary>
+ /// Attribut
+ /// </summary>
+ public int V { get; set; }
+ /// <summary>
+ /// Attribut
+ /// </summary>
+ public int eBegin { get; set; }
+ /// <summary>
+ /// Attribut
+ /// </summary>
+ public int eEnd { get; set; }
+ /// <summary>
+ /// Attribut
+ /// </summary>
+ public int TrId { get; set; }
+ /// <summary>
+ /// Attribut
+ /// </summary>
+ public int TrIc { get; set; }
+ /// <summary>
+ /// Attribut
+ /// </summary>
+ public int TrOd { get; set; }
+ /// <summary>
+ /// Attribut
+ /// </summary>
+ public int TrOc { get; set; }
+ public LDTInst(XElement e)
+ {
+ Ref = e.Attribute("ref").Value;
+ Begin = long.Parse(e.Attribute("begin").Value);
+ End = long.Parse(e.Attribute("end").Value);
+ M = int.Parse(e.Attribute("m").Value);
+ V = int.Parse(e.Attribute("v").Value);
+ eBegin = int.Parse(e.Attribute("eBegin").Value);
+ eEnd = int.Parse(e.Attribute("eEnd").Value);
+ TrId = int.Parse(e.Attribute("trId").Value);
+ TrIc = int.Parse(e.Attribute("trIc").Value);
+ TrOd = int.Parse(e.Attribute("trOd").Value);
+ TrOc = int.Parse(e.Attribute("trOc").Value);
+ }
+
+ public XElement XML
+ {
+ get
+ {
+ return new XElement("inst",
+ new XAttribute("ref",Ref),
+ new XAttribute("begin",Begin),
+ new XAttribute("end",End),
+ new XAttribute("m",M),
+ new XAttribute("v",V),
+ new XAttribute("eBegin",eBegin),
+ new XAttribute("eEnd",eEnd),
+ new XAttribute("trId",TrId),
+ new XAttribute("trIc",TrIc),
+ new XAttribute("trOd",TrOd),
+ new XAttribute("trOc",TrOc)
+ );
+ }
+ }
+ }
+}