From e42e8364112e97d89eeaecd13f043dff42179949 Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期二, 27 五月 2025 17:19:02 +0800
Subject: [PATCH] 1.enum修改为enum class, 理顺CLoadPort各成员变量在调度中的判定作用;

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

diff --git a/SourceCode/Bond/Servo/AlarmManager.h b/SourceCode/Bond/Servo/AlarmManager.h
index 1c41797..cbe1bb9 100644
--- a/SourceCode/Bond/Servo/AlarmManager.h
+++ b/SourceCode/Bond/Servo/AlarmManager.h
@@ -41,12 +41,6 @@
     static AlarmManager& getInstance();
 
     /**
-     * 设置数据库连接
-     * @param db 数据库连接的指针
-     */
-    void setDatabase(BL::Database* db);
-
-    /**
      * 初始化报警表
      * @return 成功返回true,失败返回false
      */
@@ -232,35 +226,7 @@
     * @param endTime 结束时间
     * @return 成功返回true,失败返回false
     */
-    bool clearAlarmByAttributes(int nId, int nSeverityLevel, int nDeviceId, int nUnitId, const std::string& strDescription, const std::string& endTime);
-
-	/**
-	 * 读取报警文件
-	 * @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;
+    bool clearAlarmByAttributes(int nId, int nDeviceId, int nUnitId, const std::string& endTime);
 
 	/**
 	 * 读取报警文件

--
Gitblit v1.9.3