27 lines
896 B
C#
27 lines
896 B
C#
///
|
|
/// Copyright (c) 2017 Sensus Metering Systems
|
|
///
|
|
using System.Collections.Generic;
|
|
using TBF.BenchControl.Generic;
|
|
|
|
namespace TBF.BenchControl.Output.Printers.Enhanced
|
|
{
|
|
public class FactorySingle : IComponentFactory
|
|
{
|
|
public string ClassName { get { return this.GetType().Namespace.Substring(17) + ".Single"; } }
|
|
|
|
public void ResetStaticProperties() { Printer.ResetStaticProperties(); }
|
|
|
|
public IComponent DummyComponent() { return new Printer(); }
|
|
|
|
public IComponent GetComponent(IComponentCfg cfg, IList<IComponent> components) { return new Printer(cfg); }
|
|
|
|
public IComponentCfg DefaultConfig() { return new PrinterCfg("Printer.Enhanced.Single", this, Config.Entities.MetersKind.Single); }
|
|
|
|
public IComponentCfg CmpntCfgFromCmpntEntity(Config.Entities.Component component)
|
|
{
|
|
return ComponentCfgBase.CreateFromDbEntity(typeof(PrinterCfg), component, this);
|
|
}
|
|
}
|
|
}
|