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.

55 lines
1.3 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: Device.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of Device.h
  13. //----------------------------------------------------------------------------
  14. // Device.h: interface for the CDevice class.
  15. //
  16. //////////////////////////////////////////////////////////////////////
  17. #if !defined(AFX_DEVICE_H__B377BC6E_77EB_4C7F_B39F_E984D430A7B1__INCLUDED_)
  18. #define AFX_DEVICE_H__B377BC6E_77EB_4C7F_B39F_E984D430A7B1__INCLUDED_
  19. #if _MSC_VER > 1000
  20. #pragma once
  21. #endif // _MSC_VER > 1000
  22. class CConnection;
  23. class CSocket;
  24. class CDevice
  25. {
  26. public:
  27. CDevice();
  28. virtual ~CDevice();
  29. public:
  30. CSocket *GetSocket() { return m_pSocket; }
  31. public:
  32. virtual DWORD CompleteIO( CConnection *pConnection ) { return INFINITE; }
  33. virtual void SetSocket( CSocket *pSocket ) { m_pSocket = pSocket; }
  34. protected:
  35. CSocket *m_pSocket;
  36. public:
  37. INT GetDeviceType() { return m_eDeviceType; }
  38. protected:
  39. void SetDeviceType( INT eDeviceType ) { m_eDeviceType = eDeviceType; }
  40. private:
  41. INT m_eDeviceType;
  42. };
  43. #endif