c1ff8063 by Skip Hines

ILP-536 : added tags for native Java data types

1 parent 3e376a86
...@@ -33,7 +33,9 @@ ...@@ -33,7 +33,9 @@
33 <comment>represents true/false</comment> 33 <comment>represents true/false</comment>
34 <lang name="c" type="bool" include="stdbool.h"/> 34 <lang name="c" type="bool" include="stdbool.h"/>
35 <lang name="cpp" type="bool"/> 35 <lang name="cpp" type="bool"/>
36 <lang name="java" type="XidBool" include="com.comtechtel.tensor.xid.XidBool"/> 36 <lang name="java" type="XidBool" include="com.comtechtel.tensor.xid.XidBool">
37 <tag name="native" value="boolean"/>
38 </lang>
37 <lang name="node" type="XidBool"/> 39 <lang name="node" type="XidBool"/>
38 </type> 40 </type>
39 41
...@@ -41,14 +43,18 @@ ...@@ -41,14 +43,18 @@
41 <comment>8-bit, unsigned value</comment> 43 <comment>8-bit, unsigned value</comment>
42 <lang name="c" type="uint8_t" include="stdint.h"/> 44 <lang name="c" type="uint8_t" include="stdint.h"/>
43 <lang name="cpp" type="uint8_t" include="cstdint"/> 45 <lang name="cpp" type="uint8_t" include="cstdint"/>
44 <lang name="java" type="XidByte" include="com.comtechtel.tensor.xid.XidByte" /> 46 <lang name="java" type="XidByte" include="com.comtechtel.tensor.xid.XidByte">
47 <tag name="native" value="byte"/>
48 </lang>
45 <lang name="node" type="XidUInt8"/> 49 <lang name="node" type="XidUInt8"/>
46 </type> 50 </type>
47 <type name="uint16" size="2"> 51 <type name="uint16" size="2">
48 <comment>16-bit, unsigned value</comment> 52 <comment>16-bit, unsigned value</comment>
49 <lang name="c" type="uint16_t" include="stdint.h"/> 53 <lang name="c" type="uint16_t" include="stdint.h"/>
50 <lang name="cpp" type="uint16_t" include="cstdint"/> 54 <lang name="cpp" type="uint16_t" include="cstdint"/>
51 <lang name="java" type="XidShort" include="com.comtechtel.tensor.xid.XidShort"/> 55 <lang name="java" type="XidShort" include="com.comtechtel.tensor.xid.XidShort">
56 <tag name="native" value="short"/>
57 </lang>
52 <lang name="node" type="XidUShort"/> 58 <lang name="node" type="XidUShort"/>
53 </type> 59 </type>
54 <type name="uint24" size="3"> 60 <type name="uint24" size="3">
...@@ -62,14 +68,18 @@ ...@@ -62,14 +68,18 @@
62 <comment>32-bit, unsigned value</comment> 68 <comment>32-bit, unsigned value</comment>
63 <lang name="c" type="uint32_t" include="stdint.h"/> 69 <lang name="c" type="uint32_t" include="stdint.h"/>
64 <lang name="cpp" type="uint32_t" include="cstdint"/> 70 <lang name="cpp" type="uint32_t" include="cstdint"/>
65 <lang name="java" type="XidInt" include="com.comtechtel.tensor.xid.XidInt"/> 71 <lang name="java" type="XidInt" include="com.comtechtel.tensor.xid.XidInt">
72 <tag name="native" value="int"/>
73 </lang>
66 <lang name="node" type="XidUInt"/> 74 <lang name="node" type="XidUInt"/>
67 </type> 75 </type>
68 <type name="uint64" size="8"> 76 <type name="uint64" size="8">
69 <comment>64-bit, unsigned value</comment> 77 <comment>64-bit, unsigned value</comment>
70 <lang name="c" type="uint64_t" include="stdint.h"/> 78 <lang name="c" type="uint64_t" include="stdint.h"/>
71 <lang name="cpp" type="uint64_t" include="cstdint"/> 79 <lang name="cpp" type="uint64_t" include="cstdint"/>
72 <lang name="java" type="XidLong" include="com.comtechtel.tensor.xid.XidLong"/> 80 <lang name="java" type="XidLong" include="com.comtechtel.tensor.xid.XidLong">
81 <tag name="native" value="long"/>
82 </lang>
73 <lang name="node" type="XidULong"/> 83 <lang name="node" type="XidULong"/>
74 </type> 84 </type>
75 85
...@@ -77,14 +87,18 @@ ...@@ -77,14 +87,18 @@
77 <comment>8-bit, signed value</comment> 87 <comment>8-bit, signed value</comment>
78 <lang name="c" type="int8_t" include="stdint.h"/> 88 <lang name="c" type="int8_t" include="stdint.h"/>
79 <lang name="cpp" type="int8_t" include="cstdint"/> 89 <lang name="cpp" type="int8_t" include="cstdint"/>
80 <lang name="java" type="XidByte" include="com.comtechtel.tensor.xid.XidByte"/> 90 <lang name="java" type="XidByte" include="com.comtechtel.tensor.xid.XidByte">
91 <tag name="native" value="byte"/>
92 </lang>
81 <lang name="node" type="XidInt8"/> 93 <lang name="node" type="XidInt8"/>
82 </type> 94 </type>
83 <type name="int16" size="2"> 95 <type name="int16" size="2">
84 <comment>16-bit, signed value</comment> 96 <comment>16-bit, signed value</comment>
85 <lang name="c" type="int16_t" include="stdint.h"/> 97 <lang name="c" type="int16_t" include="stdint.h"/>
86 <lang name="cpp" type="int16_t" include="cstdint"/> 98 <lang name="cpp" type="int16_t" include="cstdint"/>
87 <lang name="java" type="XidShort" include="com.comtechtel.tensor.xid.XidShort" /> 99 <lang name="java" type="XidShort" include="com.comtechtel.tensor.xid.XidShort">
100 <tag name="native" value="short"/>
101 </lang>
88 <lang name="node" type="XidShort"/> 102 <lang name="node" type="XidShort"/>
89 </type> 103 </type>
90 <type name="int24" size="3"> 104 <type name="int24" size="3">
...@@ -98,14 +112,18 @@ ...@@ -98,14 +112,18 @@
98 <comment>32-bit, signed value</comment> 112 <comment>32-bit, signed value</comment>
99 <lang name="c" type="int32_t" include="stdint.h"/> 113 <lang name="c" type="int32_t" include="stdint.h"/>
100 <lang name="cpp" type="int32_t" include="cstdint"/> 114 <lang name="cpp" type="int32_t" include="cstdint"/>
101 <lang name="java" type="XidInt" include="com.comtechtel.tensor.xid.XidInt"/> 115 <lang name="java" type="XidInt" include="com.comtechtel.tensor.xid.XidInt">
116 <tag name="native" value="int"/>
117 </lang>
102 <lang name="node" type="XidInt"/> 118 <lang name="node" type="XidInt"/>
103 </type> 119 </type>
104 <type name="int64" size="8"> 120 <type name="int64" size="8">
105 <comment>64-bit, signed value</comment> 121 <comment>64-bit, signed value</comment>
106 <lang name="c" type="int64_t" include="stdint.h"/> 122 <lang name="c" type="int64_t" include="stdint.h"/>
107 <lang name="cpp" type="int64_t" include="cstdint"/> 123 <lang name="cpp" type="int64_t" include="cstdint"/>
108 <lang name="java" type="XidLong" include="com.comtechtel.tensor.xid.XidLong"/> 124 <lang name="java" type="XidLong" include="com.comtechtel.tensor.xid.XidLong">
125 <tag name="native" value="long"/>
126 </lang>
109 <lang name="node" type="XidLong"/> 127 <lang name="node" type="XidLong"/>
110 </type> 128 </type>
111 129
...@@ -122,7 +140,9 @@ ...@@ -122,7 +140,9 @@
122 <artifact>https://wikipedia.org/wiki/Single-precision_floating-point_format</artifact> 140 <artifact>https://wikipedia.org/wiki/Single-precision_floating-point_format</artifact>
123 <lang name="c" type="float"/> 141 <lang name="c" type="float"/>
124 <lang name="cpp" type="float"/> 142 <lang name="cpp" type="float"/>
125 <lang name="java" type="XidFloat" include="com.comtechtel.tensor.xid.XidFloat"/> 143 <lang name="java" type="XidFloat" include="com.comtechtel.tensor.xid.XidFloat">
144 <tag name="native" value="float"/>
145 </lang>
126 <lang name="node" type="XidFloat"/> 146 <lang name="node" type="XidFloat"/>
127 </type> 147 </type>
128 <type name="float64" size="8"> 148 <type name="float64" size="8">
...@@ -130,7 +150,9 @@ ...@@ -130,7 +150,9 @@
130 <artifact>https://wikipedia.org/wiki/Double-precision_floating-point_format</artifact> 150 <artifact>https://wikipedia.org/wiki/Double-precision_floating-point_format</artifact>
131 <lang name="c" type="double"/> 151 <lang name="c" type="double"/>
132 <lang name="cpp" type="double"/> 152 <lang name="cpp" type="double"/>
133 <lang name="java" type="XidDouble" include="com.comtechtel.tensor.xid.XidDouble"/> 153 <lang name="java" type="XidDouble" include="com.comtechtel.tensor.xid.XidDouble">
154 <tag name="native" value="double"/>
155 </lang>
134 <lang name="node" type="XidDouble"/> 156 <lang name="node" type="XidDouble"/>
135 </type> 157 </type>
136 <!-- 158 <!--
...@@ -145,7 +167,9 @@ ...@@ -145,7 +167,9 @@
145 <comment>A single byte</comment> 167 <comment>A single byte</comment>
146 <lang name="c" type="uint8_t" include="stdint.h"/> 168 <lang name="c" type="uint8_t" include="stdint.h"/>
147 <lang name="cpp" type="uint8_t" include="cstdint"/> 169 <lang name="cpp" type="uint8_t" include="cstdint"/>
148 <lang name="java" type="XidByte" include="com.comtechtel.tensor.xid.XidByte"/> 170 <lang name="java" type="XidByte" include="com.comtechtel.tensor.xid.XidByte">
171 <tag name="native" value="byte"/>
172 </lang>
149 <lang name="node" type="XidUInt8"/> 173 <lang name="node" type="XidUInt8"/>
150 </type> 174 </type>
151 <type name="raw"> 175 <type name="raw">
...@@ -161,7 +185,9 @@ ...@@ -161,7 +185,9 @@
161 <comment>Variable sized collection of characters</comment> 185 <comment>Variable sized collection of characters</comment>
162 <lang name="c" type="CXMFString" include="Tensor/CXMF/CXMFString.h"/> 186 <lang name="c" type="CXMFString" include="Tensor/CXMF/CXMFString.h"/>
163 <lang name="cpp" type="std::string" include="string"/> 187 <lang name="cpp" type="std::string" include="string"/>
164 <lang name="java" type="XidString" include="com.comtechtel.tensor.xid.XidString"/> 188 <lang name="java" type="XidString" include="com.comtechtel.tensor.xid.XidString">
189 <tag name="native" value="String"/>
190 </lang>
165 <lang name="node" type="XidString"/> 191 <lang name="node" type="XidString"/>
166 </type> 192 </type>
167 193
...@@ -289,23 +315,26 @@ ...@@ -289,23 +315,26 @@
289 315
290 <!-- These types are not intended to be used in XID declarations. --> 316 <!-- These types are not intended to be used in XID declarations. -->
291 <!-- They are used in XIDCG so that types are not hardcoded. --> 317 <!-- They are used in XIDCG so that types are not hardcoded. -->
292 <!-- In theory, you can override "Atom",etc. with your our API compatible implementation, 318 <!-- In theory, you can override "Atom",etc. with your own API compatible implementation,
293 renerate and have a completely different encoding support. 319 renerate and have a completely different encoding support.
294 For instance, this can be used to define and encode TCAP BER. 320 For instance, this can be used to define and encode TCAP BER.
295 --> 321 -->
296 <type name="Atom"> 322 <type name="Atom">
297 <comment>Atom type XIDCG uses </comment> 323 <comment>Atom type XIDCG uses </comment>
298 <!-- may change this type -->
299 <!-- <lang name="c" type="CAtom" include="Tensor/CXMF/CXMF.h"/> -->
300 <lang name="c" type="CAtom" include="Tensor/CXMF/CXMF.h"/> 324 <lang name="c" type="CAtom" include="Tensor/CXMF/CXMF.h"/>
301 <lang name="cpp" type="::Tensor::XMF::Atom" include="Tensor/XMF/Atom.h"/> 325 <lang name="cpp" type="::Tensor::XMF::Atom" include="Tensor/XMF/Atom.h"/>
302 <lang name="java" type="Atom" include="com.comtechtel.tensor.xmf.Atom"/> 326 <lang name="java" type="Atom" include="com.comtechtel.tensor.xmf.Atom"/>
303 <lang name="node" type="Atom"/> 327 <lang name="node" type="Atom"/>
304 </type> 328 </type>
329 <type name="AtomListIF">
330 <comment>AtomList type XIDCG uses </comment>
331 <lang name="c" type="CAtomListBase" include="Tensor/CXMF/CXMF.h"/>
332 <!-- <lang name="cpp" type="::Tensor::XMF::AtomList" include="Tensor/XMF/AtomList.h"/> -->
333 <lang name="java" type="AtomListIF" include="com.comtechtel.tensor.xmf.AtomListIF"/>
334 <!-- <lang name="node" type="AtomList"/> -->
335 </type>
305 <type name="AtomList"> 336 <type name="AtomList">
306 <comment>AtomList type XIDCG uses </comment> 337 <comment>AtomList type XIDCG uses </comment>
307 <!-- may change this type -->
308 <!-- <lang name="c" type="CAtomList" include="Tensor/CXMF/CXMF.h"/> -->
309 <lang name="c" type="CAtomList" include="Tensor/CXMF/CXMF.h"/> 338 <lang name="c" type="CAtomList" include="Tensor/CXMF/CXMF.h"/>
310 <lang name="cpp" type="::Tensor::XMF::AtomList" include="Tensor/XMF/AtomList.h"/> 339 <lang name="cpp" type="::Tensor::XMF::AtomList" include="Tensor/XMF/AtomList.h"/>
311 <lang name="java" type="AtomList" include="com.comtechtel.tensor.xmf.AtomList"/> 340 <lang name="java" type="AtomList" include="com.comtechtel.tensor.xmf.AtomList"/>
...@@ -313,8 +342,6 @@ ...@@ -313,8 +342,6 @@
313 </type> 342 </type>
314 <type name="PackedAtomList"> 343 <type name="PackedAtomList">
315 <comment>PackedAtomList type XIDCG uses </comment> 344 <comment>PackedAtomList type XIDCG uses </comment>
316 <!-- may change this type -->
317 <!-- <lang name="c" type="CPackedAtomList" include="Tensor/CXMF/CXMF.h"/> -->
318 <lang name="c" type="CPackedAtomList" include="Tensor/CXMF/CXMF.h"/> 345 <lang name="c" type="CPackedAtomList" include="Tensor/CXMF/CXMF.h"/>
319 <lang name="cpp" type="::Tensor::XMF::PackedAtomList" include="Tensor/XMF/PackedAtomList.h"/> 346 <lang name="cpp" type="::Tensor::XMF::PackedAtomList" include="Tensor/XMF/PackedAtomList.h"/>
320 <lang name="java" type="PackedAtomList" include="com.comtechtel.tensor.xmf.PackedAtomList"/> 347 <lang name="java" type="PackedAtomList" include="com.comtechtel.tensor.xmf.PackedAtomList"/>
...@@ -322,8 +349,6 @@ ...@@ -322,8 +349,6 @@
322 </type> 349 </type>
323 <type name="AtomListIterator"> 350 <type name="AtomListIterator">
324 <comment>AtomList type XIDCG uses </comment> 351 <comment>AtomList type XIDCG uses </comment>
325 <!-- may change this type -->
326 <!-- <lang name="c" type="CAtomList" include="Tensor/CXMF/CXMF.h"/> -->
327 <lang name="c" type="CAtomListIterator" include="Tensor/CXMF/CXMF.h"/> 352 <lang name="c" type="CAtomListIterator" include="Tensor/CXMF/CXMF.h"/>
328 <lang name="cpp" type="::Tensor::XMF::AtomListIterator" include="Tensor/XMF/AtomList.h"/> 353 <lang name="cpp" type="::Tensor::XMF::AtomListIterator" include="Tensor/XMF/AtomList.h"/>
329 <lang name="java" type="AtomListIterator" include="com.comtechtel.tensor.xmf.AtomListIterator"/> 354 <lang name="java" type="AtomListIterator" include="com.comtechtel.tensor.xmf.AtomListIterator"/>
...@@ -331,7 +356,6 @@ ...@@ -331,7 +356,6 @@
331 </type> 356 </type>
332 <type name="JSONObject"> 357 <type name="JSONObject">
333 <comment>JSONObject type XIDCG uses </comment> 358 <comment>JSONObject type XIDCG uses </comment>
334 <!-- may change this type -->
335 <!-- <lang name="c" type="" include=""/> --> 359 <!-- <lang name="c" type="" include=""/> -->
336 <lang name="cpp" type="::Tensor::JSON::JSONObj" include="Tensor/JSON/TensorJSON.h"/> 360 <lang name="cpp" type="::Tensor::JSON::JSONObj" include="Tensor/JSON/TensorJSON.h"/>
337 <lang name="java" type="JSONObject" include="com.comtechtel.tensor.json.JSONObject"/> 361 <lang name="java" type="JSONObject" include="com.comtechtel.tensor.json.JSONObject"/>
...@@ -339,7 +363,6 @@ ...@@ -339,7 +363,6 @@
339 </type> 363 </type>
340 <type name="JSONArray"> 364 <type name="JSONArray">
341 <comment>JSONArray type XIDCG uses </comment> 365 <comment>JSONArray type XIDCG uses </comment>
342 <!-- may change this type -->
343 <!-- <lang name="c" type="" include=""/> --> 366 <!-- <lang name="c" type="" include=""/> -->
344 <!-- <lang name="cpp" type="::Tensor::JSON::JSONObj" include="Tensor/JSON/TensorJSON.h"/> --> 367 <!-- <lang name="cpp" type="::Tensor::JSON::JSONObj" include="Tensor/JSON/TensorJSON.h"/> -->
345 <lang name="java" type="JSONArray" include="com.comtechtel.tensor.json.JSONArray"/> 368 <lang name="java" type="JSONArray" include="com.comtechtel.tensor.json.JSONArray"/>
...@@ -347,7 +370,6 @@ ...@@ -347,7 +370,6 @@
347 </type> 370 </type>
348 <type name="JSONException"> 371 <type name="JSONException">
349 <comment>JSONException type XIDCG uses </comment> 372 <comment>JSONException type XIDCG uses </comment>
350 <!-- may change this type -->
351 <!-- <lang name="c" type="" include=""/> --> 373 <!-- <lang name="c" type="" include=""/> -->
352 <!-- <lang name="cpp" type="::Tensor::JSON::JSONObj" include="Tensor/JSON/TensorJSON.h"/> --> 374 <!-- <lang name="cpp" type="::Tensor::JSON::JSONObj" include="Tensor/JSON/TensorJSON.h"/> -->
353 <lang name="java" type="JSONException" include="com.comtechtel.tensor.json.JSONException"/> 375 <lang name="java" type="JSONException" include="com.comtechtel.tensor.json.JSONException"/>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!