25 lines
786 B
C#
25 lines
786 B
C#
///
|
|
/// Copyright (c) 2017 Sensus Metering Systems
|
|
///
|
|
using System.Collections.Generic;
|
|
using TBF.Rig.Generic;
|
|
|
|
namespace TBF.Rig.TestMethods.GrabImage
|
|
{
|
|
public class Factory : IComponentFactory
|
|
{
|
|
public string ClassName { get { return GetType().Namespace.Substring(8); } }
|
|
|
|
public IComponent DummyComponent() { return new Component(); }
|
|
|
|
public IComponent GetComponent(IComponentCfg cfg, IList<IComponent> components) { return new Component(cfg); }
|
|
|
|
public IComponentCfg DefaultConfig() { return new GrabImageCfg(this, GetType().Namespace.Substring(20)); }
|
|
|
|
public IComponentCfg CmpntCfgFromCmpntEntity(Config.Entities.Component component)
|
|
{
|
|
return ComponentCfgBase.CreateFromDbEntity(GrabImageCfg.Serializer, component, this);
|
|
}
|
|
}
|
|
}
|