//---------------------------------------------------------------------------- // Laser Guard Ltd. // Copyright © 2000-2002. All Rights Reserved. // Version 1.0 01/01/2000 // Last modification: 08/10/2003 // PROJECT: // SUBSYSTEM: // FILE: VideoDevice.h // AUTHOR: Sergey Chizhevskiy // OVERVIEW // ~~~~~~~~ // Header file of VideoDevice.h //---------------------------------------------------------------------------- // VideoDevice.h: interface for the CVideoDevice class. // ////////////////////////////////////////////////////////////////////// #if !defined(AFX_VIDEODEVICE_H__DE11F0C8_0596_4D96_9123_4CE8B0134F01__INCLUDED_) #define AFX_VIDEODEVICE_H__DE11F0C8_0596_4D96_9123_4CE8B0134F01__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #include "VideoPin.h" class CSensorArray; class CVideoDevice { friend class CVideoPin; public: CVideoDevice(); virtual ~CVideoDevice(); public: void SetSensorArray( CSensorArray *pSensorArray ) { m_pSensorArray = pSensorArray; } public: virtual void SetIOCount( int nInput, int nOutput ); virtual void Destroy(); public: CVideoPin *GetOutput( int nIndex ){ return ( m_nOutput > nIndex ) ? &m_pOutput[ nIndex ] : NULL; } CVideoPin *GetInput( int nIndex ){ return ( m_nInput > nIndex ) ? &m_pInput[ nIndex ] : NULL; } int GetOutputCount() { return m_nOutput; } int GetInputCount() { return m_nInput; } protected: virtual BOOL ForceConnection( int nInput, int nOutput ) { return FALSE; } protected: CVideoPin *m_pInput; CVideoPin *m_pOutput; int m_nInput; int m_nOutput; protected: CSensorArray *m_pSensorArray; }; #endif