Salome HOME
Merge from V6_main_20120808 08Aug12
[samples/datafiles.git] / Yacs / Schemas / study1.xml
diff --git a/Yacs/Schemas/study1.xml b/Yacs/Schemas/study1.xml
new file mode 100644 (file)
index 0000000..164385a
--- /dev/null
@@ -0,0 +1,64 @@
+<!--
+  Copyright (C) 2006-2011  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.
+
+  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
+
+-->
+<proc>
+    <!--types -->
+    <objref name="GEOM/GEOM_Object"/>
+    <sequence name="dblevec" content="double"/>
+    <struct name="s1" >
+      <member name="s" type="double"/>
+    </struct>
+
+
+    <!--nodes -->
+    <datanode name="s" kind="study" >
+      <property name="StudyID" value="1" />
+      <parameter name="b" type="GEOM/GEOM_Object" ref="0:1:2:2"/>
+      <parameter name="c" type="bool" ref="/Geometry/Box_1"/>
+    </datanode>
+
+    <inline name="node0" >
+      <script>
+        <code>import GEOM</code>
+        <code>p1=p1._narrow(GEOM.GEOM_Object)</code>
+        <code>print p1</code>
+      </script>
+      <inport name="p1" type="GEOM/GEOM_Object"/>
+      <outport name="p1" type="GEOM/GEOM_Object"/>
+    </inline>
+
+    <outnode name="os" kind="study" ref="stud1.hdf" >
+      <property name="StudyID" value="3" />
+      <parameter name="b" type="GEOM/GEOM_Object" ref="/Save/x"/>
+      <!--       <parameter name="c" type="GEOM/GEOM_Object" ref="/Geometry/Box_2"/> 
+      <parameter name="b" type="GEOM/GEOM_Object" ref="0:1:1:6"/>
+      -->
+    </outnode>
+    <!-- datalink -->
+    <datalink>
+        <fromnode>s</fromnode><fromport>b</fromport>
+        <tonode>node0</tonode> <toport>p1</toport>
+    </datalink>
+    <datalink>
+        <fromnode>node0</fromnode><fromport>p1</fromport>
+        <tonode>os</tonode> <toport>b</toport>
+    </datalink>
+
+</proc>