Salome HOME
9cfaed64c8ca2e907f63ae2ae07631a7d4650e3f
[samples/datafiles.git] / Yacs / Schemas / setports.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 <?xml version='1.0'?>
22 <proc>
23    <type name="bool" kind="bool"/>
24    <sequence name="boolvec" content="bool"/>
25    <type name="double" kind="double"/>
26    <sequence name="dblevec" content="double"/>
27    <objref name="file" id="file"/>
28    <type name="int" kind="int"/>
29    <sequence name="intvec" content="int"/>
30    <type name="string" kind="string"/>
31    <sequence name="string_array" content="string"/>
32    <sequence name="stringvec" content="string"/>
33    <inline name="PyScript0">
34       <script><code><![CDATA[]]></code></script>
35       <inport name="i1" type="bool"/>
36       <inport name="i2" type="int"/>
37       <inport name="i3" type="double"/>
38       <inport name="strseq" type="string_array"/>
39       <inport name="strvec" type="stringvec"/>
40       <inport name="boolvec" type="boolvec"/>
41       <inport name="dblevec" type="dblevec"/>
42       <inport name="intvec" type="intvec"/>
43       <inport name="i0" type="string"/>
44    </inline>
45    <datanode name="PresetNode0">
46       <parameter name="o1" type="bool">
47          <value><boolean>1</boolean></value>
48       </parameter>
49       <parameter name="o2" type="int">
50          <value><int>12</int></value>
51       </parameter>
52       <parameter name="o3" type="double">
53          <value><double>123.4</double></value>
54       </parameter>
55       <parameter name="o4" type="string">
56          <value><string>aaaab</string></value>
57       </parameter>
58       <parameter name="o0" type="string_array">
59          <value><array><data>
60 <value><string>a</string></value>
61 <value><string>ab</string></value>
62 </data></array></value>
63       </parameter>
64       <parameter name="o6" type="stringvec">
65          <value><array><data>
66 <value><string>ab</string></value>
67 <value><string>ac</string></value>
68 </data></array></value>
69       </parameter>
70       <parameter name="o7" type="boolvec">
71          <value><array><data>
72 <value><boolean>1</boolean></value>
73 <value><boolean>0</boolean></value>
74 <value><boolean>1</boolean></value>
75 </data></array></value>
76       </parameter>
77       <parameter name="o8" type="dblevec">
78          <value><array><data>
79 <value><double>12.3</double></value>
80 <value><double>4.5e+08</double></value>
81 </data></array></value>
82       </parameter>
83       <parameter name="o9" type="intvec">
84          <value><array><data>
85 <value><int>4</int></value>
86 <value><int>5</int></value>
87 <value><int>7</int></value>
88 </data></array></value>
89       </parameter>
90    </datanode>
91    <inline name="PyScript1">
92       <script><code><![CDATA[]]></code></script>
93       <inport name="i2" type="bool"/>
94       <inport name="i3" type="int"/>
95       <inport name="i4" type="double"/>
96       <inport name="i5" type="string"/>
97       <inport name="i10" type="string_array"/>
98       <inport name="i11" type="stringvec"/>
99       <inport name="i12" type="boolvec"/>
100       <inport name="i13" type="dblevec"/>
101       <inport name="i14" type="intvec"/>
102    </inline>
103    <control> <fromnode>PresetNode0</fromnode> <tonode>PyScript1</tonode> </control>
104    <datalink control="false">
105       <fromnode>PresetNode0</fromnode> <fromport>o1</fromport>
106       <tonode>PyScript1</tonode> <toport>i2</toport>
107    </datalink>
108    <datalink control="false">
109       <fromnode>PresetNode0</fromnode> <fromport>o2</fromport>
110       <tonode>PyScript1</tonode> <toport>i3</toport>
111    </datalink>
112    <datalink control="false">
113       <fromnode>PresetNode0</fromnode> <fromport>o3</fromport>
114       <tonode>PyScript1</tonode> <toport>i4</toport>
115    </datalink>
116    <datalink control="false">
117       <fromnode>PresetNode0</fromnode> <fromport>o4</fromport>
118       <tonode>PyScript1</tonode> <toport>i5</toport>
119    </datalink>
120    <datalink control="false">
121       <fromnode>PresetNode0</fromnode> <fromport>o0</fromport>
122       <tonode>PyScript1</tonode> <toport>i10</toport>
123    </datalink>
124    <datalink control="false">
125       <fromnode>PresetNode0</fromnode> <fromport>o6</fromport>
126       <tonode>PyScript1</tonode> <toport>i11</toport>
127    </datalink>
128    <datalink control="false">
129       <fromnode>PresetNode0</fromnode> <fromport>o7</fromport>
130       <tonode>PyScript1</tonode> <toport>i12</toport>
131    </datalink>
132    <datalink control="false">
133       <fromnode>PresetNode0</fromnode> <fromport>o8</fromport>
134       <tonode>PyScript1</tonode> <toport>i13</toport>
135    </datalink>
136    <datalink control="false">
137       <fromnode>PresetNode0</fromnode> <fromport>o9</fromport>
138       <tonode>PyScript1</tonode> <toport>i14</toport>
139    </datalink>
140    <parameter>
141       <tonode>PyScript0</tonode><toport>i1</toport>
142       <value><boolean>0</boolean></value>
143    </parameter>
144    <parameter>
145       <tonode>PyScript0</tonode><toport>i2</toport>
146       <value><int>994</int></value>
147    </parameter>
148    <parameter>
149       <tonode>PyScript0</tonode><toport>i3</toport>
150       <value><double>4.98767e+42</double></value>
151    </parameter>
152    <parameter>
153       <tonode>PyScript0</tonode><toport>strseq</toport>
154       <value><array><data>
155 <value><string>aa</string></value>
156 <value><string>bbb</string></value>
157 <value><string>ccccc</string></value>
158 <value><string>rr</string></value>
159 </data></array></value>
160    </parameter>
161    <parameter>
162       <tonode>PyScript0</tonode><toport>strvec</toport>
163       <value><array><data>
164 <value><string>albert</string></value>
165 <value><string>londres</string></value>
166 <value><string>journal</string></value>
167 <value><string>tutu</string></value>
168 </data></array></value>
169    </parameter>
170    <parameter>
171       <tonode>PyScript0</tonode><toport>boolvec</toport>
172       <value><array><data>
173 <value><boolean>0</boolean></value>
174 <value><boolean>1</boolean></value>
175 <value><boolean>1</boolean></value>
176 <value><boolean>0</boolean></value>
177 <value><boolean>0</boolean></value>
178 <value><boolean>0</boolean></value>
179 </data></array></value>
180    </parameter>
181    <parameter>
182       <tonode>PyScript0</tonode><toport>dblevec</toport>
183       <value><array><data>
184 <value><double>1.2</double></value>
185 <value><double>-33</double></value>
186 <value><double>-1870</double></value>
187 </data></array></value>
188    </parameter>
189    <parameter>
190       <tonode>PyScript0</tonode><toport>intvec</toport>
191       <value><array><data>
192 <value><int>12</int></value>
193 <value><int>4</int></value>
194 <value><int>46</int></value>
195 </data></array></value>
196    </parameter>
197    <parameter>
198       <tonode>PyScript0</tonode><toport>i0</toport>
199       <value><string>c'est super! Hein, non...</string></value>
200    </parameter>
201 </proc>