mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 01:18:36 +02:00
Add the ability to enumerate supported devices
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#define __DEVICEFINDER_H_
|
||||
|
||||
#include "icsneo/device/device.h"
|
||||
#include "icsneo/device/devicetype.h"
|
||||
#include <vector>
|
||||
#include <memory>
|
||||
|
||||
@@ -10,6 +11,7 @@ namespace icsneo {
|
||||
class DeviceFinder {
|
||||
public:
|
||||
static std::vector<std::shared_ptr<Device>> FindAll();
|
||||
static const std::vector<DeviceType>& GetSupportedDevices();
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
@@ -155,6 +155,7 @@ public:
|
||||
os << type.toString().c_str();
|
||||
return os;
|
||||
}
|
||||
operator devicetype_t() const { return getDeviceType(); }
|
||||
|
||||
private:
|
||||
DeviceType::Enum value;
|
||||
|
||||
Reference in New Issue
Block a user