+// Copyright (C) 2006-2014 CEA/DEN, EDF R&D
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+//
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
+#include "PresetPorts.hxx"
#include "VisitorSaveSalomeSchema.hxx"
#include "DataNode.hxx"
#include "PresetNode.hxx"
#include "OutNode.hxx"
#include "StudyNodes.hxx"
#include "ComposedNode.hxx"
-#include "PresetPorts.hxx"
#include "StudyPorts.hxx"
#include "TypeCode.hxx"
_out << " state=\"disabled\">" << endl;
else
_out << ">" << endl;
- writeProperties(node);
writeDataNodeParameters(node);
+ writeProperties(node);
_out << indent(depth) << "</datanode>" << endl;
endCase(node);
DEBTRACE("END visitPresetNode " << _root->getChildName(node));
_out << " state=\"disabled\">" << endl;
else
_out << ">" << endl;
- writeProperties(node);
writeOutNodeParameters(node);
+ writeProperties(node);
_out << indent(depth) << "</outnode>" << endl;
endCase(node);
DEBTRACE("END visitOutNode " << _root->getChildName(node));
_out << " state=\"disabled\">" << endl;
else
_out << ">" << endl;
- writeProperties(node);
writeStudyInNodeParameters(node);
+ writeProperties(node);
_out << indent(depth) << "</datanode>" << endl;
endCase(node);
DEBTRACE("END visitStudyInNode " << _root->getChildName(node));
_out << " state=\"disabled\">" << endl;
else
_out << ">" << endl;
- writeProperties(node);
writeStudyOutNodeParameters(node);
+ writeProperties(node);
_out << indent(depth) << "</outnode>" << endl;
endCase(node);
DEBTRACE("END visitStudyOutNode " << _root->getChildName(node));
_out << indent(depth) << "<parameter name=\"" << (*it)->getName() << "\" type=\""
<< (*it)->edGetType()->name() << "\">" << endl;
OutputPresetPort *outp = dynamic_cast<OutputPresetPort*>(*it);
- assert(outp);
+ YASSERT(outp);
_out << indent(depth+1) << outp->getData();
_out << indent(depth) << "</parameter>" << endl;
}
_out << indent(depth) << "<parameter name=\"" << (*it)->getName() << "\" type=\""
<< (*it)->edGetType()->name() << "\" ref=\"";
OutputStudyPort *outp = dynamic_cast<OutputStudyPort*>(*it);
- assert(outp);
+ YASSERT(outp);
_out << outp->getData() << "\"/>" << endl;
}
}
_out << indent(depth) << "<parameter name=\"" << (*it)->getName() << "\" type=\""
<< (*it)->edGetType()->name() << "\" ref=\"";
InputStudyPort *inp = dynamic_cast<InputStudyPort*>(*it);
- assert(inp);
+ YASSERT(inp);
_out << inp->getData() << "\"/>" << endl;
}
}