From 90ae1c3db92833354814484e65f8cd2eef1f5f3e Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期三, 30 七月 2025 15:14:20 +0800
Subject: [PATCH] 1.配方列表获取完善;

---
 SourceCode/Bond/EAPSimulator/CVariable.h |   37 +++++++++++++++++++++++++++++++++++++
 1 files changed, 37 insertions(+), 0 deletions(-)

diff --git a/SourceCode/Bond/EAPSimulator/CVariable.h b/SourceCode/Bond/EAPSimulator/CVariable.h
new file mode 100644
index 0000000..7bac823
--- /dev/null
+++ b/SourceCode/Bond/EAPSimulator/CVariable.h
@@ -0,0 +1,37 @@
+#pragma once
+#include <string>
+
+
+namespace SERVO {
+	// 变量格式
+	enum class SVFromat {
+		U1 = 0,
+		U2,
+		I2,
+		A20,
+		A50
+	};
+
+	class CVariable
+	{
+	public:
+		CVariable();
+		CVariable(const char* pszId, const char* pszName, const char* pszFormat, const char* pszRemark);
+		~CVariable();
+
+	public:
+		static SVFromat toFormat(const char* pszFormat);
+		static std::string formatToString(SVFromat format);
+		unsigned int getVarialbleId();
+		std::string& getName();
+		SVFromat getFormat();
+		std::string& getRemark();
+
+	private:
+		unsigned int m_nVarialbeId;
+		std::string m_strName;
+		SVFromat m_format;
+		std::string m_strRemark;
+	};
+}
+

--
Gitblit v1.9.3