From 3f000671e15acd2de87c8588d7f09c0dc103bd7b Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期一, 08 九月 2025 13:56:23 +0800
Subject: [PATCH] 1.SVData获取和解释,待测试;

---
 SourceCode/Bond/Servo/CPath.cpp |   23 ++++++++++++++++++++++-
 1 files changed, 22 insertions(+), 1 deletions(-)

diff --git a/SourceCode/Bond/Servo/CPath.cpp b/SourceCode/Bond/Servo/CPath.cpp
index 3eb286b..ae140c6 100644
--- a/SourceCode/Bond/Servo/CPath.cpp
+++ b/SourceCode/Bond/Servo/CPath.cpp
@@ -10,6 +10,7 @@
 		m_timeOut = 0;
 		m_timeIn = CToolUnits::getTimestamp();
 		m_bProcessed = FALSE;
+		m_inspResult = InspResult::NotInspected;
 		m_pPrev = nullptr;
 		m_pNext = nullptr;
 	}
@@ -20,9 +21,10 @@
 		m_nUnit = nUnit;
 		m_timeOut = 0;
 		m_timeIn = CToolUnits::getTimestamp();
+		m_bProcessed = FALSE;
+		m_inspResult = InspResult::NotInspected;
 		m_pPrev = nullptr;
 		m_pNext = nullptr;
-		m_bProcessed = FALSE;
 	}
 
 	CPath::~CPath()
@@ -52,17 +54,21 @@
 			ar << m_timeIn;
 			ar << m_timeOut;
 			ar << m_bProcessed;
+			ar << (int)m_inspResult;
 			ar << (ULONGLONG)m_pNext;
 			if (m_pNext != nullptr) {
 				m_pNext->serialize(ar);
 			}
 		}
 		else {
+			int temp;
+
 			ar >> m_nEqID;
 			ar >> m_nUnit;
 			ar >> m_timeIn;
 			ar >> m_timeOut;
 			ar >> m_bProcessed;
+			ar >> temp; m_inspResult = (InspResult)temp;
 			ULONGLONG ulNext;
 			ar >> ulNext;
 			if ((CPath*)ulNext != nullptr) {
@@ -82,6 +88,11 @@
 	unsigned int CPath::getUnit()
 	{
 		return m_nUnit;
+	}
+
+	void CPath::setInTime(ULONGLONG time)
+	{
+		m_timeIn = time;
 	}
 
 	ULONGLONG CPath::getInTime()
@@ -109,6 +120,16 @@
 		return m_bProcessed;
 	}
 
+	void CPath::setInspResult(InspResult result)
+	{
+		m_inspResult = result;
+	}
+
+	InspResult CPath::getInspResult()
+	{
+		return m_inspResult;
+	}
+
 	CPath* CPath::getPrev()
 	{
 		return m_pPrev;

--
Gitblit v1.9.3