PageRenderTime 44ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 1ms

/trunk/Examples/xml/gnarly.expected-xml

#
Unknown | 206 lines | 206 code | 0 blank | 0 comment | 0 complexity | 921370fa2be077cb2ab80a84571830f7 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="gnarly.i" >
  8. <swigxml:child >
  9. <swig:module name="my_check" />
  10. <c:enum name="color" >
  11. <swigxml:child >
  12. <c:enumvalue name="RED" >
  13. <swigxml:value string="RED" />
  14. </c:enumvalue>
  15. <c:enumvalue name="BLUE" />
  16. <c:enumvalue name="GREEN" />
  17. </swigxml:child>
  18. </c:enum>
  19. <c:class name="Foo" >
  20. <swigxml:child >
  21. <c:access name="public" />
  22. <c:function name="Foo" >
  23. <swigxml:code >
  24. { } </swigxml:code>
  25. <swigxml:type string="int" />
  26. </c:function>
  27. <c:enum name="speed" >
  28. <swigxml:child >
  29. <c:enumvalue name="IMPULSE" />
  30. <c:enumvalue name="WARP" />
  31. <c:enumvalue name="LUDICROUS" />
  32. </swigxml:child>
  33. </c:enum>
  34. <c:function name="enum_test" >
  35. <swigxml:parms >
  36. <swigxml:parm name="s" >
  37. <swigxml:type string="speed" />
  38. </swigxml:parm>
  39. </swigxml:parms>
  40. <swigxml:type string="void" />
  41. </c:function>
  42. </swigxml:child>
  43. <swigxml:classtype string="class" />
  44. <swigxml:namespace string="Foo" />
  45. </c:class>
  46. <c:function name="enum_test" >
  47. <swigxml:parms >
  48. <swigxml:parm name="c" >
  49. <swigxml:type string="color" />
  50. </swigxml:parm>
  51. <swigxml:parm name="s" >
  52. <swigxml:type string="Foo::speed" />
  53. </swigxml:parm>
  54. </swigxml:parms>
  55. <swigxml:type string="void" />
  56. </c:function>
  57. <swig:typemap >
  58. <swigxml:code >
  59. {
  60. WHATEVER MAKES YOU HAPPY AS RESULT
  61. } </swigxml:code>
  62. <swigxml:method string="out" />
  63. <swigxml:type string="p.int" />
  64. </swig:typemap>
  65. <swig:typemap >
  66. <swigxml:code >
  67. {
  68. WHATEVER MAKES YOU HAPPY AS PARAMETER
  69. } </swigxml:code>
  70. <swigxml:method string="in" />
  71. <swigxml:type string="p.int" />
  72. </swig:typemap>
  73. <swig:pragma name="DEBUG" >
  74. <swigxml:value string="false" />
  75. <swigxml:lang string="xml" />
  76. </swig:pragma>
  77. <c:function name="my_gcd" >
  78. <swigxml:parms >
  79. <swigxml:parm name="x" >
  80. <swigxml:type string="p.q(const).char" />
  81. </swigxml:parm>
  82. <swigxml:parm name="y" >
  83. <swigxml:type string="a().p.int" />
  84. </swigxml:parm>
  85. <swigxml:parm name="r" >
  86. <swigxml:type string="p.int" />
  87. </swigxml:parm>
  88. <swigxml:parm name="op" >
  89. <swigxml:type string="p.f(int,int).int" />
  90. </swigxml:parm>
  91. </swigxml:parms>
  92. <swigxml:storage string="extern" />
  93. <swigxml:type string="p.int" />
  94. </c:function>
  95. <c:variable name="my_foo" >
  96. <swigxml:storage string="extern" />
  97. <swigxml:type string="double" />
  98. </c:variable>
  99. <c:function name="my_void" >
  100. <swigxml:type string="void" />
  101. </c:function>
  102. <c:function name="my_empty" >
  103. <swigxml:type string="int" />
  104. </c:function>
  105. <c:variable name="my_dutch" >
  106. <swigxml:value string="1.0" />
  107. <swigxml:type string="q(const).double" />
  108. </c:variable>
  109. <c:class name="my_union" >
  110. <swigxml:child >
  111. <c:variable name="my_iii" >
  112. <swigxml:type string="int" />
  113. </c:variable>
  114. <c:variable name="my_ccc" >
  115. <swigxml:type string="char" />
  116. </c:variable>
  117. </swigxml:child>
  118. <swigxml:classtype string="union" />
  119. <swigxml:namespace string="my_union" />
  120. </c:class>
  121. <c:class name="my_struct" >
  122. <swigxml:child >
  123. <c:access name="public" />
  124. <c:destructor name="my_struct" >
  125. <swigxml:storage string="virtual" />
  126. </c:destructor>
  127. <c:function name="my_foo" >
  128. <swigxml:type string="int" />
  129. </c:function>
  130. <c:access name="protected" />
  131. <c:variable name="my_bar" >
  132. <swigxml:type string="int" />
  133. </c:variable>
  134. <c:variable name="x" >
  135. <swigxml:type string="double" />
  136. </c:variable>
  137. <c:variable name="y" >
  138. <swigxml:type string="double" />
  139. </c:variable>
  140. <c:function name="area" >
  141. <swigxml:abstract string="1" />
  142. <swigxml:storage string="virtual" />
  143. <swigxml:type string="double" />
  144. </c:function>
  145. <c:variable name="nshapes" >
  146. <swigxml:storage string="static" />
  147. <swigxml:type string="int" />
  148. </c:variable>
  149. </swigxml:child>
  150. <swigxml:classtype string="struct" />
  151. <swigxml:namespace string="my_struct" />
  152. </c:class>
  153. <c:class name="my_class" >
  154. <swigxml:child >
  155. <c:access name="public" />
  156. <c:function name="my_class" >
  157. <swigxml:parms >
  158. <swigxml:parm name="c" >
  159. <swigxml:type string="char" />
  160. </swigxml:parm>
  161. </swigxml:parms>
  162. <swigxml:type string="int" />
  163. </c:function>
  164. <c:access name="private" />
  165. <c:destructor name="my_class" />
  166. <c:function name="my_func" >
  167. <swigxml:parms >
  168. <swigxml:parm >
  169. <swigxml:type string="my_class" />
  170. </swigxml:parm>
  171. <swigxml:parm name="x" >
  172. <swigxml:type string="p.p.char" />
  173. </swigxml:parm>
  174. <swigxml:parm name="y" >
  175. <swigxml:type string="a().int" />
  176. </swigxml:parm>
  177. <swigxml:parm name="r" >
  178. <swigxml:type string="r.q(const).int" />
  179. </swigxml:parm>
  180. </swigxml:parms>
  181. <swigxml:storage string="virtual" />
  182. <swigxml:type string="p.q(const).int" />
  183. </c:function>
  184. <c:variable name="my_foo" >
  185. <swigxml:type string="a(128).double" />
  186. </c:variable>
  187. <c:variable name="i" >
  188. <swigxml:type string="q(const).my_int" />
  189. </c:variable>
  190. </swigxml:child>
  191. <swigxml:classtype string="class" />
  192. <swigxml:bases >
  193. <swigxml:item name="my_struct" />
  194. <swigxml:item name="my_union" />
  195. </swigxml:bases>
  196. <swigxml:namespace string="my_class" />
  197. </c:class>
  198. <c:typedef name="my_int" >
  199. <swigxml:type string="int" />
  200. </c:typedef>
  201. </swigxml:child>
  202. <swigxml:type string="include" />
  203. </swig:file>
  204. </swigxml:child>
  205. </swig:top>
  206. </swigxml:swig>