本文整理汇总了C++中SequencePtr::InsertStep方法的典型用法代码示例。如果您正苦于以下问题:C++ SequencePtr::InsertStep方法的具体用法?C++ SequencePtr::InsertStep怎么用?C++ SequencePtr::InsertStep使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SequencePtr
的用法示例。
在下文中一共展示了SequencePtr::InsertStep方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: AddStep
void Translator::AddStep(IEnginePtr engine, MSXML2::IXMLDOMNodePtr currentStep, std::map<std::string, std::string> stepProperties, std::string stepName, SequenceFilePtr seqFile, std::string parentSeqName)
{
SequencePtr seq = seqFile->GetSequenceByName(parentSeqName.c_str());
std::string stepTypeString = GetParser()->GetStepType(currentStep);
StepPtr newStep = engine->NewStep(GetAdapter(stepTypeString).c_str() ,GetStepType(stepTypeString).c_str());
newStep->Name = stepName.c_str();
PropertyObjectPtr stepPropObject = newStep->AsPropertyObject();
SetStepProperties(currentStep, stepPropObject, stepProperties);
if ( GetParser()->StepHasResult( currentStep))
{
std::map<std::string, std::string> resultData = GetParser()->GetResultData(currentStep);
AddReportVariable(newStep->AsPropertyObject(), seq, resultData);
}
seq->InsertStep(newStep, m_totalSteps, StepGroup_Main);
m_totalSteps++;
//Add the step to the TypeUsagelist of the sequence file
seqFile->AsPropertyObjectFile()->GetTypeUsageList()->AddUsedTypes(newStep->AsPropertyObject());
}