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.

67 lines
1.6 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: LgNetSocketPTZ.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of LgNetSocketPTZ.h
  13. //----------------------------------------------------------------------------
  14. #ifndef __LG__NET__SOCKET__PTZ__H__INCLUDED__
  15. #define __LG__NET__SOCKET__PTZ__H__INCLUDED__
  16. #if _MSC_VER > 1000
  17. #pragma once
  18. #endif
  19. #include "LgNetSocket.h"
  20. #include "..\Comm\RS232.h"
  21. #include "..\Comm\RS485.h"
  22. #include "..\Comm\PTZPG3AD.h"
  23. #include "..\Comm\PTKS576.h"
  24. #include "..\Comm\ProtPTZm.h"
  25. #include "..\Comm\PMic1300.h"
  26. class CLgNetSocketPTZ :
  27. public CLgNetSocket
  28. {
  29. public:
  30. CLgNetSocketPTZ();
  31. virtual ~CLgNetSocketPTZ();
  32. public:
  33. enum E_NET_SOCKET_PTZ_TYPE
  34. {
  35. NET_SOCKET_PTZ_NONE = 0,
  36. NET_SOCKET_PTZ_TKS576 = 1,
  37. NET_SOCKET_PTZ_PG3AD = 2,
  38. NET_SOCKET_PTZ_MIGVAN = 3,
  39. NET_SOCKET_PTZ_MIC1300 = 4,
  40. };
  41. public:
  42. E_NET_SOCKET_PTZ_TYPE GetType() { return m_eType; }
  43. public:
  44. BOOL Create( E_NET_SOCKET_PTZ_TYPE eType, LPCTSTR pCommPort, BOOL bDemo );
  45. void Destroy();
  46. public:
  47. virtual BOOL SetBaudrate( DWORD nBaudrate );
  48. private:
  49. CConnectionRS232 m_Connection;
  50. CProtocolPTZTKS576 m_ProtocolTKS576;
  51. CProtocolPTZPG3AD m_ProtocolPG3AD;
  52. CProtocolMigvanPTZ m_ProtocolMigvan;
  53. CProtocolMic1300PTZ m_ProtocolMic1300;
  54. private:
  55. E_NET_SOCKET_PTZ_TYPE m_eType;
  56. };
  57. #endif