OrbbecSDK  1.5.7
OrbbecSDK: Software-Development-Kit for Orbbec 3D-Sensor devices
Public 成员函数 | 所有成员列表
ob::DeviceList类 参考

#include <Device.hpp>

Public 成员函数

 DeviceList (std::unique_ptr< DeviceListImpl > impl)
 
 ~DeviceList () noexcept
 
uint32_t deviceCount ()
 获取设备数量 更多...
 
DEPRECATED 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 更多...
 
const char * serialNumber (uint32_t index)
 获取指定设备的序列号 更多...
 
std::shared_ptr< DevicegetDevice (uint32_t index)
 从设备列表中获取指定设备对象, 更多...
 
std::shared_ptr< DevicegetDeviceBySN (const char *serialNumber)
 从设备列表中获取指定设备对象 更多...
 
std::shared_ptr< DevicegetDeviceByUid (const char *uid)
 从设备列表中获取指定设备对象 更多...
 

详细描述

在文件 Device.hpp894 行定义.

构造及析构函数说明

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)

获取指定设备的名称 (废弃接口)

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

获取指定设备的pid

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

获取指定设备的vid

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

获取指定设备的uid

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

获取指定设备的序列号

参数
index设备索引
返回
const char * 返回设备的序列号
std::shared_ptr<Device> ob::DeviceList::getDevice ( uint32_t  index)

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

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

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

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

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

注意
如果设备有在其他地方被获取创建,重复获取将会抛异常
参数
uid要创建设备的uid
返回
std::shared_ptr<Device> 返回设备对象

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