From 8de338246a5c70210077ce1162e926cef5f39c70 Mon Sep 17 00:00:00 2001
From: mrDarker <mr.darker@163.com>
Date: 星期二, 25 三月 2025 17:09:16 +0800
Subject: [PATCH] Merge branch 'clh' into liuyang
---
SourceCode/Bond/Servo/CGlass.cpp | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 57 insertions(+), 0 deletions(-)
diff --git a/SourceCode/Bond/Servo/CGlass.cpp b/SourceCode/Bond/Servo/CGlass.cpp
new file mode 100644
index 0000000..e9847f9
--- /dev/null
+++ b/SourceCode/Bond/Servo/CGlass.cpp
@@ -0,0 +1,57 @@
+#include "stdafx.h"
+#include "CGlass.h"
+
+
+namespace SERVO {
+ CGlass::CGlass()
+ {
+
+ }
+
+ CGlass::~CGlass()
+ {
+
+ }
+
+ std::string& CGlass::getClassName()
+ {
+ static std::string strName = "CGlass";
+ return strName;
+ }
+
+ std::string CGlass::toString()
+ {
+ std::string strText;
+ strText += "CGlass[";
+ strText += ("ID:" + m_strID + ";");
+ strText += "]";
+
+ return strText;
+ }
+
+ void CGlass::setID(const char* pszID)
+ {
+ m_strID = pszID;
+ }
+
+ std::string& CGlass::getID()
+ {
+ return m_strID;
+ }
+
+ void CGlass::serialize(CArchive& ar)
+ {
+ if (ar.IsStoring())
+ {
+ Lock();
+ WriteString(ar, m_strID);
+ Unlock();
+ }
+ else
+ {
+ Lock();
+ ReadString(ar, m_strID);
+ Unlock();
+ }
+ }
+}
--
Gitblit v1.9.3