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.

70 lines
1.8 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: 05/11/2003
  6. // PROJECT:
  7. // SUBSYSTEM:
  8. // FILE: LgReport.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of LgReport.h
  13. //----------------------------------------------------------------------------
  14. #ifndef __LG__REPORT__H__INCLUDED__
  15. #define __LG__REPORT__H__INCLUDED__
  16. #ifdef LGREPORT_EXPORTS
  17. #define LGREPORT_API __declspec(dllexport)
  18. #else
  19. #define LGREPORT_API __declspec(dllimport)
  20. #endif
  21. #include "..\LgImageDIB.h"
  22. #include "..\LgImageJPEG.h"
  23. class LGREPORT_API CLgReportInterface
  24. {
  25. public:
  26. virtual BOOL OnCreateSite() = 0;
  27. virtual BOOL OnAskForDeleteOld() = 0;
  28. };
  29. class LGREPORT_API CLgReport :
  30. public CLgReportInterface
  31. {
  32. public:
  33. CLgReport();
  34. virtual ~CLgReport();
  35. public:
  36. BOOL Create( LPCTSTR pPathRoot, INT nMaxStorageDays );
  37. void Destroy();
  38. BOOL Reset();
  39. BOOL StoreEvent( SYSTEMTIME *pST, BYTE bId, BOOL bSensor, WORD wSensorIndex, BOOL bPosition, float x, float y, LARGE_INTEGER *pOffset, LPCTSTR pFormat, ... );
  40. BOOL StoreImage( HBITMAP hBitmap, LARGE_INTEGER *pOffset );
  41. BOOL StoreImage( CLgImageDIB& dib, LARGE_INTEGER *pOffset );
  42. BOOL StoreImage( CLgImageJPEG& jpeg, LARGE_INTEGER *pOffset );
  43. BOOL StoreBackground( CLgImageDIB& dib );
  44. BOOL StoreBackground( CLgImageJPEG& jpeg );
  45. public:
  46. BOOL SetMaxStoreTime( INT nDays );
  47. BOOL OnSensor( LPCTSTR pName, float x, float y );
  48. BOOL OnFilter( BYTE bId, LPCTSTR pName );
  49. public:
  50. BOOL Dlg_Create( HWND hParentWnd );
  51. BOOL Dlg_DoModal( HWND hParentWnd );
  52. void Dlg_Destroy();
  53. BOOL DlgSetup_DoModal( HWND hParentWnd );
  54. private:
  55. LPVOID m_pReserved;
  56. };
  57. #endif