/********************************************************************* * * 文 件: MapCollect.h //跟踪MAP信息 * * 版权所有: Shanghai Baosight Software Co., Ltd. * * 概述://跟踪MAP信息采集 * * 版本历史 * 1.0 2009-04-01 zoufuzhou //TODO请添加本次主要修改内容 * %USER% *********************************************************************/ #ifndef H_Cache_Mag_H #define H_Cache_Mag_H #include #include #include #include #include using namespace log4cplus; using namespace std; struct ADDR{ short mode; short event; short index; short addr; short addrbit; }; class AD_MODE{ public: static const short NORMAL = 0; static const short UNKNOW = 1; static const short BINARY = 2; }; class CacheMag { public: CacheMag(void); public: ~CacheMag(void); public: int CacheTele(int eventNo, const ::Ice::ByteSeq& seq); int ConvertTele(int eventNo, const ::Ice::ByteSeq& seq); private: PLC_DATA m_data; BinaryTele* p_tele; BinaryTele* p_btel; /*map>*/ std::map > mv_tele; }; #endif