240717班级,工业化控制系统,煤矿相关行业,昆仑系统
Kevin12345
2024-11-01 1055d5ce8bea8ed299a1f102e58a1664a0961f6c
Client/黎弘霖/code/Devices_Management_Struct.h
@@ -3,8 +3,8 @@
{
   AD_Req,//娣诲姞璁惧璇锋眰
   AD_Res,//娣诲姞璁惧鍝嶅簲
   DD_Req,//鍏抽棴璁惧璇锋眰
   DD_Res,//鍏抽棴璁惧璇锋眰
   CD_Req,//鍏抽棴璁惧璇锋眰
   CD_Res,//鍏抽棴璁惧璇锋眰
   PD_Req,//鏆傚仠璁惧璇锋眰
   PD_Res,//鏆傚仠璁惧璇锋眰
};
@@ -29,15 +29,22 @@
{
   char Device_Name[32];
   char Device_Status[32];
   char Start_Time[32];
   char Work_Time[32];
   char Manufacturer[100];
   char Devices_Type[32];
   double Longitude;
   double Latitude;
};
struct ADRes
{
   Head head;
   char Device_Name[32];
   char Device_Status[32];
   char Start_Time[32];
   char Work_Time[32];
   char Manufacturer[100];
   char Devices_Type[32];
   double Longitude;
   double Latitude;
   ADPermission per;
   ADRes() {
      head.type = AD_Res;
@@ -47,16 +54,16 @@
};
//鍏抽棴璁惧
struct DDReq
struct CDReq
{
   Head head;
   char Device_Name[32];
   DDReq() {
      head.type = DD_Req;
      head.len = sizeof(DDReq);
   CDReq() {
      head.type = CD_Req;
      head.len = sizeof(CDReq);
   }
};
struct DDPermission
struct CDPermission
{
   char Device_Name[32];
   char Device_Status[32];
@@ -64,15 +71,18 @@
   char Work_Time[32];
   char Manufacturer[100];
   char Devices_Type[32];
   double Longitude;
   double Latitude;
};
struct DDRes
struct CDRes
{
   Head head;
   DDPermission per;
   DDRes() {
      head.type = DD_Res;
      head.len = sizeof(DDRes);
   char Device_Status[32];
   int status;
   CDPermission per;
   CDRes() {
      head.type = CD_Res;
      head.len = sizeof(CDRes);
   }
};
@@ -94,11 +104,15 @@
   char Work_Time[32];
   char Manufacturer[100];
   char Devices_Type[32];
   double Longitude;
   double Latitude;
};
struct PDRes
{
   Head head;
   char Device_Status[32];
   char Work_Time[32];
   int status;
   PDPermission per;
   PDRes() {
      head.type = PD_Res;