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.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: PTZNesher.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of PTZNesher.h
  13. //----------------------------------------------------------------------------
  14. #ifndef __PTZ__NESHER__H__INCLUDED__
  15. #define __PTZ__NESHER__H__INCLUDED__
  16. #if _MSC_VER > 1000
  17. #pragma once
  18. #endif // _MSC_VER > 1000
  19. #ifdef __BORLANDC__
  20. #include "..\LgLib\Comm\Connect.h"
  21. #include "..\LgLib\Comm\Protocol.h"
  22. #include "..\LgLib\Device\LgDevPTZ.h"
  23. #else
  24. #include "Connect.h"
  25. #include "Protocol.h"
  26. #include "..\Device\LgDevPTZ.h"
  27. #endif
  28. class CProtocolPTZNesher : public CProtocol
  29. {
  30. public:
  31. CProtocolPTZNesher();
  32. virtual ~CProtocolPTZNesher();
  33. public:
  34. BOOL Create( CConnection *pConnection );
  35. void Destroy();
  36. public:
  37. CConnection* GetConnection() { return m_pConnection; }
  38. public:
  39. virtual BOOL Read( PBYTE *ppBuffer, PINT pCount, DWORD dwTimeout, BOOL bHost );
  40. virtual BOOL Write( PBYTE pBuffer, INT nCount, DWORD dwTimeout, BOOL bHost );
  41. private:
  42. CConnection*m_pConnection;
  43. };
  44. #endif