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.

62 lines
1.7 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: VideoDevice.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of VideoDevice.h
  13. //----------------------------------------------------------------------------
  14. // VideoDevice.h: interface for the CVideoDevice class.
  15. //
  16. //////////////////////////////////////////////////////////////////////
  17. #if !defined(AFX_VIDEODEVICE_H__DE11F0C8_0596_4D96_9123_4CE8B0134F01__INCLUDED_)
  18. #define AFX_VIDEODEVICE_H__DE11F0C8_0596_4D96_9123_4CE8B0134F01__INCLUDED_
  19. #if _MSC_VER > 1000
  20. #pragma once
  21. #endif // _MSC_VER > 1000
  22. #include "VideoPin.h"
  23. class CSensorArray;
  24. class CVideoDevice
  25. {
  26. friend class CVideoPin;
  27. public:
  28. CVideoDevice();
  29. virtual ~CVideoDevice();
  30. public:
  31. void SetSensorArray( CSensorArray *pSensorArray ) { m_pSensorArray = pSensorArray; }
  32. public:
  33. virtual void SetIOCount( int nInput, int nOutput );
  34. virtual void Destroy();
  35. public:
  36. CVideoPin *GetOutput( int nIndex ){ return ( m_nOutput > nIndex ) ? &m_pOutput[ nIndex ] : NULL; }
  37. CVideoPin *GetInput( int nIndex ){ return ( m_nInput > nIndex ) ? &m_pInput[ nIndex ] : NULL; }
  38. int GetOutputCount() { return m_nOutput; }
  39. int GetInputCount() { return m_nInput; }
  40. protected:
  41. virtual BOOL ForceConnection( int nInput, int nOutput ) { return FALSE; }
  42. protected:
  43. CVideoPin *m_pInput;
  44. CVideoPin *m_pOutput;
  45. int m_nInput;
  46. int m_nOutput;
  47. protected:
  48. CSensorArray *m_pSensorArray;
  49. };
  50. #endif