rpos::features::system_resource::DeviceInfo类

设备信息类

头文件

rpos/features/system_resource/device_info.h

适用于

  • Slamware
  • Mapper

构造器

/**
* 默认构造函数。
*/
DeviceInfo();  
/**
* 拷贝构造函数。
*/
DeviceInfo(const DeviceInfo&);  

运算符

/**
* 赋值运算符。
*/
DeviceInfo& operator=(const DeviceInfo&);  

方法

/**
* 获取设备ID。
*/
std::string deviceID() const;  
/**
* 获取设备ID引用。
*/
std::string& deviceID();  
/**
* 获取制造商ID。
*/
int manufacturerID() const;  

/**
* 获取制造商ID引用。
*/
int& manufacturerID();  
/**
* 获取制造商名称。
*/
std::string manufacturerName() const;    

/**
* 获取制造商名称引用。
*/
std::string& manufacturerName();  

/**
* 获取设备型号ID。
*/  
int modelID() const;  

/**
* 获取设备型号ID引用。
*/
int& modelID();  
/**
* 获取设备型号名称。
*/
std::string modelName() const;  
/**
* 获取设备型号名称引用。  
*/
std::string& modelName();  

/**
* 获取硬件版本号。
*/
std::string hardwareVersion() const;  
/**
* 获取硬件版本号引用。
*/
std::string& hardwareVersion();  
/**
* 获取软件版本号。
*/
std::string softwareVersion() const; 
/**
* 获取软件版本号引用。
*/
std::string& softwareVersion();