/tags/rel-1-3-25/SWIG/Examples/xml/example_title_add.expected-xml
Unknown | 119 lines | 117 code | 2 blank | 0 comment | 0 complexity | ae9e1fc6c0ea94e2131a04bd379e9d00 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
1<swigxml:swig name="namespaces" xmlns:swigxml="http://jniplusplus.sourceforge.net" xmlns:swig="http://swig.sourceforge.net" xmlns:c="http://www.ansi.org" > 2 <swig:top > 3 <swigxml:child > 4 <swig:file name="../../Lib/swig.swg" > 5 <swigxml:type string="include" /> 6 </swig:file> 7 <swig:file name="example_title_add.i" > 8 <swigxml:child > 9 <swig:module name="example" /> 10 <swig:insert > 11 <swigxml:code > 12 13#include "example.h" 14 </swigxml:code> 15 </swig:insert> 16 <c:class name="Vector" > 17 <swigxml:child > 18 <c:access name="public" /> 19 <c:function name="Vector" > 20 <swigxml:parms > 21 <swigxml:parm name="x" > 22 <swigxml:type string="double" /> 23 </swigxml:parm> 24 <swigxml:parm name="y" > 25 <swigxml:type string="double" /> 26 </swigxml:parm> 27 <swigxml:parm name="z" > 28 <swigxml:type string="double" /> 29 </swigxml:parm> 30 </swigxml:parms> 31 <swigxml:type string="int" /> 32 </c:function> 33 <c:destructor name="Vector" /> 34 <c:function name="print" > 35 <swigxml:type string="p.char" /> 36 </c:function> 37 </swigxml:child> 38 <swigxml:classtype string="class" /> 39 <swigxml:namespace string="Vector" /> 40 </c:class> 41 <swig:insert > 42 <swigxml:code > 43 44Vector addv(Vector &a, Vector &b) { 45 return a+b; 46} 47 </swigxml:code> 48 </swig:insert> 49 <c:function name="addv" > 50 <swigxml:parms > 51 <swigxml:parm name="a" > 52 <swigxml:type string="r.Vector" /> 53 </swigxml:parm> 54 <swigxml:parm name="b" > 55 <swigxml:type string="r.Vector" /> 56 </swigxml:parm> 57 </swigxml:parms> 58 <swigxml:code > 59{ 60 return a+b; 61} </swigxml:code> 62 <swigxml:type string="Vector" /> 63 </c:function> 64 <c:class name="VectorArray" > 65 <swigxml:child > 66 <c:access name="public" /> 67 <c:function name="VectorArray" > 68 <swigxml:parms > 69 <swigxml:parm name="maxsize" > 70 <swigxml:type string="int" /> 71 </swigxml:parm> 72 </swigxml:parms> 73 <swigxml:type string="int" /> 74 </c:function> 75 <c:destructor name="VectorArray" /> 76 <c:function name="size" > 77 <swigxml:type string="int" /> 78 </c:function> 79 <swig:addmethods > 80 <swigxml:child > 81 <c:function name="get" > 82 <swigxml:parms > 83 <swigxml:parm name="index" > 84 <swigxml:type string="int" /> 85 </swigxml:parm> 86 </swigxml:parms> 87 <swigxml:code > 88{ 89 return (*self)[index]; 90 } </swigxml:code> 91 <swigxml:type string="r.Vector" /> 92 </c:function> 93 <c:function name="set" > 94 <swigxml:parms > 95 <swigxml:parm name="index" > 96 <swigxml:type string="int" /> 97 </swigxml:parm> 98 <swigxml:parm name="a" > 99 <swigxml:type string="r.Vector" /> 100 </swigxml:parm> 101 </swigxml:parms> 102 <swigxml:code > 103{ 104 (*self)[index] = a; 105 } </swigxml:code> 106 <swigxml:type string="void" /> 107 </c:function> 108 </swigxml:child> 109 </swig:addmethods> 110 </swigxml:child> 111 <swigxml:classtype string="class" /> 112 <swigxml:namespace string="VectorArray" /> 113 </c:class> 114 </swigxml:child> 115 <swigxml:type string="include" /> 116 </swig:file> 117 </swigxml:child> 118 </swig:top> 119</swigxml:swig>