From fc8d367963a16de61dfbc4a0ff34c78c91ec2cfe Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期五, 05 九月 2025 09:21:28 +0800
Subject: [PATCH] Merge branch 'liuyang' into clh

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

diff --git a/SourceCode/Bond/Servo/CParam.h b/SourceCode/Bond/Servo/CParam.h
new file mode 100644
index 0000000..f8562a1
--- /dev/null
+++ b/SourceCode/Bond/Servo/CParam.h
@@ -0,0 +1,38 @@
+#pragma once
+#include <string>
+
+#define PVT_INT		0
+#define PVT_DOUBLE	1
+
+class CParam
+{
+public:
+	CParam();
+	CParam(const char* pszName, const char* pszId, const char* pszUnit, int value);
+	CParam(const char* pszName, const char* pszId, const char* pszUnit, double value);
+	~CParam();
+
+public:
+	std::string& getId();
+	std::string& getName();
+	std::string& getUnit();
+	int getValueType();
+	int getIntValue();
+	void setIntValue(int value);
+	double getDoubleValue();
+	void setDoubleValue(double value);
+	void Serialize(CArchive& ar);
+
+private:
+	void ReadString(CArchive& ar, std::string& string);
+	void WriteString(CArchive& ar, std::string& string);
+
+private:
+	int m_nValueType;
+	std::string m_strId;
+	std::string m_strName;
+	std::string m_strUnit;
+	int m_nValue;
+	double m_fValue;
+};
+

--
Gitblit v1.9.3