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.
73 lines
1.5 KiB
73 lines
1.5 KiB
//----------------------------------------------------------------------------
|
|
// Laser Guard Ltd.
|
|
// Copyright © 2000-2002. All Rights Reserved.
|
|
// Version 1.0 01/01/2000
|
|
// Last modification: 08/10/2003
|
|
// PROJECT:
|
|
// SUBSYSTEM:
|
|
// FILE: DPelco.h
|
|
// AUTHOR: Sergey Chizhevskiy
|
|
// OVERVIEW
|
|
// ~~~~~~~~
|
|
// Header file of DPelco.h
|
|
//----------------------------------------------------------------------------
|
|
#ifndef __PTZ__DEVICE__PELCO__H__INCLUDED__
|
|
#define __PTZ__DEVICE__PELCO__H__INCLUDED__
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif
|
|
|
|
#ifdef __BORLANDC__
|
|
#include "..\LgLib\Device\LgDevPTZ.h"
|
|
#include "..\LgLib\Comm\PTZPelco.h"
|
|
#include "..\LgLib\Device\DPelco~1.h"
|
|
#else
|
|
#include "LgDevPTZ.h"
|
|
#include "..\Comm\PTZPelco.h"
|
|
#include "DPelcoBase.h"
|
|
#endif
|
|
|
|
|
|
|
|
class CLgDevicePTZPelco: public CLgDevicePTZ, public CLgDevicePTZBasePelco {
|
|
public:
|
|
CLgDevicePTZPelco();
|
|
virtual ~CLgDevicePTZPelco();
|
|
|
|
public:
|
|
virtual BOOL WriteProc( void *pProtocol, PLONG pTimeout );
|
|
virtual BOOL ReadProc( void *pProtocol, LONG lTimeout, BOOL bLastChance );
|
|
|
|
public:
|
|
BOOL CmdInit();
|
|
|
|
protected:
|
|
virtual void OnEvtInit() = 0;
|
|
|
|
BOOL LoadUserSettings( void );
|
|
public:
|
|
enum
|
|
{
|
|
CMD_INIT = CMD_DEVICE_PTZ + 1,
|
|
EVT_INIT = EVT_DEVICE_PTZ + 1,
|
|
};
|
|
|
|
private:
|
|
INT m_nMode;
|
|
INT m_nStage;
|
|
INT m_nNoReplyCount;
|
|
INT m_nNotInPositionCount;
|
|
DWORD m_dQDelay;
|
|
BOOL m_bPause;
|
|
|
|
private:
|
|
PTZ_POSITION m_TempPosition;
|
|
PTZ_PELCO::PTZ_STATE m_PtzState;
|
|
INT m_nResponseSize;
|
|
|
|
private:
|
|
void OnPerformCmd();
|
|
};
|
|
|
|
#endif
|