29 using namespace YACS::ENGINE;
42 node->ComposedNode::accept(
this);
46 DEBTRACE(
"VisitorSaveState::visitForEachLoop ------ " << name);
47 _out <<
" <node type='forEachLoop'>" << std::endl;
48 _out <<
" <name>" << name <<
"</name>" << std::endl;
52 std::list<InputPort *>::iterator iter;
53 for(iter = setOfInputPort.begin(); iter != setOfInputPort.end(); iter++)
55 _out <<
" <inputPort>" << std::endl;
56 _out <<
" <name>" << (*iter)->getName() <<
"</name>" << std::endl;
60 _out << (*iter)->dump();
65 _out <<
"<value><error><![CDATA[" << e.
what() <<
"]]></error></value>" << std::endl;
67 _out <<
" </inputPort>" << std::endl;
84 const std::vector<unsigned int>& processedIndexes = processedData->
getIds();
85 std::vector<SequenceAny *>::const_iterator it_outputs;
86 std::vector<std::string>::const_iterator it_names;
90 it_outputs++, it_names++)
92 _out <<
" <loopOutputPort>" << std::endl;
93 _out <<
" <name>" << (*it_names) <<
"</name>" << std::endl;
94 for(
unsigned int i = 0;
i < (*it_outputs)->size();
i++)
96 AnyPtr value = (*(*it_outputs))[
i];
97 _out <<
" <sample><index>" << processedIndexes[
i]<<
"</index>";
101 _out <<
"<value>None</value>";
102 _out <<
" </sample>" << std::endl;
104 _out <<
" </loopOutputPort>" << std::endl;
107 delete processedData;
108 processedData = NULL;
111 _out <<
" </node>" << std::endl;
116 const std::string& xmlSchemaFile)