2019-01-16 13:52:20 +00:00
|
|
|
|
///
|
|
|
|
|
|
/// Copyright (c) 2018 Sensus Slovensko a.s.
|
|
|
|
|
|
///
|
|
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.IO;
|
|
|
|
|
|
using System.Xml.Serialization;
|
|
|
|
|
|
using Config.Entities;
|
2021-10-26 09:23:57 +00:00
|
|
|
|
using TBF.Rig.Generic;
|
2019-01-16 13:52:20 +00:00
|
|
|
|
|
2021-10-26 09:23:57 +00:00
|
|
|
|
namespace TBF.Rig.RegisterReaders.KPackE.RegisterReader
|
2019-01-16 13:52:20 +00:00
|
|
|
|
{
|
|
|
|
|
|
public class RegisterReaderCfg : ComponentCfgBase, Generic.IChildComponentCfg
|
|
|
|
|
|
{
|
|
|
|
|
|
public static XmlSerializer Serializer = XmlSerializer.FromTypes(new[] { typeof(RegisterReaderCfg) })[0];
|
|
|
|
|
|
public override XmlSerializer GetSerializer() { return Serializer; }
|
|
|
|
|
|
|
2021-08-29 11:01:34 +00:00
|
|
|
|
public IComponentCfgCtrl GetControl(IList<Config.Entities.Component> cmpntEntities) { return new RegisterReaderCfgCtrl(); }
|
2019-01-16 13:52:20 +00:00
|
|
|
|
|
|
|
|
|
|
/// <summary> Procedure parameters </summary>
|
|
|
|
|
|
[XmlIgnore]
|
|
|
|
|
|
public ProcedureParams ProcParams;
|
|
|
|
|
|
public override IParamsProvider GetRuntimeProcParamsProvider() { return ProcParams; }
|
|
|
|
|
|
public override IParamsProvider CreateProcParamsProvider() { return new ProcedureParams(true); }
|
|
|
|
|
|
|
|
|
|
|
|
/// Private parameterless constructor invoked by all other (public) constructors
|
|
|
|
|
|
RegisterReaderCfg()
|
|
|
|
|
|
{
|
|
|
|
|
|
Name = "RF-Register";
|
|
|
|
|
|
ParentName = "Radio";
|
|
|
|
|
|
ProcParams = new ProcedureParams(true);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public RegisterReaderCfg(IComponentFactory factory)
|
|
|
|
|
|
: this()
|
|
|
|
|
|
{
|
|
|
|
|
|
this.Factory = factory;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public string ToString(int i)
|
|
|
|
|
|
{
|
|
|
|
|
|
return string.Format("Name={0}, Parent={1}",
|
|
|
|
|
|
Name,
|
|
|
|
|
|
(string.IsNullOrEmpty(ParentName) ? "-" : ParentName));
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|