You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
631 B
C++
28 lines
631 B
C++
#pragma once
|
|
|
|
#include <afxtempl.h>
|
|
|
|
#include "MyWait.h"
|
|
#include "Evt.h"
|
|
#include "DllDefines.h"
|
|
|
|
class UTILITYDLL CTrigger : public CMyWait
|
|
{
|
|
public:
|
|
CTrigger();
|
|
virtual ~CTrigger();
|
|
|
|
void InsertTrigger(CEvt* pEvt, BOOL bState);
|
|
void InsertTrigger(HANDLE handle);
|
|
// void InsertInput(CInput* pInput, BOOL bState, DWORD dwDebounce, DWORD dwTimeout);
|
|
DWORD Wait(DWORD dwTimeOut = INFINITE);
|
|
bool WaitForAll(DWORD dwTimeOut = INFINITE);
|
|
void Reset();
|
|
|
|
protected:
|
|
DWORD m_dwCount;
|
|
CTypedPtrArray<CPtrArray, HANDLE> m_aHandle;
|
|
|
|
private:
|
|
DWORD WaitFor(DWORD dwTimeOut, BOOL bWaitForAll);
|
|
}; |