|
@@ -6,7 +6,7 @@
|
|
|
*/
|
|
*/
|
|
|
class SysInfo {
|
|
class SysInfo {
|
|
|
public:
|
|
public:
|
|
|
- SysInfo();
|
|
|
|
|
|
|
+ static SysInfo& instance();
|
|
|
virtual ~SysInfo();
|
|
virtual ~SysInfo();
|
|
|
|
|
|
|
|
// Allows the derived class to perform any initialization process depending on
|
|
// Allows the derived class to perform any initialization process depending on
|
|
@@ -14,6 +14,13 @@ class SysInfo {
|
|
|
virtual void init() = 0;
|
|
virtual void init() = 0;
|
|
|
virtual double cpuLoadAverage() = 0;
|
|
virtual double cpuLoadAverage() = 0;
|
|
|
virtual double memoryUsed() = 0;
|
|
virtual double memoryUsed() = 0;
|
|
|
|
|
+
|
|
|
|
|
+ protected:
|
|
|
|
|
+ explicit SysInfo();
|
|
|
|
|
+
|
|
|
|
|
+ private:
|
|
|
|
|
+ SysInfo(const SysInfo& rhs);
|
|
|
|
|
+ SysInfo& operator=(const SysInfo& rhs);
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
#endif // SYSINFO_H
|
|
#endif // SYSINFO_H
|