96 lines
2.5 KiB
C++
96 lines
2.5 KiB
C++
/*********************************************************************
|
|
*
|
|
* 文 件: rcv.h rcv接口
|
|
*
|
|
* 版权所有: Shanghai Baosight Software Co., Ltd.
|
|
*
|
|
* 概述:
|
|
* :
|
|
* :
|
|
*
|
|
* 版本历史
|
|
* 1.0 2010-09-01 echo_li 增加注释
|
|
*
|
|
*********************************************************************/
|
|
#ifndef _OPC_RCV_H_
|
|
#define _OPC_RCV_H_
|
|
|
|
#include <pace/P99Component.h>
|
|
#include <iXcom-TCP2/iXcomDefine.h>
|
|
|
|
#include <glob/GlobDefine.h>
|
|
#include <common/L2Event.h>
|
|
#include <common/typedefL1.h>
|
|
#include <common/Macro.h>
|
|
|
|
#include <glob/ProxyMag.h>
|
|
#include <proxy/MessageICE.h>
|
|
#include <glob/BinaryTele.h>
|
|
|
|
|
|
|
|
using namespace std;
|
|
using namespace iPlature;
|
|
|
|
/*********************************************************************
|
|
* 类 名: rcv
|
|
* 版权所有: Shanghai Baosight Software Co., Ltd.
|
|
* 类 职 责:
|
|
* :
|
|
* :
|
|
* 版本历史
|
|
* 1.0 2010-09-01 echo_li 增加注释
|
|
*
|
|
*********************************************************************/
|
|
class rcv:public P99Component
|
|
{
|
|
public:
|
|
rcv(){};
|
|
virtual ~rcv();
|
|
|
|
/**********************************************************************
|
|
* 概述: 进行初始化工作
|
|
* 函数名: PostInitCall
|
|
* 返回值: void
|
|
* 参数列表: 参数类型 取值范围 描述
|
|
*
|
|
* 版本历史
|
|
* 1.0 2010-09-01 echo_li 增加注释
|
|
*
|
|
**********************************************************************/
|
|
virtual void PostInitCall();
|
|
/**********************************************************************
|
|
* 概述: 接收电文数据
|
|
* 函数名: HandleMessage
|
|
* 返回值: Ice::ByteSeq
|
|
* 参数列表: 参数类型 取值范围 描述
|
|
* ParamBuffer: const ByteSeq &
|
|
*
|
|
* 版本历史
|
|
* 1.0 2010-09-01 echo_li 增加注释
|
|
*
|
|
**********************************************************************/
|
|
virtual ByteSeq HandleMessage(const ByteSeq& ParamBuffer);
|
|
/**********************************************************************
|
|
* 概述: 转发电文到其他模块
|
|
* 函数名: DispatchData
|
|
* 返回值: void
|
|
* 参数列表: 参数类型 取值范围 描述
|
|
* eventNo: int
|
|
* pcoutdata: char *
|
|
*
|
|
* 版本历史
|
|
* 1.0 2010-09-01 echo_li 增加注释
|
|
*
|
|
**********************************************************************/
|
|
virtual void MemoryData(int eventNo,char* data,int length);
|
|
private:
|
|
|
|
MessageICEPrx zcache_proxy;
|
|
MessageICEPrx ztrk_proxy;
|
|
MessageICEPrx zmtr_proxy;
|
|
BinaryTele* p_tele;
|
|
BinaryTele* p_btel;
|
|
};
|
|
#endif
|