2 Copyright (C) 2006-2019 CEA/DEN, EDF R&D
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.
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.
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
18 See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 <!-- a for each loop with 3 branches with a service node corba -->
24 <sequence name="strvec" content="string"/>
27 <container name="A"> </container>
30 <inline name="node0" >
32 <code>p1=["chris%d" % i for i in range(10)]</code>
34 <outport name="p1" type="strvec"/>
37 <foreach name="b1" nbranch="3" type="string" >
38 <sinline name="node2" >
40 <code>import salome</code>
41 <code>salome.salome_init()</code>
42 <code>import PYHELLO_ORB</code>
43 <code>print(__container__from__YACS__)</code>
44 <code>machine,container=__container__from__YACS__.split('/')</code>
46 <code>param['hostname']=machine</code>
47 <code>param['container_name']=container</code>
48 <code>compo=salome.lcc.LoadComponent(param, "PYHELLO")</code>
49 <code>def f(p1):</code>
50 <code> print(compo.makeBanner(p1))</code>
51 <code> print(p1)</code>
52 <code> return p1</code>
55 <inport name="p1" type="string"/>
56 <outport name="p1" type="string"/>
59 <inline name="node1" >
61 <code>print(p1)</code>
63 <inport name="p1" type="strvec"/>
68 <control> <fromnode>node0</fromnode> <tonode>b1</tonode> </control>
72 <fromnode>node0</fromnode><fromport>p1</fromport>
73 <tonode>b1</tonode> <toport>SmplsCollection</toport>
76 <fromnode>b1</fromnode><fromport>SmplPrt</fromport>
77 <tonode>b1.node2</tonode> <toport>p1</toport>
80 <fromnode>b1.node2</fromnode><fromport>p1</fromport>
81 <tonode>node1</tonode> <toport>p1</toport>