Files
tbf/TBF/Rig/Various/CoverTest/Factory.cs

27 lines
868 B
C#

///
/// Copyright (c) 2017-2021 Sensus Slovensko a.s.
///
using System.Collections.Generic;
using TBF.Resources;
using TBF.Rig.Generic;
namespace TBF.Rig.Various.CoverTest
{
public class Factory : IComponentFactory
{
public string ClassName { get { return GetType().Namespace.Substring(8); } }
public override string ToString() { return ClassName; }
public IComponent DummyComponent() { return new CoverTest(); }
public IComponent GetComponent(IComponentCfg cfg, IList<IComponent> components) { return new CoverTest(cfg, components); }
public IComponentCfg DefaultConfig() { return new CoverTestCfg(Strings.Cover, this); }
public IComponentCfg CmpntCfgFromCmpntEntity(Config.Entities.Component component)
{
return ComponentCfgBase.CreateFromDbEntity(CoverTestCfg.Serializer, component, this);
}
}
}