From b67e16869a5bfbbde3896a4e5a13f1301f1b978d Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期五, 13 十二月 2024 14:55:55 +0800
Subject: [PATCH] 1.调整保存警告到数据库的位置; 2.CAlarmMonitor组件不再保存已完成的警告的数据;

---
 SourceCode/Bond/BondEq/CBonder.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/SourceCode/Bond/BondEq/CBonder.h b/SourceCode/Bond/BondEq/CBonder.h
index 3a3d58a..25969f4 100644
--- a/SourceCode/Bond/BondEq/CBonder.h
+++ b/SourceCode/Bond/BondEq/CBonder.h
@@ -18,6 +18,9 @@
 #define STATE_ERROR			3		/* 发生故障 */
 
 
+#define ALARM_MONITOR		_T("警告信息")
+
+
 typedef std::function<void(void* pFrom, int)> ONBONDSTATECHANGED;
 typedef std::function<void(void* pFrom, int)> ONPLCSTATECHANGED;
 typedef std::function<void(void* pFrom, const char* pszAddr, int port, int)> ONEFEMSTATECHANGED;
@@ -42,6 +45,7 @@
 	void setListener(BondListener& listener);
 	void setWorkDir(const char* pszWorkDir);
 	const std::vector<CComponent*>& getComponents();
+	CPLC* getPLC(const char* pszName);
 	int init();
 	int term();
 	void sendBroadcast(CComponent* pSender, CIntent* pIntent);

--
Gitblit v1.9.3