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.

50 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: 08/10/2003
  6. // PROJECT:
  7. // SUBSYSTEM:
  8. // FILE: HiddenZone.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of HiddenZone.h
  13. //----------------------------------------------------------------------------
  14. #ifndef __HIDDEN__ZONE__H__INCLUDED__
  15. #define __HIDDEN__ZONE__H__INCLUDED__
  16. #if _MSC_VER > 1000
  17. #pragma once
  18. #endif
  19. struct CLgDPoint;
  20. class CHiddenZone
  21. {
  22. public:
  23. CHiddenZone();
  24. virtual ~CHiddenZone();
  25. public:
  26. int GetType() { return m_nType; }
  27. void SetType( INT nType ) { m_nType = nType; }
  28. public:
  29. bool Add( CLgDPoint dPoint, int nIndex = INT_MAX );
  30. bool Remove( int nIndex );
  31. void RemoveAll();
  32. BOOL Copy( CHiddenZone *pHiddenZone );
  33. public:
  34. int GetCount() { return m_nPoint; }
  35. CLgDPoint *GetAt( int nIndex );
  36. CLgDPoint *operator[] ( int nIndex );
  37. protected:
  38. CLgDPoint *m_pPoint;
  39. int m_nPoint;
  40. int m_nType;
  41. };
  42. #endif