From 405bd36e812c3645e8d9d84700777e2eaeb036ec Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期五, 30 五月 2025 16:18:17 +0800
Subject: [PATCH] Merge branch 'clh'

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

diff --git a/SourceCode/Bond/Servo/CSlot.h b/SourceCode/Bond/Servo/CSlot.h
new file mode 100644
index 0000000..1d783d2
--- /dev/null
+++ b/SourceCode/Bond/Servo/CSlot.h
@@ -0,0 +1,47 @@
+#pragma once
+#include "Context.h"
+#include "ServoCommo.h"
+
+
+namespace SERVO {
+	class CSlot
+	{
+	public:
+		CSlot();
+		virtual ~CSlot();
+
+	public:
+		BOOL isEnable();
+		void enable();
+		void disable();
+		BOOL isLock();
+		void lock();
+		void unlock();
+		int getPosition();
+		void setPosition(int position);
+		int getNo();
+		void setNo(int no);
+		MaterialsType getType();
+		void setType(MaterialsType type);
+		std::string& getName();
+		void setName(const char* pszName);
+		BOOL isEmpty();
+		CContext* getContext();
+		void setContext(CContext* pContext);
+		void serialize(CArchive& ar);
+
+	private:
+		void WriteString(CArchive& ar, std::string& string);
+		void ReadString(CArchive& ar, std::string& string);
+
+	private:
+		int m_nPosition;
+		int m_nNo;
+		MaterialsType m_materialsType;
+		std::string m_strName;
+		CContext* m_pContext;
+		BOOL m_bEnable;
+		BOOL m_bLock;
+	};
+}
+

--
Gitblit v1.9.3