30 lines
1.0 KiB
C#
30 lines
1.0 KiB
C#
///
|
|
/// Copyright (c) 2017 Sensus Metering Systems
|
|
///
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using TBF.BenchControl.Generic;
|
|
|
|
namespace TBF.BenchControl.Output.FileWriters.Xml
|
|
{
|
|
public class FactoryHeatMeters : IComponentFactory
|
|
{
|
|
public string ClassName { get { return this.GetType().Namespace.Substring(17) + ".HeatMeters"; } }
|
|
|
|
public void ResetStaticProperties() { Writer.ResetStaticProperties(); }
|
|
|
|
public IComponent DummyComponent() { return new Writer(); }
|
|
|
|
public IComponent GetComponent(IComponentCfg cfg, IList<IComponent> components) { return new Writer(cfg); }
|
|
|
|
public IComponentCfg DefaultConfig() { return new WriterCfg("FileWriter.Xml.HeatMeters", this, Config.Entities.MetersKind.HeatMeter); }
|
|
|
|
public IComponentCfg CmpntCfgFromCmpntEntity(Config.Entities.Component component)
|
|
{
|
|
IComponentCfg cfg = ComponentCfgBase.CreateFromDbEntity(typeof(WriterCfg), component, this);
|
|
(cfg as WriterCfg).MetersKind = Config.Entities.MetersKind.HeatMeter;
|
|
return cfg;
|
|
}
|
|
}
|
|
}
|