Old fashion design for PC-104
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
//----------------------------------------------------------------------------
// Laser Guard Ltd.
// Copyright � 2000-2002. All Rights Reserved.
// Version 1.0 01/01/2000
// Last modification: 08/10/2003
// PROJECT:
// SUBSYSTEM:
// FILE: SocketPTZm.h
// AUTHOR: Sergey Chizhevskiy
// OVERVIEW
// ~~~~~~~~
// Header file of SocketPTZm.h
//----------------------------------------------------------------------------
#ifndef __SOCKET__PTZ__M__H__INCLUDED__
#define __SOCKET__PTZ__M__H__INCLUDED__
#if _MSC_VER > 1000
#pragma once
#endif
#include "Socket.h"
#include "..\..\LgLib\Thread.h"
#include "..\..\LgLib\Comm\RS485.h"
class CDevicePTZm;
class CSocketPTZm : public CSocket, public CLgThread{public: CSocketPTZm(); virtual ~CSocketPTZm();
public: BOOL Create( CSensorArray* pSensorArray, LPCTSTR pPort ); BOOL DeviceAttach( CDevicePTZm *pDevice ); virtual void CommandLoopStart(); virtual void CommandLoopStop(); void Resume();
protected: enum{ MAX_DEVICE = 127 }; CDevicePTZm *m_ppDevice[MAX_DEVICE]; int m_nDeviceCount; int m_nDeviceCurrent;
protected: BOOL m_bRunning; HANDLE m_hEvent; CConnectionRS232 m_Connection;
protected: virtual DWORD ThreadProc();};
#endif
|