[성현모] DeviceManager, Factory 리팩토링, DIO, Scanner 추가
This commit is contained in:
23
eCIAv2.Library/Devices/Scanner/Cognex.cs
Normal file
23
eCIAv2.Library/Devices/Scanner/Cognex.cs
Normal file
@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace eCIAv2.Library.Devices.Scanner
|
||||
{
|
||||
public class Cognex : IScanner
|
||||
{
|
||||
public string DeviceName { get; set; } = string.Empty;
|
||||
|
||||
public Action<string> OnRecvData()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public string Trigger()
|
||||
{
|
||||
return DeviceName;
|
||||
}
|
||||
}
|
||||
}
|
||||
14
eCIAv2.Library/Devices/Scanner/IScanner.cs
Normal file
14
eCIAv2.Library/Devices/Scanner/IScanner.cs
Normal file
@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace eCIAv2.Library.Devices.Scanner
|
||||
{
|
||||
public interface IScanner : IDevice
|
||||
{
|
||||
public string Trigger();
|
||||
public Action<string> OnRecvData();
|
||||
}
|
||||
}
|
||||
23
eCIAv2.Library/Devices/Scanner/Zebra.cs
Normal file
23
eCIAv2.Library/Devices/Scanner/Zebra.cs
Normal file
@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace eCIAv2.Library.Devices.Scanner
|
||||
{
|
||||
public class Zebra : IScanner
|
||||
{
|
||||
public string DeviceName { get; set; } = string.Empty;
|
||||
|
||||
public Action<string> OnRecvData()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public string Trigger()
|
||||
{
|
||||
return DeviceName;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user