//Step执行器,用于执行Step动作列表 #pragma once #include #include "CStep.h" class CStepActuator { typedef struct { CStepActuator* pClass; UINT iGroupId; //执行的GroupId } RUN_STEP_PARAMETER; private: // 维护所有step,key表示stepIndex map> m_mapStepList; CProduct* m_pCProduct; CMachineSetup* m_pCMachineSetup; //是否循环执行 bool m_bLoopExecute; /*static PTP_POOL sm_tPool; static TP_CALLBACK_ENVIRON* m_tcEnv;*/ //void CreateStepRunThreadpool(); static VOID CALLBACK threadActuator(PTP_CALLBACK_INSTANCE Instance, PVOID Parameter, PTP_WORK Work); LONG RunStep(UINT iGroupId); public: CStepActuator(map> mapStepList); //执行 LONG Execute(bool bLoopExecute = false); };