74 lines
2.1 KiB
C
74 lines
2.1 KiB
C
|
|
/*--------------------------------------------------------------------------------
|
|||
|
|
* 2013/9/2 12:18:10
|
|||
|
|
*--------------------------------------------------------------------------------
|
|||
|
|
* PLANT :
|
|||
|
|
* MODULE :
|
|||
|
|
*
|
|||
|
|
* SHORT DESCRIPTION : OPC<EFBFBD><EFBFBD>ʽͷ<EFBFBD>ļ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
* 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
|
|||
|
|
|
|||
|
|
/**********************************************************************
|
|||
|
|
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD>: ת<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ĵ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ģ<EFBFBD><EFBFBD>
|
|||
|
|
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> DispatchData
|
|||
|
|
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֵ<EFBFBD><EFBFBD> void
|
|||
|
|
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>б<EFBFBD>: <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ȡֵ<EFBFBD><EFBFBD>Χ <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
* eventNo: int
|
|||
|
|
* pcoutdata: char *
|
|||
|
|
*
|
|||
|
|
* <EFBFBD>汾<EFBFBD><EFBFBD>ʷ
|
|||
|
|
* 1.0 2010-09-01 echo_li <EFBFBD><EFBFBD><EFBFBD><EFBFBD>ע<EFBFBD><EFBFBD>
|
|||
|
|
*
|
|||
|
|
**********************************************************************/
|
|||
|
|
virtual void DispatchData();
|
|||
|
|
|
|||
|
|
bool log_data(int nEventNo, const char* pcin); // log
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
bool mb_print_log; // print log flag. true=print
|
|||
|
|
//<2F><>ϴ<EFBFBD>θ<EFBFBD><CEB8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
bool Transform_1300(const ::iPlature::iMultiLink::MAPTAGVALUE &tagPairs);
|
|||
|
|
bool log_1300(const char* pcin);
|
|||
|
|
private :
|
|||
|
|
char* pcoutdata;
|
|||
|
|
int eventNo;
|
|||
|
|
MessageICEPrx Ltr_proxy; //Ltrģ<72><C4A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
MessageICEPrx rdc_proxy; //rdcģ<63><C4A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
};
|
|||
|
|
#endif
|
|||
|
|
|