00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
#if !defined(_COM_CONNECTOR_H)
00019
#define _COM_CONNECTOR_H
00020
00021
#if _MSC_VER > 1000
00022
#pragma once
00023
#endif // _MSC_VER > 1000
00024
00025
#include "..\TCPIP_RS232_GW\BernsteinMsg.h"
00026
00027
class CTCPIPConnector;
00028
00033 class CCOMConnector :
public CBernsteinMsg
00034 {
00035
public:
00036
00045
CCOMConnector(
CTCPIPConnector *pParent,
00046
const char *cCOMPort,
00047
const int nBaudRate,
00048
const int nByteSize,
00049
const int nParity,
00050
const int nStopBits );
00051
00052
00054
virtual ~CCOMConnector();
00055
00060
virtual void ReceiveRS232(
const char *pData,
00061
long DataLen );
00062
00063
protected:
00066
CCOMConnector(
void );
00067
00068
CTCPIPConnector *m_pParent;
00069
00070 };
00071
00072
#endif // !defined(AFX_BERNSTEINMSG_H__59CA0FD5_5A85_11D5_8643_0050BAC0C1BE__INCLUDED_)