#ifndef DASHBOARDSHM_H #define DASHBOARDSHM_H #include #include #include #include #include #include #pragma pack(1) typedef struct{ int AlarmStatus; char Time[40]; double Value; } YtPointValue; typedef struct{ unsigned char Enabled; int BusAddr; int PointType; int AlarmType; int IsKeyPoint; int AlarmStatus; char Time[40]; double Value; char PointName[240]; YtPointValue pointvaluelist[10]; } YtPoint; typedef struct{ unsigned char Enabled; char DeviceID[40]; char DeviceName[250]; char DeviceTypeID[40]; char DeviceType[240]; char DeviceStatusNote[250]; int DeviceStatus; uint UpTime; YtPoint DevicePoint[256]; } YtDevice; typedef struct{ unsigned char Enabled; char StationID[40]; char StationName[250]; char StationStatusNote[250]; int StationStatus; int DeviceCount; int DeviceAlarm; int DeviceFault; char LastCommTime[40]; YtDevice StationDevice[128]; } YtStation; typedef struct{ int StationCount; YtStation station[16]; } YtStationCount; #pragma pack() #define MEM_PATH "/" #define MEM_PORT 5222 #endif // DASHBOARDSHM_H