From 72f3802bd7ab24b672c951a287787b5dea253f3b Mon Sep 17 00:00:00 2001
From: mrDarker <mr.darker@163.com>
Date: 星期六, 02 八月 2025 10:48:36 +0800
Subject: [PATCH] Merge branch 'clh' into liuyang

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

diff --git a/SourceCode/Bond/Servo/HsmsPassive.h b/SourceCode/Bond/Servo/HsmsPassive.h
index 84644a5..3fa3b73 100644
--- a/SourceCode/Bond/Servo/HsmsPassive.h
+++ b/SourceCode/Bond/Servo/HsmsPassive.h
@@ -142,7 +142,11 @@
 	void OnTimer(UINT nTimerid);
 	void setActionTimeout(int nSecond);
 	int init(CModel* pModel, const char* pszName, unsigned int port);
+	int loadCacheFromFile(const char* pszFilepath);
+	int saveCache();
 	int term();
+	int serialize(char* pszBuffer, int nBufferSize);
+	int unserialize(const char* pszBuffer, int nBufferSize);
 
 public:
 	/* request开头的函数为主动发送数据的函数 */
@@ -167,6 +171,7 @@
 	int replyCommand(IMessage* pRecv);
 	int replyConfigureSpooling(IMessage* pRecv);
 	int replyEanbleDisableAlarmReport(IMessage* pRecv);
+	int replyPurgeSpooledData(IMessage* pRecv);
 	int replyQueryPPIDList(IMessage* pRecv);
 	int replyTerminalDisplay(IMessage* pRecv);
 
@@ -189,6 +194,7 @@
 	CRITICAL_SECTION m_criticalSection;
 	std::list<CHsmsAction*> m_listAction;
 	std::list<CHsmsAction*> m_listActionSent;
+	std::list<CHsmsAction*> m_listActionSpooling;
 
 private:
 	SECSListener m_listener;
@@ -196,6 +202,8 @@
 	HANDLE m_hCimWorkEvent;
 	HANDLE m_hCimWorkThreadHandle;
 	unsigned m_nCimWorkThrdaddr;
+	std::string m_strCacheFilepath;
+	CHsmsAction* m_pActiveAction;
 
 private:
 	// CVariable vector

--
Gitblit v1.9.3