35 lines
749 B
C#
35 lines
749 B
C#
///
|
|
/// Copyright (c) 2017 Sensus Metering Systems
|
|
///
|
|
using TBF.BenchControl.Generic;
|
|
|
|
namespace TBF.BenchControl.Network.Camera.RoI
|
|
{
|
|
public class RoICfg : ComponentCfgBase, IChildComponentCfg
|
|
{
|
|
public IComponentCfgCtrl GetControl() { return new RoICfgCtrl(); }
|
|
|
|
///
|
|
/// Serialized parameters
|
|
///
|
|
public string Args;
|
|
|
|
/// Private parameterless constructor invoked by all other (public) constructors
|
|
RoICfg() { }
|
|
|
|
public RoICfg(string name, IComponentFactory factory)
|
|
: this()
|
|
{
|
|
Name = name;
|
|
Factory = factory;
|
|
ParentName = "Camera";
|
|
Args = string.Empty;
|
|
}
|
|
|
|
public string ToString(int i)
|
|
{
|
|
return string.Format("Name={0}, Parent={1}, Args={2}", Name, ParentName, Args);
|
|
}
|
|
}
|
|
}
|