【新增】设备信息获取接口

This commit is contained in:
wdp
2025-01-20 22:30:11 +08:00
parent 18d649a636
commit df1f4b6a69
3 changed files with 306 additions and 0 deletions

19
src/util/Singleton.h Normal file
View File

@@ -0,0 +1,19 @@
#ifndef SINGLETON_H
#define SINGLETON_H
template <typename T>
class Singleton {
public:
static T& GetInstance() {
static T instance;
return instance;
}
Singleton(const Singleton&) = delete;
Singleton& operator=(const Singleton&) = delete;
protected:
Singleton() {}
~Singleton() {}
};
#endif