| 1234567891011121314151617181920 |
- #ifndef SYSINFO_H
- #define SYSINFO_H
- /**
- * @brief The SysInfo 接口
- */
- class SysInfo {
- public:
- SysInfo();
- virtual ~SysInfo();
- // Allows the derived class to perform any initialization process depending on
- // the OS platform
- virtual void init() = 0;
- virtual double cpuLoadAverage() = 0;
- virtual double memoryUsed() = 0;
- };
- #endif // SYSINFO_H
|