#ifndef HISTORYMSG_H_
#define HISTORYMSG_H_

#define dFireAlarmRecordMsgMax 10000

typedef union{
	unsigned int DU32;
	struct{
		unsigned char B3;
		unsigned char B2;
		unsigned char B1;
		unsigned char B0;
	}DU8;
}TDMixu32u8;

typedef struct{
	unsigned char seconed ;
	unsigned char minite ;
	unsigned char hour ;
	unsigned char day;
	unsigned char month;
	unsigned char year;
	
	unsigned char PortNum;
	unsigned char EpNum;
	
	unsigned char Dtype;
	unsigned char Action;
	unsigned char rev1;
	unsigned char rev2;
}TFireAlarmMsg; 

typedef struct{
	unsigned char seconed ;
	unsigned char minite ;
	unsigned char hour ;
	unsigned char day;
	unsigned char month;
	unsigned char year;
	
	unsigned char PortNum;
	unsigned char EpNum;
	unsigned char ActionType;
	unsigned char State;
	
	unsigned int LinkNum;
}TInterLinkMsg; 

class THistoryMsg{
	public:
		struct{
			unsigned int Count;
			unsigned int LastUpdataIndex;
			TFireAlarmMsg Msg[dFireAlarmRecordMsgMax];
		}FireAlarm;
		
	public:
		THistoryMsg(void){
			FireAlarm.Count=0;
			FireAlarm.LastUpdataIndex=0;
		}
			
};


#endif


