Salome HOME
Copyrights update 2015.
[samples/datafiles.git] / Yacs / Schemas / study1.xml
1 <!--
2   Copyright (C) 2006-2015  CEA/DEN, EDF R&D
3
4   This library is free software; you can redistribute it and/or
5   modify it under the terms of the GNU Lesser General Public
6   License as published by the Free Software Foundation; either
7   version 2.1 of the License, or (at your option) any later version.
8
9   This library is distributed in the hope that it will be useful,
10   but WITHOUT ANY WARRANTY; without even the implied warranty of
11   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12   Lesser General Public License for more details.
13
14   You should have received a copy of the GNU Lesser General Public
15   License along with this library; if not, write to the Free Software
16   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
17
18   See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19
20 -->
21 <proc>
22     <!--types -->
23     <objref name="GEOM/GEOM_Object"/>
24     <sequence name="dblevec" content="double"/>
25     <struct name="s1" >
26       <member name="s" type="double"/>
27     </struct>
28
29
30     <!--nodes -->
31     <datanode name="s" kind="study" >
32       <property name="StudyID" value="1" />
33       <parameter name="b" type="GEOM/GEOM_Object" ref="0:1:2:2"/>
34       <parameter name="c" type="bool" ref="/Geometry/Box_1"/>
35     </datanode>
36
37     <inline name="node0" >
38       <script>
39         <code>import GEOM</code>
40         <code>p1=p1._narrow(GEOM.GEOM_Object)</code>
41         <code>print p1</code>
42       </script>
43       <inport name="p1" type="GEOM/GEOM_Object"/>
44       <outport name="p1" type="GEOM/GEOM_Object"/>
45     </inline>
46
47     <outnode name="os" kind="study" ref="stud1.hdf" >
48       <property name="StudyID" value="3" />
49       <parameter name="b" type="GEOM/GEOM_Object" ref="/Save/x"/>
50       <!--       <parameter name="c" type="GEOM/GEOM_Object" ref="/Geometry/Box_2"/> 
51       <parameter name="b" type="GEOM/GEOM_Object" ref="0:1:1:6"/>
52       -->
53     </outnode>
54     <!-- datalink -->
55     <datalink>
56         <fromnode>s</fromnode><fromport>b</fromport>
57         <tonode>node0</tonode> <toport>p1</toport>
58     </datalink>
59     <datalink>
60         <fromnode>node0</fromnode><fromport>p1</fromport>
61         <tonode>os</tonode> <toport>b</toport>
62     </datalink>
63
64 </proc>