12345678910111213141516171819202122232425262728 |
- #pragma once
- #include "CommonLogicClient.h"
- #include <map>
- using namespace std;
- class CAsnycAction
- {
-
- public:
- CAsnycAction();
- virtual ~CAsnycAction();
- virtual RET_STATUS OpenAllClient(const char *workpath[], int count);
- virtual RET_STATUS CloseAllClient(const char *workpath[] = NULL, int count = 0);
- //
- virtual RET_STATUS SetAsnycAction(const char *ActionName, DWORD timeout);
- virtual int WaitforEventNotify(HANDLE &EventHandle, const char *EvtName[],int count, ResDataObject &ResNotify, DWORD timeout);
- virtual RET_STATUS GetClientSeqResouce();
- virtual int GetResourceValue(const char *AttributeName, ResDataObject &ResValue);
- virtual RET_STATUS SetAction(const char *ActionName, ResDataObject &Req, ResDataObject &Resp);
- virtual RET_STATUS ClearNotify();
- private:
-
- map<string, CommonLogicClient*> m_ClientList;
- map<CommonLogicClient*, ResDataObject> m_SeqList;
- map<CommonLogicClient*, ResDataObject> m_EventList;
- map<HANDLE, CommonLogicClient*>m_NotifyHandleList;
- };
|