eis/inc/opcrcv/CL1L2OPCTransform.h

74 lines
2.1 KiB
C++

/*--------------------------------------------------------------------------------
* 2013/9/2 12:18:10
*--------------------------------------------------------------------------------
* PLANT :
* MODULE :
*
* SHORT DESCRIPTION : OPC方式头文件定义
* FILE : CL1L2OPCTransform.h
* AUTHOR : AUTO GENERATION
*--------------------------------------------------------------------------------
* Copyright (c) rmbai@baosight.com 2012
*--------------------------------------------------------------------------------*/
#ifndef CL1L2OPCTRANSFORM_H_
#define CL1L2OPCTRANSFORM_H_
#ifdef _WIN32
//#include <Winsock2.h>
#else
#include <netinet/in.h>
#endif
#include <common/typedefL1.h>
#include <common/L2Event.h>
#include <log4cplus/LOG.h>
#include <utility/IniProperty.h>
#include <imultilink/EventWatch.h>
#include <glob/ProxyMag.h>
#include <proxy/MessageICE.h>
using namespace log4cplus;
using namespace baosight;
class CL1L2OPCTransform{
public:
CL1L2OPCTransform( bool needprint=true );
virtual ~CL1L2OPCTransform();
bool OPCTransform(const ::iPlature::iMultiLink::MAPTAGVALUE&,
const ::std::string&,
const ::std::string&); // Interface
/**********************************************************************
* 概述: 转发电文到其他模块
* 函数名: DispatchData
* 返回值: void
* 参数列表: 参数类型 取值范围 描述
* eventNo: int
* pcoutdata: char *
*
* 版本历史
* 1.0 2010-09-01 echo_li 增加注释
*
**********************************************************************/
virtual void DispatchData();
bool log_data(int nEventNo, const char* pcin); // log
private:
bool mb_print_log; // print log flag. true=print
//酸洗段跟踪数据
bool Transform_1300(const ::iPlature::iMultiLink::MAPTAGVALUE &tagPairs);
bool log_1300(const char* pcin);
private :
char* pcoutdata;
int eventNo;
MessageICEPrx Ltr_proxy; //Ltr模块代理
MessageICEPrx rdc_proxy; //rdc模块代理
};
#endif