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.
 
 
 
 
 

87 lines
1.9 KiB

//----------------------------------------------------------------------------
// Laser Guard Ltd.
// Copyright © 2000-2002. All Rights Reserved.
// Version 1.0 24/04/2000
// Last modification: 08/10/2003
// Project Intruder Position Indicator
// SUBSYSTEM: Queue for target
// FILE: EventQueue.h
// AUTHOR: Chizhevskiy Sergey
// OVERVIEW
// ~~~~~~~~
// Header file of class CTargetQueue
//----------------------------------------------------------------------------
#ifndef __SEVENT__QUEUE__H__INCLUDED__
#define __SEVENT__QUEUE__H__INCLUDED__
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "..\lglib\templ.h"
#define MAX_EVENT_TEXT 100
struct TARGET_DESCRIPTION
{
SYSTEMTIME time;
double angle;
double range;
char master;
__int32 device;
LONG width;
};
typedef TARGET_DESCRIPTION* LPTARGET_DESCRIPTION;
struct TARGET
{
LARGE_INTEGER time;
__int32 type;
float angle;
float range;
__int32 device;
LONG width;
TCHAR pError[MAX_EVENT_TEXT];
TARGET();
TARGET(const LARGE_INTEGER&, const double&, const double&, __int32, __int32, LPCTSTR, LONG );// 21/05/2001
};
inline
TARGET::TARGET()
{
time.QuadPart = 0;;
type = 0;
angle = 0;
range = 0;
device = 0;
width = 0;
pError[0] = 0;
}
inline
TARGET::TARGET(const LARGE_INTEGER& tm, const double& ang,
const double& ran, __int32 tp, __int32 dv, LPCTSTR pText, LONG nWidth )
{
time = tm;
angle = ang;
range = ran;
type = tp;
device = dv;
width = nWidth;
if( pText )
strncpy( pError, pText, MAX_EVENT_TEXT );
}
typedef TARGET* LPTARGET;
class CTargetQueue :
public CLgQueueP<TARGET,100>
{
public:
BOOL PostEvent(__int32 type, const double& angle, const double& range, __int32 dv, LPCTSTR pText, LONG pWidth );// By reference23/04/2001
};
#endif