|
@@ -1139,27 +1139,33 @@ flag1:
|
|
|
updateTime(true);
|
|
|
|
|
|
// 5.取出并执行当前step的所有command
|
|
|
- map <string, string> retcommand;
|
|
|
+ static CommandMapST* retcommand;
|
|
|
if (currentRecipeType == currentRecipeTypeValue::NormalRecipe)
|
|
|
{
|
|
|
- //retcommand = mainStepList[currentStepNo].commandMap;
|
|
|
+ retcommand = mainStepList.get(currentStepNo)->commandMaps;
|
|
|
}
|
|
|
if (currentRecipeType == currentRecipeTypeValue::SubRecipe)
|
|
|
{
|
|
|
- //retcommand = subStepListMap[currentOtherRecipeKey][currentOtherStepNo].commandMap;
|
|
|
+ retcommand = subStepListMap.get(CovertIntToChar(currentOtherRecipeKey))->get(currentOtherStepNo)->commandMaps;
|
|
|
}
|
|
|
if (currentRecipeType == currentRecipeTypeValue::AlarmRecipe)
|
|
|
{
|
|
|
- //retcommand = alarmStepListMap[currentOtherRecipeKey][currentOtherStepNo].commandMap;
|
|
|
+ retcommand = alarmStepListMap.get(CovertIntToChar(currentOtherRecipeKey))->get(currentOtherStepNo)->commandMaps;
|
|
|
}
|
|
|
if (currentRecipeType == currentRecipeTypeValue::AbortRecipe)
|
|
|
{
|
|
|
- //retcommand = abortStepListMap[currentOtherRecipeKey][currentOtherStepNo].commandMap;
|
|
|
+ retcommand = abortStepListMap.get(CovertIntToChar(currentOtherRecipeKey))->get(currentOtherStepNo)->commandMaps;
|
|
|
}
|
|
|
- map<string, string>::iterator iter;
|
|
|
- for (iter=retcommand.begin();iter!=retcommand.end();iter++)
|
|
|
+
|
|
|
+ for (int i= 0;i<200;i++)
|
|
|
{
|
|
|
- OP->select(iter->first.c_str())->Do();
|
|
|
+ if (retcommand == NULL) break; // 先判断数组指针有效性
|
|
|
+ if (retcommand[i].Command == NULL) continue; // 跳过空元素
|
|
|
+ if (retcommand[i].Param == NULL) continue; // 跳过空元素
|
|
|
+ CommandMapST rc = retcommand[i];
|
|
|
+
|
|
|
+ OP->select(rc.Command);
|
|
|
+ /*OP.*/
|
|
|
/*iter->second;*/ //思考下参数如何处理
|
|
|
}
|
|
|
|