Salome HOME
Fix for "23669: [CEA 13186] YACS xml scheme files with calls to print function need...
[samples/datafiles.git] / Yacs / Schemas / objref2.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="Obj" id="IDL:eo/Obj:1.0"/>
24     <objref name="eo/C" >
25       <base>Obj</base>
26     </objref>
27     <sequence name="objvec" content="Obj"/>
28
29     <!--nodes -->
30
31     <service name="corba0" >
32       <ref>corbaname:rir:#test.my_context/Echo.Object</ref>
33       <method>echoObj2</method>
34       <inport name="p1" type="Obj"/>
35       <outport name="p1" type="Obj"/>
36     </service>
37
38     <service name="corba1" >
39       <ref>corbaname:rir:#test.my_context/Echo.Object</ref>
40       <method>createC</method>
41       <outport name="p1" type="eo/C"/>
42     </service>
43
44     <inline name="pyth0" >
45       <script>
46         <code>print("p1",p1)</code>
47         <code>print("p2",p2)</code>
48         <code>p1=[p1,p2,p2,p1]</code>
49       </script>
50       <inport name="p1" type="Obj"/>
51       <inport name="p2" type="eo/C"/>
52       <outport name="p1" type="objvec"/>
53     </inline>
54
55     <service name="corba2" >
56       <ref>corbaname:rir:#test.my_context/Echo.Object</ref>
57       <method>echoObjVec</method>
58       <inport name="p1" type="objvec"/>
59       <outport name="p1" type="objvec"/>
60     </service>
61
62     <!--parameters -->
63     <parameter>
64         <tonode>corba0</tonode> <toport>p1</toport>
65         <value><objref>corbaname:rir:#test.my_context/Obj.Object</objref></value>
66     </parameter>
67
68     <!--datalinks -->
69     <datalink>
70       <fromnode>corba0</fromnode><fromport>p1</fromport>
71       <tonode>pyth0</tonode> <toport>p1</toport>
72     </datalink>
73     <datalink>
74       <fromnode>corba1</fromnode><fromport>p1</fromport>
75       <tonode>pyth0</tonode> <toport>p2</toport>
76     </datalink>
77     <datalink>
78       <fromnode>pyth0</fromnode><fromport>p1</fromport>
79       <tonode>corba2</tonode> <toport>p1</toport>
80     </datalink>
81
82 </proc>