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.

79 lines
2.0 KiB

4 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. //----------------------------------------------------------------------------
  2. // Laser Guard Ltd.
  3. // Copyright � 2000-2002. All Rights Reserved.
  4. // Version 1.0 01/01/2000
  5. // Last modification: 08/10/2003
  6. // PROJECT:
  7. // SUBSYSTEM:
  8. // FILE: EventPrinter.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of EventPrinter.h
  13. //----------------------------------------------------------------------------
  14. // EventPrinter.h: interface for the CEventPrinter class.
  15. //
  16. //////////////////////////////////////////////////////////////////////
  17. #if !defined(AFX_EVENTPRINTER_H__15636C24_889C_11D4_A1F0_0010B55CB330__INCLUDED_)
  18. #define AFX_EVENTPRINTER_H__15636C24_889C_11D4_A1F0_0010B55CB330__INCLUDED_
  19. #include "..\DLIB\SensorArray.h" // Added by ClassView
  20. #if _MSC_VER > 1000
  21. #pragma once
  22. #endif // _MSC_VER > 1000
  23. class CEventPrinter
  24. {
  25. public:
  26. BOOL PageEnd();
  27. BOOL Create( CString Driver, CString Device );
  28. void SetSensorArray( CSensorArray *pSensorArray );
  29. BOOL PrintEvent(EVENT &event);
  30. BOOL PrintFileStart( LPSTR pFileName, EVENTFILTER filter );
  31. BOOL PrintFileAbort();
  32. BOOL IsBusy();
  33. BOOL IsPrintFile();
  34. CEventPrinter();
  35. virtual ~CEventPrinter();
  36. private:
  37. friend static DWORD CALLBACK ThreadProcEventPrinter( LPVOID lpvParam )
  38. { return ((CEventPrinter*)lpvParam)->ThreadProc(); }
  39. DWORD ThreadProc();
  40. private:
  41. BOOL OutLine( LPEVENT pEvent );
  42. CEventQueue m_EventQueue;
  43. CEventQueue m_CommandQueue;
  44. CDC m_PrintDC;
  45. CSensorArray* m_pSensorArray;
  46. HANDLE m_hEventQuit;
  47. HANDLE m_hEventCommand;
  48. HANDLE m_hEventBusy;
  49. HANDLE m_hEventFile;
  50. HANDLE m_hThread;
  51. CString m_Driver;
  52. CString m_Device;
  53. // CHAR m_pFileName[MAX_PATH];
  54. // CFile m_File;
  55. HANDLE m_hFile;
  56. // BOOL m_bFileInPrint;
  57. // BOOL m_bFileSuspend;
  58. // BOOL m_bFileAbort;
  59. EVENTFILTER m_Filter;
  60. BOOL m_bDocStart;
  61. BOOL m_bPageStart;
  62. int m_nLineCount;
  63. int m_nFontHeight;
  64. int m_nFontMargin;
  65. };
  66. #endif // !defined(AFX_EVENTPRINTER_H__15636C24_889C_11D4_A1F0_0010B55CB330__INCLUDED_)