Salome HOME
Merge Python 3 porting.
[modules/yacs.git] / src / salomegui / resources / YACSSchemaCatalog.xml
1 <?xml version='1.0'?>
2 <proc>
3    <objref name="GEOM_Shape" id="IDL:GEOM/GEOM_Object:1.0"/>
4    <type name="bool" kind="bool"/>
5    <sequence name="boolvec" content="bool"/>
6    <type name="double" kind="double"/>
7    <sequence name="dblevec" content="double"/>
8    <objref name="file" id="file"/>
9    <type name="int" kind="int"/>
10    <sequence name="intvec" content="int"/>
11    <objref name="pyobj" id="python:obj:1.0"/>
12    <type name="string" kind="string"/>
13    <sequence name="stringvec" content="string"/>
14    <container name="DefaultContainer">
15       <property name="container_name" value="FactoryServer"/>
16       <property name="hostname" value="localhost"/>
17    </container>
18    <inline name="PyScript0">
19       <script><code><![CDATA[import geompy
20 n=1
21 box = geompy.MakeBoxDXDYDZ(10,10,10)
22 id_cyl_Int = geompy.addToStudy(box,"Box_%d" % n)]]></code></script>
23       <outport name="box" type="GEOM_Shape"/>
24    </inline>
25    <inline name="PyLoadPMML">
26       <script><code><![CDATA[ 
27 import sys;
28 from PMML import *;
29 pmmlObj = PMMLlib( filename );   
30 pmmlObj.SetCurrentModel( modelname , eval(pmmltype) );
31 myFunc = "pyFunc";
32 myHeader = "Function processed in YACCS";
33 myCode = pmmlObj.ExportPyStr(myFunc, myHeader);
34 exec myCode;
35 ]]></code></script>
36       <inport name="filename" type="string"/>
37       <inport name="modelname" type="string"/> 
38       <inport name="pmmltype" type="string"/>      
39       <outport name="pyFunc" type="pyobj"/>
40    </inline>   
41    <presentation name="PyScript0" x="9" y="80.5" width="227.5" height="110"/>
42    <presentation name="PyTestPMML" x="9" y="80.5" width="227.5" height="110"/>   
43    <presentation name="__ROOT__" x="0" y="0" width="246" height="199.5"/>
44 </proc>