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)
: Allow to manage memory of instances of T. The only constraint on T is to have method incrRef and De...
Base class for all composed nodes.
std::string getChildName(const Node *node) const
std::string getName() const
YACS::BASES::Mutex & getTheMutexForSchedulerUpdate()
std::list< InputPort * > getLocalInputPorts() const
redefined on derived class of ComposedNode. by default a ComposedNode has no port by itself
ForEachLoopPassedData * getProcessedData() const
const std::vector< unsigned int > & getIds() const
const std::vector< std::string > & getOutputNames() const
const std::vector< SequenceAny * > & getOutputs() const
Loop node for parametric calculation.
virtual YACS::StatesForNode getState() const
Base class for all schema objects.
virtual void accept(Visitor *visitor)
virtual void visitForEachLoop(ForEachLoop *node)
VisitorSalomeSaveState(ComposedNode *root)
virtual ~VisitorSalomeSaveState()
std::map< int, std::string > _nodeStateName
void openFileDump(const std::string &xmlDump)
const char * what(void) const noexcept
YACSRUNTIMESALOME_EXPORT void schemaSaveState(Proc *proc, Executor *exec, const std::string &xmlSchemaFile)
YACSRUNTIMESALOME_EXPORT void schemaSaveStateUnsafe(Proc *proc, const std::string &xmlSchemaFile)
std::string convertNeutralXml(const TypeCode *t, YACS::ENGINE::Any *data)