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.

29 lines
940 B

4 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. //----------------------------------------------------------------------------
  2. // Laser Guard Ltd.
  3. // Copyright � 2000-2002. All Rights Reserved.
  4. // Version 1.0 24/04/2000
  5. // Last modification: 08/10/2003
  6. // Project Intruder Position Indicator
  7. // SUBSYSTEM: Queue for target
  8. // FILE: EventQueue.cpp
  9. // AUTHOR: Chizhevskiy Sergey
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Source file of class CTargetQueue
  13. //----------------------------------------------------------------------------
  14. #include "stdafx.h"
  15. #include "..\LgLib\Version.h"
  16. #include "EventQueue.h"
  17. BOOL CTargetQueue::PostEvent(__int32 type, const double& angle, const double& range, __int32 dv, LPCTSTR pText, LONG nWidth )
  18. {
  19. LARGE_INTEGER time;
  20. SYSTEMTIME st;
  21. ::GetLocalTime(&st);
  22. ::SystemTimeToFileTime(&st, (LPFILETIME)&time);
  23. return CLgQueueP<TARGET,100>::Push( TARGET(time, angle, range, type, dv, pText, nWidth ) );
  24. }