SourceCode/Bond/Servo/CMaster.h
@@ -7,6 +7,12 @@ namespace SERVO { typedef std::function<void(void* pMaster, CEquipment* pEiuipment, BOOL bAlive)> ONEQALIVE; typedef struct _MasterListener { ONEQALIVE onEqAlive; } MasterListener; class CMaster { public: @@ -15,6 +21,7 @@ public: void setListener(MasterListener listener); int init(); int term(); void onTimer(UINT nTimerid); @@ -25,6 +32,7 @@ private: MasterListener m_listener; CCCLinkIEControl m_cclink; std::list<CEquipment*> m_listEquipment; };