using System.IO; using System.Collections.Generic; using System.Xml.Serialization; using TBF.BenchControl.Generic; namespace TBF.BenchControl.Elde.Diverter { public class DiverterCfg : ComponentCfgBase, IChildComponentCfg { public IComponent GetComponent(IList components) { return new Diverter(this, components); } public IComponentCfgCtrl GetControl() { return new DiverterCfgCtrl(); } /// /// Serialized parameters /// public int BitPosition; /// Private parameterless constructor invoked by all other (public) constructors DiverterCfg() { Name = "Div"; ParentName = "CB"; BitPosition = 0; } public DiverterCfg(IComponentFactory factory) : this() { this.Factory = factory; } public string ToString(int i) { return string.Format("Name={0}, Parent={1}, Bit={2}", Name, (string.IsNullOrEmpty(ParentName) ? "-" : ParentName), BitPosition); } } }