From 549decf91ef988814913cddc86f5c4e006b277e7 Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期四, 21 八月 2025 05:27:48 +0800
Subject: [PATCH] Merge branch 'clh' of http://soft.boounion.cn/r/~chenluhua/Bond2 into clh

---
 SourceCode/Bond/Servo/CMaster.h |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/SourceCode/Bond/Servo/CMaster.h b/SourceCode/Bond/Servo/CMaster.h
index 6cb2965..097c2d6 100644
--- a/SourceCode/Bond/Servo/CMaster.h
+++ b/SourceCode/Bond/Servo/CMaster.h
@@ -14,6 +14,7 @@
 #include "CCLinkIEControl.h"
 #include "CRobotTask.h"
 #include "ProcessJob.h"
+#include "CControlJob.h"
 
 
 #define CTStep_Unknow                   0
@@ -105,9 +106,13 @@
         int carrierRelease(unsigned int port);
         int getContinuousTransferCount();
         void setContinuousTransferCount(int round);
-        int setProcessJobs(std::vector<SERVO::CProcessJob*>& pjs);
-        std::vector<SERVO::CProcessJob*>& getProcessJobs();
+        int setProcessJobs(std::vector<CProcessJob*>& pjs);
+        std::vector<CProcessJob*>& getProcessJobs();
+        CProcessJob* getProcessJob(const std::string& id);
+        int setControlJob(CControlJob& controlJob);
         CLoadPort* getPortWithCarrierId(const std::string& carrierId) const;
+        bool saveState() const;
+        bool loadState(const std::string& path);
 
     private:
         inline void lock() { EnterCriticalSection(&m_criticalSection); }
@@ -191,7 +196,9 @@
     private:
         bool m_bEnableEventReport;
         bool m_bEnableAlarmReport;
+        SERVO::CControlJob* m_pControlJob;
         std::vector<SERVO::CProcessJob*> m_processJobs;
+        std::string m_strStatePath;
     };
 }
 

--
Gitblit v1.9.3