From 19261d011387ec57d646decc945aadaf8913eeab Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期一, 10 三月 2025 09:05:54 +0800
Subject: [PATCH] Merge branch 'clh'

---
 SourceCode/Bond/Servo/AlarmManager.h |   28 ++++++++++++++++++++++++++++
 1 files changed, 28 insertions(+), 0 deletions(-)

diff --git a/SourceCode/Bond/Servo/AlarmManager.h b/SourceCode/Bond/Servo/AlarmManager.h
index f99aafe..1c41797 100644
--- a/SourceCode/Bond/Servo/AlarmManager.h
+++ b/SourceCode/Bond/Servo/AlarmManager.h
@@ -262,6 +262,34 @@
     */
     std::vector<AlarmInfo> getAlarmsInfoByIDs(const std::vector<int>& alarmIDs) const;
 
+	/**
+	 * 读取报警文件
+	 * @param filename 文件名
+	 * @return 成功返回true,失败返回false
+	 */
+    bool readAlarmFile(const std::string& filename);
+
+    /**
+     * 保存报警文件
+     * @param filename 文件名
+     * @return 成功返回true,失败返回false
+     */
+    bool saveAlarmFile(const std::string& filename);
+
+	/**
+	 * 通过报警ID查询报警信息
+	 * @param nAlarmID 报警ID
+	 * @return 报警信息的指针
+	 */
+    const AlarmInfo* getAlarmInfoByID(int nAlarmID) const;
+
+    /**
+    * 通过多个报警ID查询对应的报警信息
+    * @param alarmIDs 多个报警ID
+	* @return 返回多个报警信息
+    */
+    std::vector<AlarmInfo> getAlarmsInfoByIDs(const std::vector<int>& alarmIDs) const;
+
 private:
     AlarmManager();
     ~AlarmManager();

--
Gitblit v1.9.3