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.
96 lines
2.3 KiB
96 lines
2.3 KiB
//----------------------------------------------------------------------------
|
|
// Laser Guard Ltd.
|
|
// Copyright © 2000-2002. All Rights Reserved.
|
|
// Version 1.0 01/01/2000
|
|
// Last modification: 08/10/2003
|
|
// PROJECT:
|
|
// SUBSYSTEM:
|
|
// FILE: DeviceLGS.cpp
|
|
// AUTHOR: Sergey Chizhevskiy
|
|
// OVERVIEW
|
|
// ~~~~~~~~
|
|
// Source file of DeviceLGS.cpp
|
|
//----------------------------------------------------------------------------
|
|
// DeviceLGS.cpp: implementation of the CDeviceLGS class.
|
|
//
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
#include "stdafx.h"
|
|
//#include "chicago.h"
|
|
#include "DeviceLGS.h"
|
|
#include "..\..\LgLib\Version.h"
|
|
|
|
#ifdef _DEBUG
|
|
#undef THIS_FILE
|
|
static char THIS_FILE[]=__FILE__;
|
|
#define new DEBUG_NEW
|
|
#endif
|
|
|
|
//////////////////////////////////////////////////////////////////////
|
|
// Construction/Destruction
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
CDeviceLGS::CDeviceLGS()
|
|
{
|
|
m_pSensor = NULL;
|
|
|
|
LGLOG( LOG_LEVEL_MEDIUM, LOG_TYPE_INFO, this, _T("CDeviceLGS::CDeviceLGS") );
|
|
}
|
|
|
|
CDeviceLGS::~CDeviceLGS()
|
|
{
|
|
LGLOG( LOG_LEVEL_MEDIUM, LOG_TYPE_INFO, this, _T("CDeviceLGS::~CDeviceLGS") );
|
|
}
|
|
|
|
BOOL CDeviceLGS::LGS_PostReset()
|
|
{
|
|
LGSEVENT event;
|
|
event.id = LGSC_RESET;
|
|
return m_Queue.Push( event );
|
|
}
|
|
|
|
BOOL CDeviceLGS::LGS_PostRestart()
|
|
{
|
|
LGSEVENT event;
|
|
event.id = LGSC_RESTART;
|
|
return m_Queue.Push( event );
|
|
}
|
|
|
|
BOOL CDeviceLGS::LGS_PostEnable( BOOL bEnable )
|
|
{
|
|
LGSEVENT event;
|
|
event.id = LGSC_ENABLE;
|
|
event.bEnable = bEnable;
|
|
return m_Queue.Push( event );
|
|
}
|
|
|
|
BOOL CDeviceLGS::LGS_PostGetHiddenZones()
|
|
{
|
|
LGSEVENT event;
|
|
event.id = LGSC_GET_HZ;
|
|
return m_Queue.Push( event );
|
|
}
|
|
|
|
BOOL CDeviceLGS::LGS_PostSetHiddenZones( CLgDeviceLGS::LGS_HZ_ARRAY& HzArray )
|
|
{
|
|
LGSEVENT event;
|
|
event.id = LGSC_SET_HZ;
|
|
event.HzArray = HzArray;
|
|
return m_Queue.Push( event );
|
|
}
|
|
|
|
BOOL CDeviceLGS::LGS_PostGetCalibrationTable( INT nDevice )
|
|
{
|
|
LGSEVENT event;
|
|
event.id = LGSC_GET_CT;
|
|
event.CtTable.nDevice = nDevice;
|
|
return m_Queue.Push( event );
|
|
}
|
|
|
|
BOOL CDeviceLGS::LGS_PostSetCalibrationTable( CLgDeviceLGS::LGS_CALIBRATION_TABLE& cTable )
|
|
{
|
|
LGSEVENT event;
|
|
event.id = LGSC_SET_CT;
|
|
event.CtTable = cTable;
|
|
return m_Queue.Push( event );
|
|
}
|