// Protocol.h: interface for the CProtocol class. // ////////////////////////////////////////////////////////////////////// #if !defined(AFX_PROTOCOL_H_INCLUDED_) #define AFX_PROTOCOL_H_INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 class CCommAsyn; class CProtocol { public: virtual BOOL InitParam(PPORTPARAM pPortParam,CCommAsyn*pComm); virtual int WorkMain(SETBASEPARAM SetBasePara, int nDataLen, char chMsg[80]) =0; virtual int WriteCommand(SETBASEPARAM SetBasePara, double dbData, int nDataLen) = 0; CProtocol(); virtual ~CProtocol(); protected: CCommAsyn* m_pComm; int WriteMessage(BYTE* pBuf, int len); int ReadMessage(BYTE *pBuf, int len); public: REQUESTWRPARAM m_RequestWrParam; }; #endif // !defined(AFX_PROTOCOL_H_INCLUDED_)