Salome HOME
Update copyrights 2014.
[samples/datafiles.git] / Yacs / Schemas / sinline2.xml
1 <!--
2   Copyright (C) 2006-2014  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     <container name="A"> </container>
24     <!--nodes -->
25   <forloop name="b1" nsteps="5">
26     <sinline name="node1" >
27       <function name="f">
28         <code>import salome</code>
29         <code>salome.salome_init()</code>
30         <code>import PYHELLO_ORB</code>
31         <code>def f(p1):</code>
32         <code>  print __container__from__YACS__</code>
33         <code>  machine,container=__container__from__YACS__.split('/')</code>
34         <code>  param={}</code>
35         <code>  param['hostname']=machine</code>
36         <code>  param['container_name']=container</code>
37         <code>  compo=salome.lcc.LoadComponent(param, "PYHELLO")</code>
38         <code>  print compo.makeBanner(p1)</code>
39         <code>  print p1</code>
40       </function>
41       <load container="A"/>
42       <inport name="p1" type="string"/>
43     </sinline>
44   </forloop>
45
46
47     <!--parameters -->
48     <parameter>
49         <tonode>b1.node1</tonode> <toport>p1</toport>
50         <value><string>chris</string> </value>
51     </parameter>
52
53 </proc>