增加了次级配电状态,设备状态表,设备上电指令的订阅\解析\发布等功能
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
#include "json/json.h"
|
||||
#include "ccuUdpMsg.h"
|
||||
#include "pmSysvariable.h"
|
||||
#include "driver.h"
|
||||
|
||||
using namespace std;
|
||||
struct PowerData {
|
||||
@@ -26,11 +27,11 @@ struct StateData {
|
||||
};
|
||||
|
||||
// 前向声明
|
||||
struct ccuState;
|
||||
struct disHighVolBusState;
|
||||
struct disHighAVolBusState;
|
||||
struct disHighBVolBusState;
|
||||
struct disLowBusState;
|
||||
// struct ccuState;
|
||||
// struct disHighVolBusState;
|
||||
// struct disHighAVolBusState;
|
||||
// struct disHighBVolBusState;
|
||||
// struct disLowBusState;
|
||||
|
||||
class SQLiteDB {
|
||||
public:
|
||||
@@ -47,6 +48,7 @@ public:
|
||||
bool createPowerDataTables();
|
||||
bool createStateTables();
|
||||
bool createDisCcuSysTables();
|
||||
bool createDriversTables(string tableName);
|
||||
|
||||
bool clearPowerData();
|
||||
bool clearStateData();
|
||||
@@ -55,6 +57,7 @@ public:
|
||||
bool insertPowerData(const PowerData& powerData);
|
||||
bool insertStateData(StateData stateData,bool filter=true);
|
||||
|
||||
|
||||
bool insertCcuData(ccuState s);
|
||||
bool insertDisHighVolBusData(disHighVolBusState s);
|
||||
bool insertDisHighAVolBusData(disHighAVolBusState s);
|
||||
@@ -67,6 +70,8 @@ public:
|
||||
bool insertDisSysCmd(disHighBVolBusCmd cmd);
|
||||
bool insertDisSysCmd(disLowBusCmd cmd);
|
||||
|
||||
bool insertDriverTables(DriverTable driverTable,string tableName);
|
||||
|
||||
bool insertDisCcuData(pmState s,bool filter=true);//由于信息同步原因,暂时不使用该函数
|
||||
|
||||
// 获取最新的状态数据
|
||||
|
||||
Reference in New Issue
Block a user