iPerl Fixes

This commit is contained in:
2025-10-27 11:49:42 +01:00
parent 77cabfd712
commit 42002e3fa4
5 changed files with 11 additions and 1 deletions
@@ -12,6 +12,7 @@ using TBF.Rig.RegisterReaders.CommonRR.IPerl;
namespace TBF.Rig.TestMethods.iPerlCommunication
{
[XmlRoot("TestMethodCfg")] // Add this attribute to match the XML root
public class TestMethodCfg_IPerl : ComponentCfgBase, IiPerlTestMethodCfg
{
public static XmlSerializer Serializer = XmlSerializer.FromTypes(new[] { typeof(TestMethodCfg_IPerl) })[0];
@@ -9,6 +9,8 @@ namespace TBF.Rig.TestMethods.iPerlCommunication
public class TestMethodFactory : IComponentFactory
{
public string ClassName { get { return GetType().Namespace.Substring(8); } }
public override string ToString() { return ClassName; }
public IComponent DummyComponent() { return new TestMethod(); }
@@ -9,6 +9,9 @@ namespace TBF.Rig.TestMethods.iPerlCommunication.iPerlHead
public class Factory : IComponentFactory
{
public string ClassName { get { return "RegisterReader for iPerl"; } }
//TODO BuMi to the future, now has class name as 'Factory' !
//public override string ToString() { return ClassName; }
public IComponent DummyComponent() { return new IperlHead(); }