//---------------------------------------------------------------------------- // Laser Guard Ltd. // Copyright © 2000-2002. All Rights Reserved. // Version 1.0 01/01/2000 // Last modification: 08/10/2003 // PROJECT: // SUBSYSTEM: // FILE: DirectOutput.h // AUTHOR: Sergey Chizhevskiy // OVERVIEW // ~~~~~~~~ // Header file of DirectOutput.h //---------------------------------------------------------------------------- #ifndef __RELAY__H__INCLUDED__ #define __RELAY__H__INCLUDED__ #include "..\..\LgLib\Templ.h" class CDirectOutput { public: CDirectOutput(); virtual ~CDirectOutput(); protected: friend class CDeviceDO; public: void CmdOn( BOOL bOn ); BOOL ConnectToDevice( CDeviceDO *pDeviceDO, int nBit, int nSensorBit ); public: int GetSubIndex() { return m_nSubIndex; } protected: enum{ DOC_SET_STATE }; struct DOEVENT { BYTE id; BOOL bOn; }; CLgQueueP m_Queue; protected: friend class CSensor; void PostOn( BOOL bOn ); CDeviceDO *m_pDeviceDO; int m_nBit; int m_nSubIndex; }; #endif