tpSystemInfo类
ExternUtils
2025-07-05
基础信息
头文件: | include <tpSystemInfo.h> |
---|---|
Cmake: | None |
发布版本: | V0.1.0 |
继承类: | |
派生类: |
Public 成员函数
成员函数说明
tpSystemInfo::tpSystemInfo()
暂无注释...
tpSystemInfo::~tpSystemInfo()
暂无注释...
tpString tpSystemInfo::getMachineName()
点击查看...
获取机器名称
返回值:
返回机器名称
int tpSystemInfo::setMachineName(tpString &name)
点击查看...
获取机器名称
返回值:
返回机器名称
tpString tpSystemInfo::getSystemName()
点击查看...
获取系统名称
返回值:
返回系统名称
tpString tpSystemInfo::getSystemVersion()
点击查看...
获取系统版本
返回值:
返回系统版本
tpString tpSystemInfo::getBoardVendor()
点击查看...
获取主板厂商
返回值:
返回主板厂商
tpString tpSystemInfo::getBoardName()
点击查看...
获取主板名字
返回值:
返回主板名字
tpString tpSystemInfo::getBoardVersion()
点击查看...
获取主板版本
返回值:
返回主板版本
tpString tpSystemInfo::getBoardSerial()
点击查看...
获取主板序列号
返回值:
返回主板序列号
tpString tpSystemInfo::getBiosData()
点击查看...
获取BIOS日期
返回值:
返回BIOS日期
tpString tpSystemInfo::getBiosVendor()
点击查看...
获取BIOS厂商
返回值:
返回BIOS厂商
tpString tpSystemInfo::getBiosVersion()
点击查看...
获取BIOS版本
返回值:
返回BIOS版本
tpString tpSystemInfo::getProductName()
点击查看...
获取产品名称
返回值:
返回产品名称
tpString tpSystemInfo::getProductFamily()
点击查看...
获取产品
返回值:
返回产品
tpString tpSystemInfo::getProductSerial()
点击查看...
获取产品序列号
返回值:
返回产品序列号
tpString tpSystemInfo::getProductSku()
点击查看...
获取产品库存单位
返回值:
返回产品库存单位
tpString tpSystemInfo::getProductUuid()
点击查看...
获取产品uuid
返回值:
返回产品uuid
tpString tpSystemInfo::getProductVersion()
点击查看...
获取产品版本号
返回值:
返回产品版本号
tpList< tpCpuCore * > tpSystemInfo::getCpuCoreInfo(const tpString &name="Default")
点击查看...
获取单个cpu每个核心信息列表(cpu名称,主频,()
返回值:
返回列表
tpList< tpCpuCore * > tpSystemInfo::getCpuCoreState(const tpString &name="Default")
点击查看...
cpu使用率(会返回每个核心的状态,如需要全部的则只取第一项)
返回值:
返回列表
tpList< tpCpu * > tpSystemInfo::getCpuInfo()
点击查看...
获取cpu信息列表(由于当前仅支持单物理CPU,所以只有一项)
返回值:
返回列表
tpList< tpGpu * > tpSystemInfo::getGpuInfo()
点击查看...
gpu(还未实现)
返回值:
linebreak
tpList< tpDisk * > tpSystemInfo::getDiskInfo()
点击查看...
获取磁盘信息列表
返回值:
返回列表
tpMemory tpSystemInfo::getMemoryInfo()
点击查看...
获取内存信息(不考虑物理上多内存颗粒的情况)
返回值:
返回内存信息
double tpSystemInfo::getMemoryUsage()
点击查看...
获取内存使用率
返回值:
返回内存使用率
tpList< tpNetworkInfo * > tpSystemInfo::getNetworkInfo()
点击查看...
获取网卡信息列表
返回值:
返回列表