| | |
| | | namespace SERVO { |
| | | typedef std::function<void(void* pMaster, CEquipment* pEiuipment, BOOL bAlive)> ONEQALIVE; |
| | | typedef std::function<void(CStep* pStep, int code, void* pData)> ONEQSTEPEVENT; |
| | | typedef std::function<void(void* pMaster, CEquipment* pEquipment, int state, int alarmId, int unitId, int level)> ONEQALARM; |
| | | typedef struct _MasterListener |
| | | { |
| | | ONEQALIVE onEqAlive; |
| | | ONEQALIVE onEqCimStateChanged; |
| | | ONEQSTEPEVENT onEqStepEvent; |
| | | ONEQALARM onEqAlarm; |
| | | } MasterListener; |
| | | |
| | | class CMaster |
| | |
| | | |
| | | private: |
| | | int addToEquipmentList(CEquipment* pEquipment); |
| | | int addLoadPort(int index, StepListener& listener); |
| | | int addFliper(StepListener& listener); |
| | | int addVacuumBake(StepListener& listener); |
| | | int addAligner(StepListener& listener); |
| | | int addEFEM(StepListener& listener); |
| | | int addBonder(int index, StepListener& listener); |
| | | int addBakeCooling(StepListener& listener); |
| | | int addLoadPort(int index); |
| | | int addFliper(); |
| | | int addVacuumBake(); |
| | | int addAligner(); |
| | | int addEFEM(); |
| | | int addBonder(int index); |
| | | int addBakeCooling(); |
| | | void connectEquipments(); |
| | | int saveCache(); |
| | | int saveCacheAndBackups(); |
| | | int readCache(); |
| | | void serialize(CArchive& ar); |
| | | |
| | |
| | | CCCLinkIEControl m_cclink; |
| | | std::list<CEquipment*> m_listEquipment; |
| | | std::string m_strFilepath; |
| | | BOOL m_bDataModify; |
| | | }; |
| | | } |
| | | |