From e48a55eb3cc807fa5a45cf398b6f523e96aa5312 Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期二, 15 七月 2025 15:10:31 +0800
Subject: [PATCH] 1.Variable列表显示到界面; 2.从文件中加载CReport列表;
---
SourceCode/Bond/Servo/HsmsPassive.h | 17 ++++++++++++++++-
1 files changed, 16 insertions(+), 1 deletions(-)
diff --git a/SourceCode/Bond/Servo/HsmsPassive.h b/SourceCode/Bond/Servo/HsmsPassive.h
index f5e8383..0436b2c 100644
--- a/SourceCode/Bond/Servo/HsmsPassive.h
+++ b/SourceCode/Bond/Servo/HsmsPassive.h
@@ -112,8 +112,18 @@
void deleteAllReport();
// 从文件中加载CVariable列表
- int loadVarialbleList(const char* pszFilepath);
+ int loadVarialbles(const char* pszFilepath);
+ // 取得CVariable列表
+ std::vector<SERVO::CVariable*>& getVariables();
+
+ // 取得指定Variable
+ SERVO::CVariable* getVariable(int variableId);
+
+ // 从文件中加载CReport表表
+ int loadReports(const char* pszFilepath);
+
+ std::vector<SERVO::CReport*>& getReports();
void setListener(SECSListener listener);
unsigned OnCimWork();
@@ -152,6 +162,8 @@
inline void Unlock() { LeaveCriticalSection(&m_criticalSection); }
int onRecvMsg(IMessage* pMessage);
void clearAllVariabel();
+ std::vector<int> parseVidList(CString& strNums);
+ void clearAllReport();
private:
CModel* m_pModel;
@@ -188,5 +200,8 @@
// CVariable vector
std::vector<SERVO::CVariable*> m_variabels;
+
+ // CReport vector
+ std::vector<SERVO::CReport*> m_reports;
};
--
Gitblit v1.9.3