From e42e8364112e97d89eeaecd13f043dff42179949 Mon Sep 17 00:00:00 2001 From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com> Date: 星期二, 27 五月 2025 17:19:02 +0800 Subject: [PATCH] 1.enum修改为enum class, 理顺CLoadPort各成员变量在调度中的判定作用; --- SourceCode/Bond/Servo/CLoadPort.h | 24 ++++++++++++------------ 1 files changed, 12 insertions(+), 12 deletions(-) diff --git a/SourceCode/Bond/Servo/CLoadPort.h b/SourceCode/Bond/Servo/CLoadPort.h index 3e011fc..3156830 100644 --- a/SourceCode/Bond/Servo/CLoadPort.h +++ b/SourceCode/Bond/Servo/CLoadPort.h @@ -36,10 +36,10 @@ void setIndex(unsigned int index); unsigned int getIndex(); BOOL isEnable(); - int getPortType(); - int getPortMode(); - int getCessetteType(); - int getTransferMode(); + PortType getPortType(); + PortMode getPortMode(); + CassetteType getCessetteType(); + TransferMode getTransferMode(); BOOL isAutoChange(); int getPortStatus(); int getCassetteSequenceNo(); @@ -51,10 +51,10 @@ int testGenerateGlassList(MaterialsType type, int count, const char* pszPrefix, int startSuffix); public: - static std::string& getPortTypeDescription(int portType, std::string& strDescription); - static std::string& getPortModeDescription(int portMode, std::string& strDescription); - static std::string& getPortCassetteTypeDescription(int casseteType, std::string& strDescription); - static std::string& getPortTransferModeDescription(int mode, std::string& strDescription); + static std::string& getPortTypeDescription(PortType portType, std::string& strDescription); + static std::string& getPortModeDescription(PortMode portMode, std::string& strDescription); + static std::string& getPortCassetteTypeDescription(CassetteType casseteType, std::string& strDescription); + static std::string& getPortTransferModeDescription(TransferMode mode, std::string& strDescription); static std::string& getEnableModeDescription(int mode, std::string& strDescription); static std::string& getPortStatusDescription(int portStatus, std::string& strDescription); static std::string& getLoadingCassetteTypeDescription(int type, std::string& strDescription); @@ -77,10 +77,10 @@ private: unsigned int m_nIndex; - int m_nType; - int m_nMode; - int m_nCassetteType; - int m_nTransferMode; + PortType m_portType; + PortMode m_portMode; + CassetteType m_cassetteType; + TransferMode m_transferMode; BOOL m_bEnable; BOOL m_bAutoChangeEnable; CPortStatusReport m_portStatusReport; -- Gitblit v1.9.3