PageRenderTime 55ms CodeModel.GetById 27ms RepoModel.GetById 1ms app.codeStats 0ms

/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. #include "example.h"
  13. </swigxml:code>
  14. </swig:insert>
  15. <c:class name="Vector" >
  16. <swigxml:child >
  17. <c:access name="public" />
  18. <c:function name="Vector" >
  19. <swigxml:parms >
  20. <swigxml:parm name="x" >
  21. <swigxml:type string="double" />
  22. </swigxml:parm>
  23. <swigxml:parm name="y" >
  24. <swigxml:type string="double" />
  25. </swigxml:parm>
  26. <swigxml:parm name="z" >
  27. <swigxml:type string="double" />
  28. </swigxml:parm>
  29. </swigxml:parms>
  30. <swigxml:type string="int" />
  31. </c:function>
  32. <c:destructor name="Vector" />
  33. <c:function name="print" >
  34. <swigxml:type string="p.char" />
  35. </c:function>
  36. </swigxml:child>
  37. <swigxml:classtype string="class" />
  38. <swigxml:namespace string="Vector" />
  39. </c:class>
  40. <swig:insert >
  41. <swigxml:code >
  42. Vector addv(Vector &amp;a, Vector &amp;b) {
  43. return a+b;
  44. }
  45. </swigxml:code>
  46. </swig:insert>
  47. <c:function name="addv" >
  48. <swigxml:parms >
  49. <swigxml:parm name="a" >
  50. <swigxml:type string="r.Vector" />
  51. </swigxml:parm>
  52. <swigxml:parm name="b" >
  53. <swigxml:type string="r.Vector" />
  54. </swigxml:parm>
  55. </swigxml:parms>
  56. <swigxml:code >
  57. {
  58. return a+b;
  59. } </swigxml:code>
  60. <swigxml:type string="Vector" />
  61. </c:function>
  62. <c:class name="VectorArray" >
  63. <swigxml:child >
  64. <c:access name="public" />
  65. <c:function name="VectorArray" >
  66. <swigxml:parms >
  67. <swigxml:parm name="maxsize" >
  68. <swigxml:type string="int" />
  69. </swigxml:parm>
  70. </swigxml:parms>
  71. <swigxml:type string="int" />
  72. </c:function>
  73. <c:destructor name="VectorArray" />
  74. <c:function name="size" >
  75. <swigxml:type string="int" />
  76. </c:function>
  77. <swig:addmethods >
  78. <swigxml:child >
  79. <c:function name="get" >
  80. <swigxml:parms >
  81. <swigxml:parm name="index" >
  82. <swigxml:type string="int" />
  83. </swigxml:parm>
  84. </swigxml:parms>
  85. <swigxml:code >
  86. {
  87. return (*self)[index];
  88. } </swigxml:code>
  89. <swigxml:type string="r.Vector" />
  90. </c:function>
  91. <c:function name="set" >
  92. <swigxml:parms >
  93. <swigxml:parm name="index" >
  94. <swigxml:type string="int" />
  95. </swigxml:parm>
  96. <swigxml:parm name="a" >
  97. <swigxml:type string="r.Vector" />
  98. </swigxml:parm>
  99. </swigxml:parms>
  100. <swigxml:code >
  101. {
  102. (*self)[index] = a;
  103. } </swigxml:code>
  104. <swigxml:type string="void" />
  105. </c:function>
  106. </swigxml:child>
  107. </swig:addmethods>
  108. </swigxml:child>
  109. <swigxml:classtype string="class" />
  110. <swigxml:namespace string="VectorArray" />
  111. </c:class>
  112. </swigxml:child>
  113. <swigxml:type string="include" />
  114. </swig:file>
  115. </swigxml:child>
  116. </swig:top>
  117. </swigxml:swig>