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.

59 lines
1.5 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/12/2002
  6. // PROJECT:
  7. // SUBSYSTEM:
  8. // FILE: LgHWVideoSwitchDevice.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of LgHWVideoSwitchDevice.h
  13. //----------------------------------------------------------------------------
  14. #ifndef __LG__HW__VIDEO__SWITCH__DEVICE__H__INCLUDED__
  15. #define __LG__HW__VIDEO__SWITCH__DEVICE__H__INCLUDED__
  16. #if _MSC_VER > 1000
  17. #pragma once
  18. #endif
  19. #include "..\LgLink.h"
  20. class CLgHWVideoPinInput;
  21. class CLgHWVideoPinOutput;
  22. class CLgHWVideoSwitchJob;
  23. // switch device
  24. class CLgHWVideoSwitchDevice :
  25. public CLgLink<CLgHWVideoSwitchDevice,CLgHWVideoPinInput>,
  26. public CLgLink<CLgHWVideoSwitchDevice,CLgHWVideoPinOutput>,
  27. public CLgLink<CLgHWVideoSwitchDevice,CLgHWVideoSwitchJob>
  28. {
  29. public:
  30. CLgHWVideoSwitchDevice();
  31. virtual ~CLgHWVideoSwitchDevice();
  32. public:
  33. BOOL Create( INT nInput, INT nOutput );
  34. void Destroy();
  35. public:
  36. virtual BOOL Link( CLgLink<CLgHWVideoSwitchJob,CLgHWVideoSwitchDevice> *pJob );
  37. public:
  38. // switching method
  39. virtual BOOL HWVideoSwitchDeviceSwitch( INT nInput, INT nOutput ) = 0;
  40. public:
  41. // notification about switching
  42. virtual void OnHWVideoSwitchDeviceSwitch( INT nInput, INT nOutput );
  43. private:
  44. BOOL CheckSwitchJobArray();
  45. private:
  46. INT m_nRequestCount;
  47. };
  48. #endif