45 lines
1.1 KiB
C#
45 lines
1.1 KiB
C#
using Aurora.Api;
|
|
using Aurora.Api.Devices;
|
|
using PropertyTools.DataAnnotations;
|
|
|
|
namespace AuroraOCT
|
|
{
|
|
public enum eOCTType
|
|
{
|
|
IPG_LDD700,
|
|
ETC
|
|
}
|
|
public class OCTConfig : IDeviceConfig
|
|
{
|
|
protected Logger Log = new Logger("OCT");
|
|
[DisplayName("Simulation Mode (this device)")]
|
|
public bool IsSimul { get; set; }
|
|
public IConnConfig ConnConfig { get; set; }
|
|
|
|
[VisibleBy("SocketConfig", false)]
|
|
public SocketConnConfig SocketConfig { get; set; }
|
|
[VisibleBy("SerialConfig", false)]
|
|
public SerialConnConfig SerialConfig { get; set; }
|
|
|
|
|
|
public eOCTType Type { get; set; }
|
|
public OCTConfig()
|
|
{
|
|
SocketConfig = new SocketConnConfig();
|
|
SerialConfig = new SerialConnConfig();
|
|
|
|
switch (Type) {
|
|
case eOCTType.IPG_LDD700:
|
|
SocketConfig.Protocol = SocketProtocol.TCP;
|
|
ConnConfig = SocketConfig;
|
|
break;
|
|
case eOCTType.ETC:
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|