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.

53 lines
1.1 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: LgReportSettings.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of LgReportSettings.h
  13. //----------------------------------------------------------------------------
  14. #ifndef __LG__REPORT__SETUP__SETTINGS__H__INCLUDED__
  15. #define __LG__REPORT__SETUP__SETTINGS__H__INCLUDED__
  16. #include "..\LgArray.h"
  17. #pragma once
  18. struct CLgReportSiteInfo
  19. {
  20. TCHAR pName[MAX_PATH];
  21. TCHAR pAddress[MAX_PATH];
  22. WORD wPort;
  23. };
  24. class CLgReportSettings :
  25. public CLgArray<CLgReportSiteInfo>
  26. {
  27. public:
  28. CLgReportSettings();
  29. public:
  30. BOOL Load( LPCTSTR pFileName );
  31. BOOL Store( LPCTSTR pFileName );
  32. public:
  33. typedef struct SETTINGS
  34. {
  35. TCHAR pAccessName[MAX_PATH];
  36. BOOL bAccessEnable;
  37. WORD wAccessPort;
  38. }SETTINGS;
  39. public:
  40. SETTINGS& GetSettings() { return m_Settings; }
  41. private:
  42. SETTINGS m_Settings;
  43. };
  44. #endif