From d184fb507b475e2ba29cbd91b7e615fa59a9b1f6 Mon Sep 17 00:00:00 2001 From: LAPTOP-T815PCOQ\25526 <mr.liuyang@126.com> Date: 星期四, 21 十一月 2024 10:18:26 +0800 Subject: [PATCH] 1.对系统运行日志管理类优化,比如获取单例模式的方式。unique_ptr必须通过析构函数结束 --- SourceCode/Bond/BondEq/Model.h | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-) diff --git a/SourceCode/Bond/BondEq/Model.h b/SourceCode/Bond/BondEq/Model.h index 9a74296..0feb0c9 100644 --- a/SourceCode/Bond/BondEq/Model.h +++ b/SourceCode/Bond/BondEq/Model.h @@ -1,5 +1,5 @@ #pragma once -#include "Bonder.h" +#include "CBonder.h" #include "Configuration.h" @@ -15,9 +15,8 @@ int init(); int term(); void onTimer(UINT nTimerid); - int createRemoteEqs(); CBonder& getBonder(); - BEQ::IRemoteEquipment* getBond1(); + BEQ::IEquipment* getEquipment(); public: int notify(int code); @@ -43,8 +42,7 @@ private: CBonder m_bonder; - BEQ::IServo* m_pServo; - BEQ::IRemoteEquipment* m_pEqBond1; + BEQ::IEquipment* m_pEquipment; int m_nTimerID; }; -- Gitblit v1.9.3