|
|
using | DeviceChangedCallback = std::function< void(std::shared_ptr< DeviceList > removedList, std::shared_ptr< DeviceList > addedList) > |
| |
| void ob::Context::enableMultiDeviceSync |
( |
uint64_t |
repeatInterval | ) |
|
启动多设备同步功能,同步已创建设备的时钟(需要使用的设备支持该功能)
- 参数
-
| repeatInterval | 定时同步时间间隔(单位ms;如果repeatInterval=0,表示只同步一次,不再定时执行) |
| std::shared_ptr< DeviceList > ob::Context::queryDeviceList |
( |
| ) |
|
获取枚举到设备列表
- 返回
- std::shared_ptr<DeviceList>返回设备列表类的指针
| void ob::Context::setDeviceChangedCallback |
( |
DeviceChangedCallback |
callback | ) |
|
| void ob::Context::setLoggerServerity |
( |
OBLogServerity |
log | ) |
|
| void ob::Context::setLoggerToConsole |
( |
OBLogServerity |
log | ) |
|
| void ob::Context::setLoggerToFile |
( |
OBLogServerity |
log, |
|
|
const char * |
fileName |
|
) |
| |
设置日志输出到文件
- 参数
-
| log | 日志的输出等级 |
| fileName | 输出的文件名 |
该类的文档由以下文件生成: