GetInstance
类说明
DeviceManager接口在DeviceManager.h中定义,当前为内部使用类,请用户不要使用。
父主题: DeviceManager
~DeviceManager
函数功能
DeviceManager类的默认析构函数。
函数原型
~DeviceManager();
父主题: DeviceManager
GetInstance
函数功能
单例模式获取设备管理器。
函数原型
static DeviceManager *DeviceManager::GetInstance();
返回参数说明
| 数据结构 | 说明 |
|---|---|
| DeviceManager | 设备管理器。 |
父主题: DeviceManager
InitDevices
函数功能
初始化所有设备。
函数原型
APP_ERROR DeviceManager::InitDevices(std::string configFilePath = "");
参数说明
| 参数名 | 输入/输出 | 说明 |
|---|---|---|
| configFilePath | 输入 | 配置文件路径。 |
返回参数说明
| 数据结构 | 说明 |
|---|---|
| APP_ERROR | 程序执行返回的错误码,请参考APP_ERROR说明。 |
父主题: DeviceManager
GetDevicesCount
函数功能
获取设备数目。
函数原型
APP_ERROR DeviceManager::GetDevicesCount(uint32_t& deviceCount);
参数说明
| 参数名 | 输入/输出 | 说明 |
|---|---|---|
| deviceCount | 输出 | 设备数目。 |
返回参数说明
| 数据结构 | 说明 |
|---|---|
| APP_ERROR | 程序执行返回的错误码,请参考APP_ERROR说明。 |
父主题: DeviceManager
GetCurrentDevice
函数功能
获取最近使用的设备。
函数原型
APP_ERROR DeviceManager::GetCurrentDevice(DeviceContext& device);
参数说明
| 参数名 | 输入/输出 | 说明 |
|---|---|---|
| device | 输出 | 获取最近运行的设备。 |
返回参数说明
| 数据结构 | 说明 |
|---|---|
| APP_ERROR | 程序执行返回的错误码,请参考APP_ERROR说明。 |
父主题: DeviceManager
在线提单