| SourceCode/Bond/Servo/CAttribute.cpp | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| SourceCode/Bond/Servo/CAttribute.h | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| SourceCode/Bond/Servo/CEqProcessStep.cpp | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| SourceCode/Bond/Servo/CEqProcessStep.h | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
SourceCode/Bond/Servo/CAttribute.cpp
@@ -18,4 +18,19 @@ { } std::string& CAttribute::getName() { return m_strName; } std::string& CAttribute::getValue() { return m_strValue; } std::string& CAttribute::getDescription() { return m_strDescription; } } SourceCode/Bond/Servo/CAttribute.h
@@ -9,6 +9,11 @@ CAttribute(const char* pszName, const char* pszValue, const char* pszDescription); ~CAttribute(); public: std::string& getName(); std::string& getValue(); std::string& getDescription(); private: std::string m_strName; std::string m_strValue; SourceCode/Bond/Servo/CEqProcessStep.cpp
@@ -17,6 +17,32 @@ } void CEqProcessStep::getAttributeVector(CAttributeVector& attrubutes) { CStep::getAttributeVector(attrubutes); attrubutes.addAttribute(new CAttribute("Glass ID", m_strGlassId.c_str(), "")); attrubutes.addAttribute(new CAttribute("Start Time", m_strStartTime.c_str(), "")); attrubutes.addAttribute(new CAttribute("End Time", m_strEndTime.c_str(), "")); attrubutes.addAttribute(new CAttribute("Total Parameter", std::to_string(m_nTotalParameter).c_str(), "")); attrubutes.addAttribute(new CAttribute("Total Group", std::to_string(m_nTotalGroup).c_str(), "")); attrubutes.addAttribute(new CAttribute("Current Group", std::to_string(m_nCurrentGroup).c_str(), "")); char szName[256]; int index = 0; for (auto item : m_params) { sprintf_s(szName, 256, "Parameter %d", ++index); attrubutes.addAttribute(new CAttribute(szName, item.c_str(), "")); } } #define PROGRESS_BUF_SIZE (1024 + 64) int CEqProcessStep::onReadData() { SourceCode/Bond/Servo/CEqProcessStep.h
@@ -11,6 +11,7 @@ ~CEqProcessStep(); public: void getAttributeVector(CAttributeVector& attrubutes); virtual int onReadData(); virtual int onComplete(); virtual int onTimeout();