优化了主页的读取方式
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
#include "pmSysvariable.h"
|
||||
#include "driver.h"
|
||||
|
||||
|
||||
using namespace std;
|
||||
struct PowerData {
|
||||
double voltage;
|
||||
@@ -26,13 +27,6 @@ struct StateData {
|
||||
std::string note;
|
||||
};
|
||||
|
||||
// 前向声明
|
||||
// struct ccuState;
|
||||
// struct disHighVolBusState;
|
||||
// struct disHighAVolBusState;
|
||||
// struct disHighBVolBusState;
|
||||
// struct disLowBusState;
|
||||
|
||||
class SQLiteDB {
|
||||
public:
|
||||
SQLiteDB(const std::string& dbPath);
|
||||
@@ -76,6 +70,7 @@ public:
|
||||
|
||||
// 获取最新的状态数据
|
||||
bool getStateData(StateData &stateData);
|
||||
bool getStateData(StateData &stateData,string &time);
|
||||
|
||||
// 使用函数
|
||||
bool isDatabaseConnected(const std::string& path, const std::string& dbName);
|
||||
|
||||
Reference in New Issue
Block a user