| | |
| | | #include "CEqProcessStep.h" |
| | | #include "Log.h" |
| | | #include "ToolUnits.h" |
| | | #include "CEquipment.h" |
| | | |
| | | |
| | | namespace SERVO { |
| | |
| | | { |
| | | CReadStep::getAttributeVector(attrubutes); |
| | | |
| | | unsigned int weight = 31; |
| | | attrubutes.addAttribute(new CAttribute("Glass ID", |
| | | m_strGlassId.c_str(), "")); |
| | | m_strGlassId.c_str(), "", weight++)); |
| | | attrubutes.addAttribute(new CAttribute("Start Time", |
| | | m_strStartTime.c_str(), "")); |
| | | m_strStartTime.c_str(), "", weight++)); |
| | | attrubutes.addAttribute(new CAttribute("End Time", |
| | | m_strEndTime.c_str(), "")); |
| | | m_strEndTime.c_str(), "", weight++)); |
| | | attrubutes.addAttribute(new CAttribute("Total Parameter", |
| | | std::to_string(m_nTotalParameter).c_str(), "")); |
| | | std::to_string(m_nTotalParameter).c_str(), "", weight++)); |
| | | attrubutes.addAttribute(new CAttribute("Total Group", |
| | | std::to_string(m_nTotalGroup).c_str(), "")); |
| | | std::to_string(m_nTotalGroup).c_str(), "", weight++)); |
| | | attrubutes.addAttribute(new CAttribute("Current Group", |
| | | std::to_string(m_nCurrentGroup).c_str(), "")); |
| | | std::to_string(m_nCurrentGroup).c_str(), "", weight++)); |
| | | |
| | | 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(), "")); |
| | | item.c_str(), "", weight++)); |
| | | } |
| | | } |
| | | |
| | |
| | | index += 20; |
| | | } |
| | | |
| | | if (m_nCurrentGroup == m_nTotalGroup && m_listener.onEvent != nullptr) { |
| | | m_listener.onEvent(this, STEP_EVENT_PROCESS_DATA, nullptr); |
| | | if (m_nCurrentGroup == m_nTotalGroup) { |
| | | ASSERT(m_pEquipment); |
| | | m_pEquipment->onStepEvent(this, STEP_EVENT_PROCESS_DATA); |
| | | } |
| | | |
| | | |