55 lines
1.0 KiB
C
55 lines
1.0 KiB
C
|
|
#pragma once
|
||
|
|
#include<iostream>
|
||
|
|
#include<common/L2Event.h>
|
||
|
|
#include<zlib/zoneDef.h>
|
||
|
|
#include<zlib/MemTable.hpp>
|
||
|
|
#include<zlib/MemFix.hpp>
|
||
|
|
#include<zlib/MessageDefine.h>
|
||
|
|
#include<glob/ProxyMag.h>
|
||
|
|
#include<proxy/MessageICE.h>
|
||
|
|
#include<sstream>
|
||
|
|
#include<string.h>
|
||
|
|
#include<glob/BinaryTele.h>
|
||
|
|
#include<IceUtil/Thread.h>
|
||
|
|
#include<map>
|
||
|
|
#include<string>
|
||
|
|
#include<list>
|
||
|
|
|
||
|
|
#ifdef _WIN32
|
||
|
|
#include<io.h>
|
||
|
|
#include<fstream>
|
||
|
|
#include<sstream>
|
||
|
|
|
||
|
|
#endif
|
||
|
|
|
||
|
|
using namespace std;
|
||
|
|
class HandleMessage : public IceUtil::Thread
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
HandleMessage(int eventNo,const string& proxy);
|
||
|
|
~HandleMessage(void);
|
||
|
|
virtual void run();
|
||
|
|
|
||
|
|
protected:
|
||
|
|
/*电文转发*/
|
||
|
|
virtual short Proxy(int eventNo, Ice::ByteSeq seq);
|
||
|
|
|
||
|
|
private:
|
||
|
|
|
||
|
|
protected:
|
||
|
|
MessageICEPrx m_proxy;
|
||
|
|
MessageICEPrx proxy_zprx;
|
||
|
|
// map< string,list<float> > mp_tagdat;
|
||
|
|
// map< string ,string > mp_tagid;
|
||
|
|
// MP_ADDR mp_addr;
|
||
|
|
CMemFix<PLC_DATA>* mp_fdacache;
|
||
|
|
int id;
|
||
|
|
int m_eventNo;
|
||
|
|
std::string m_proxyname;
|
||
|
|
private:
|
||
|
|
bool m_isrun;
|
||
|
|
bool m_isfirst;
|
||
|
|
// short m_mintagsize;
|
||
|
|
// short m_maxtagsize;
|
||
|
|
};
|