#include <Device.hpp>
ob::DeviceList::DeviceList |
( |
std::unique_ptr< DeviceListImpl > |
impl | ) |
|
ob::DeviceList::~DeviceList |
( |
| ) |
|
|
noexcept |
uint32_t ob::DeviceList::deviceCount |
( |
| ) |
|
获取设备数量
- 返回
- uint32_t 返回设备的数量
DEPRECATED const char* ob::DeviceList::name |
( |
uint32_t |
index | ) |
|
获取指定设备的名称 (废弃接口)
- 参数
-
- 返回
- int 返回设备的名称
int ob::DeviceList::pid |
( |
uint32_t |
index | ) |
|
获取指定设备的pid
- 参数
-
- 返回
- int 返回设备的pid
int ob::DeviceList::vid |
( |
uint32_t |
index | ) |
|
获取指定设备的vid
- 参数
-
- 返回
- int 返回设备的vid
const char* ob::DeviceList::uid |
( |
uint32_t |
index | ) |
|
获取指定设备的uid
- 参数
-
- 返回
- const char * 返回设备的uid
const char* ob::DeviceList::serialNumber |
( |
uint32_t |
index | ) |
|
获取指定设备的序列号
- 参数
-
- 返回
- const char * 返回设备的序列号
std::shared_ptr<Device> ob::DeviceList::getDevice |
( |
uint32_t |
index | ) |
|
从设备列表中获取指定设备对象,
- 注意
- 如果设备有在其他地方被获取创建,重复获取将会抛异常
- 参数
-
- 返回
- std::shared_ptr<Device> 返回设备对象
std::shared_ptr<Device> ob::DeviceList::getDeviceBySN |
( |
const char * |
serialNumber | ) |
|
从设备列表中获取指定设备对象
- 注意
- 如果设备有在其他地方被获取创建,重复获取将会抛异常
- 参数
-
- 返回
- std::shared_ptr<Device> 返回设备对象
std::shared_ptr<Device> ob::DeviceList::getDeviceByUid |
( |
const char * |
uid | ) |
|
从设备列表中获取指定设备对象
- 注意
- 如果设备有在其他地方被获取创建,重复获取将会抛异常
- 参数
-
- 返回
- std::shared_ptr<Device> 返回设备对象
该类的文档由以下文件生成:
- /root/libobsensor/include/libobsensor/hpp/Device.hpp