sysinfo.h 363 B

1234567891011121314151617181920
  1. #ifndef SYSINFO_H
  2. #define SYSINFO_H
  3. /**
  4. * @brief The SysInfo 接口
  5. */
  6. class SysInfo {
  7. public:
  8. SysInfo();
  9. virtual ~SysInfo();
  10. // Allows the derived class to perform any initialization process depending on
  11. // the OS platform
  12. virtual void init() = 0;
  13. virtual double cpuLoadAverage() = 0;
  14. virtual double memoryUsed() = 0;
  15. };
  16. #endif // SYSINFO_H