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.
51 lines
1.4 KiB
51 lines
1.4 KiB
//----------------------------------------------------------------------------
|
|
// Laser Guard Ltd.
|
|
// Copyright © 2000-2002. All Rights Reserved.
|
|
// Version 1.0 01/01/2000
|
|
// Last modification: 08/10/2003
|
|
// PROJECT:
|
|
// SUBSYSTEM:
|
|
// FILE: LgNetSocketMigvanPTZ.h
|
|
// AUTHOR: Sergey Chizhevskiy
|
|
// OVERVIEW
|
|
// ~~~~~~~~
|
|
// Header file of LgNetSocketMigvanPTZ.h
|
|
//----------------------------------------------------------------------------
|
|
#ifndef __LG__NET__SOCKET__MIGVAN__PTZ__H__INCLUDED__
|
|
#define __LG__NET__SOCKET__MIGVAN__PTZ__H__INCLUDED__
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif
|
|
|
|
#include "LgNetSocket.h"
|
|
#include "..\Comm\RS485.h"
|
|
#include "..\Comm\ProtPTZm.h"
|
|
|
|
class CLgNetSocketMigvanPTZ : public CLgNetSocket
|
|
{
|
|
public:
|
|
CLgNetSocketMigvanPTZ();
|
|
virtual ~CLgNetSocketMigvanPTZ();
|
|
|
|
public:
|
|
BOOL Create( LPCTSTR pCommPort, BOOL bDemo );
|
|
void Destroy();
|
|
|
|
public:
|
|
// virtual BOOL AttachDevice( CLgNetSocketDevice* );
|
|
// virtual BOOL DetachDevice( CLgNetSocketDevice* );
|
|
virtual BOOL Link( CLgLink<CLgNetSocketDevice,CLgNetSocket>* );
|
|
virtual BOOL Unlink( CLgLink<CLgNetSocketDevice,CLgNetSocket>* );
|
|
|
|
private:
|
|
// CConnectionRS485 m_Connection;
|
|
CConnectionRS232 m_Connection;
|
|
CProtocolMigvanPTZ m_Protocol;
|
|
|
|
private:
|
|
enum { MIN_ADDRESS = 1, MAX_ADDRESS = 254 };
|
|
BYTE m_pAddressArray[ MAX_ADDRESS + 1 ];
|
|
};
|
|
|
|
#endif
|