LAPTOP-SNT8I5JK\Boounion
2025-02-21 f2ec2ff2640e8f02507e6fa44cd1ba1487a303ea
SourceCode/Bond/Servo/CMaster.h
@@ -7,6 +7,13 @@
namespace SERVO {
    typedef std::function<void(void* pMaster, CEquipment* pEiuipment, BOOL bAlive)> ONEQALIVE;
    typedef struct _MasterListener
    {
        ONEQALIVE            onEqAlive;
        ONEQALIVE              onEqCimStateChanged;
    } MasterListener;
    class CMaster
    {
    public:
@@ -15,16 +22,17 @@
    public:
        void setListener(MasterListener listener);
        int init();
        int term();
        void onTimer(UINT nTimerid);
        CEquipment* getEquipment(int id);
    private:
        int addEquipment(CEquipment* pEquipment);
    private:
        MasterListener m_listener;
        CCCLinkIEControl m_cclink;
        std::list<CEquipment*> m_listEquipment;
    };