OrbbecSDK  1.0.0
Public 成员函数 | 所有成员列表
ob::DeviceList类 参考

Public 成员函数

 DeviceList (std::unique_ptr< DeviceListImpl > impl)
 
uint32_t deviceCount ()
 获取设备数量 更多...
 
const char * name (uint32_t index)
 获取指定设备的名称 更多...
 
int pid (uint32_t index)
 获取指定设备的pid 更多...
 
int vid (uint32_t index)
 获取指定设备的vid 更多...
 
const char * uid (uint32_t index)
 获取指定设备的uid 更多...
 
std::shared_ptr< Device > getDevice (uint32_t index)
 从设备列表中获取指定设备对象, 更多...
 

详细描述

在文件 Device.hpp 第 378 行定义.

成员函数说明

uint32_t ob::DeviceList::deviceCount ( )

获取设备数量

返回
uint32_t 返回设备的数量
std::shared_ptr< Device > ob::DeviceList::getDevice ( uint32_t  index)

从设备列表中获取指定设备对象,

注意
如果设备有在其他地方被获取创建,重复获取将会抛异常
参数
index要创建设备的索引
返回
std::shared_ptr<Device> 返回设备对象
const char* ob::DeviceList::name ( uint32_t  index)

获取指定设备的名称

参数
index设备索引
返回
int 返回设备的名称
int ob::DeviceList::pid ( uint32_t  index)

获取指定设备的pid

参数
index设备索引
返回
int 返回设备的pid
const char* ob::DeviceList::uid ( uint32_t  index)

获取指定设备的uid

参数
index设备索引
返回
const char * 返回设备的uid
int ob::DeviceList::vid ( uint32_t  index)

获取指定设备的vid

参数
index设备索引
返回
int 返回设备的vid

该类的文档由以下文件生成: