Free cookie consent management tool by TermsFeed Policy Generator

source: tags/3.3.3/HeuristicLab.ExtLibs/HeuristicLab.Netron/3.0.2672.12446/Netron.Diagramming.Core-3.0.2672.12446/IO/NML/FromTo.cs @ 13398

Last change on this file since 13398 was 2769, checked in by mkommend, 14 years ago

added unused files for netron (ticket #867)

File size: 1.2 KB
Line 
1using System;
2
3namespace Netron.GraphLib.IO.NML
4{
5  /// <summary>
6  /// Utility class to speed up the deserialization of connections
7  /// This struct keeps unattached connections, the connections have the UID of the From and the To connector
8  /// but the respective connectors are still null
9  /// </summary>
10  public struct FromTo
11  {
12    /// <summary>
13    /// Default ctor
14    /// </summary>   
15    public FromTo( string from, string to)
16    {
17      this.From = from;
18      this.To = to;
19      this.Connection = null;
20    }
21    /// <summary>
22    /// constructor
23    /// </summary>
24    /// <param name="from">the UID of the From-connector</param>
25    /// <param name="to">the UID of the To-Connector</param>
26    /// <param name="con">the instantiated connection</param>
27    public FromTo(string from, string to, Connection con) : this(from,to)
28    {
29      Connection = con;
30    }
31
32    /// <summary>
33    /// Gets or sets the parent in this relation
34    /// </summary>
35    public string From;   
36    /// <summary>
37    /// Gets or sets the child in this relation
38    /// </summary>
39    public string To;
40    /// <summary>
41    /// Gets or sets the connection
42    /// </summary>
43    public Connection Connection;
44  }
45}
Note: See TracBrowser for help on using the repository browser.