ILP-551 : changed Java package and moved Encoding formats from Definitions to Common
Showing
2 changed files
with
88 additions
and
94 deletions
... | @@ -71,6 +71,63 @@ | ... | @@ -71,6 +71,63 @@ |
71 | <literal name ="target" value = "1"/> | 71 | <literal name ="target" value = "1"/> |
72 | <literal name ="initiator" value = "2"/> | 72 | <literal name ="initiator" value = "2"/> |
73 | </enum> | 73 | </enum> |
74 | |||
75 | <!-- Encoding format type spec.--> | ||
76 | <type name="EncodingFormat" size="2"> | ||
77 | <comment> | ||
78 | The encoding format determines how element data is run-time encoded within a particular element independent of the | ||
79 | transport encoding. | ||
80 | These values are specified in the "encoding" attribute for elements. Not all encoding formats | ||
81 | are supported by every wireline protocol implementation. Additionally, custom encodings may be | ||
82 | defined to support application defined encodings. Any non-standard encodings must be registered (to avoid collision) | ||
83 | and approved by the appropriate approving authority (e.g. Comtech). Values from 0 to 255 are reserved | ||
84 | for standard-encodings. Custom encodings start at 256(0x0100) and extend to 65535 (0xFFFF).\n | ||
85 | \n | ||
86 | This is not the same as defining in XID a raw datatype or json datatype which are NOT changeable are run-time. | ||
87 | \n | ||
88 | Example: \n | ||
89 | \t The message XMF but a field is defined to be encoded as JSON.\n | ||
90 | \t Likewise, the message is JSON, but a field is run-time encoded to be XMF.\n | ||
91 | \n | ||
92 | Data encoding format type. If 0, value is not encoded. See ResrvedEncodingFormats | ||
93 | for a list of standard format specifiers. | ||
94 | </comment> | ||
95 | <lang name="c" type="uint16_t" include="stdint.h" /> | ||
96 | <lang name="cpp" type="uint16_t" include="cstdint" /> | ||
97 | <lang name="java" type="XidShort" include="com.comtechtel.tensor.xid.XidShort" /> | ||
98 | <lang name="node" type="XidUShort" /> | ||
99 | </type> | ||
100 | |||
101 | <!-- ReservedEncodingFormats standard encoding formats.--> | ||
102 | <enum name="ReservedEncodingFormats" type="Tensor.uint16" default="natural"> | ||
103 | <comment> | ||
104 | Reserved encoding formats define standard additional encodings known to all implementations. | ||
105 | </comment> | ||
106 | <literal name="natural" value="0"> | ||
107 | <comment> | ||
108 | Data is not further encoded, it is in its natural wireline format.\n | ||
109 | This is the default value if not defined explicitly. | ||
110 | </comment> | ||
111 | </literal> | ||
112 | <literal name="raw" value="1"> | ||
113 | <comment> | ||
114 | Data is in an unspecified binary format. The interpretation of the data is | ||
115 | falls to the producer and consumer of the information. | ||
116 | For textual wireline encodings like JSON, the data will be valid within the representation. | ||
117 | </comment> | ||
118 | </literal> | ||
119 | <literal name="xmf" value="2"> | ||
120 | <comment> | ||
121 | Data is XMF binary format. The binary data is structured using atoms and atom lists. | ||
122 | For textual wireline encodings like JSON, this is XMF base64 encoded. | ||
123 | </comment> | ||
124 | </literal> | ||
125 | <literal name="json" value="3"> | ||
126 | <comment> | ||
127 | Data is formatted as JSON compliant ascii text. For binary encodings like XMF, the content will be JSON instead. | ||
128 | </comment> | ||
129 | </literal> | ||
130 | </enum> | ||
74 | 131 | ||
75 | </namespace> | 132 | </namespace> |
76 | </specification> | 133 | </specification> | ... | ... |
... | @@ -19,7 +19,7 @@ | ... | @@ -19,7 +19,7 @@ |
19 | Defines fundamental type mappings. | 19 | Defines fundamental type mappings. |
20 | </comment> | 20 | </comment> |
21 | 21 | ||
22 | <tag name="package" value="com.comtechtel"/> | 22 | <tag name="package" value="com.telecomsys"/> |
23 | 23 | ||
24 | <namespace name="Tensor"> | 24 | <namespace name="Tensor"> |
25 | <type name="void" size="0"> | 25 | <type name="void" size="0"> |
... | @@ -33,7 +33,7 @@ | ... | @@ -33,7 +33,7 @@ |
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.telecomsys.tensor.xid.XidBool"> |
37 | <tag name="native" value="boolean"/> | 37 | <tag name="native" value="boolean"/> |
38 | </lang> | 38 | </lang> |
39 | <lang name="node" type="XidBool"/> | 39 | <lang name="node" type="XidBool"/> |
... | @@ -43,7 +43,7 @@ | ... | @@ -43,7 +43,7 @@ |
43 | <comment>8-bit, unsigned value</comment> | 43 | <comment>8-bit, unsigned value</comment> |
44 | <lang name="c" type="uint8_t" include="stdint.h"/> | 44 | <lang name="c" type="uint8_t" include="stdint.h"/> |
45 | <lang name="cpp" type="uint8_t" include="cstdint"/> | 45 | <lang name="cpp" type="uint8_t" include="cstdint"/> |
46 | <lang name="java" type="XidByte" include="com.comtechtel.tensor.xid.XidByte"> | 46 | <lang name="java" type="XidByte" include="com.telecomsys.tensor.xid.XidByte"> |
47 | <tag name="native" value="byte"/> | 47 | <tag name="native" value="byte"/> |
48 | </lang> | 48 | </lang> |
49 | <lang name="node" type="XidUInt8"/> | 49 | <lang name="node" type="XidUInt8"/> |
... | @@ -52,7 +52,7 @@ | ... | @@ -52,7 +52,7 @@ |
52 | <comment>16-bit, unsigned value</comment> | 52 | <comment>16-bit, unsigned value</comment> |
53 | <lang name="c" type="uint16_t" include="stdint.h"/> | 53 | <lang name="c" type="uint16_t" include="stdint.h"/> |
54 | <lang name="cpp" type="uint16_t" include="cstdint"/> | 54 | <lang name="cpp" type="uint16_t" include="cstdint"/> |
55 | <lang name="java" type="XidShort" include="com.comtechtel.tensor.xid.XidShort"> | 55 | <lang name="java" type="XidShort" include="com.telecomsys.tensor.xid.XidShort"> |
56 | <tag name="native" value="short"/> | 56 | <tag name="native" value="short"/> |
57 | </lang> | 57 | </lang> |
58 | <lang name="node" type="XidUShort"/> | 58 | <lang name="node" type="XidUShort"/> |
... | @@ -61,14 +61,14 @@ | ... | @@ -61,14 +61,14 @@ |
61 | <comment>24-bit, unsigned value</comment> | 61 | <comment>24-bit, unsigned value</comment> |
62 | <lang name="c" type="uint24_t" include="Tensor/CXMF/int24.h"/> | 62 | <lang name="c" type="uint24_t" include="Tensor/CXMF/int24.h"/> |
63 | <lang name="cpp" type="uint24_t" include="Tensor/Types/int24.h"/> | 63 | <lang name="cpp" type="uint24_t" include="Tensor/Types/int24.h"/> |
64 | <lang name="java" type="XidInt24" include="com.comtechtel.tensor.xid.XidInt24"/> | 64 | <lang name="java" type="XidInt24" include="com.telecomsys.tensor.xid.XidInt24"/> |
65 | <lang name="node" type="XidUInt24"/> | 65 | <lang name="node" type="XidUInt24"/> |
66 | </type> | 66 | </type> |
67 | <type name="uint32" size="4"> | 67 | <type name="uint32" size="4"> |
68 | <comment>32-bit, unsigned value</comment> | 68 | <comment>32-bit, unsigned value</comment> |
69 | <lang name="c" type="uint32_t" include="stdint.h"/> | 69 | <lang name="c" type="uint32_t" include="stdint.h"/> |
70 | <lang name="cpp" type="uint32_t" include="cstdint"/> | 70 | <lang name="cpp" type="uint32_t" include="cstdint"/> |
71 | <lang name="java" type="XidInt" include="com.comtechtel.tensor.xid.XidInt"> | 71 | <lang name="java" type="XidInt" include="com.telecomsys.tensor.xid.XidInt"> |
72 | <tag name="native" value="int"/> | 72 | <tag name="native" value="int"/> |
73 | </lang> | 73 | </lang> |
74 | <lang name="node" type="XidUInt"/> | 74 | <lang name="node" type="XidUInt"/> |
... | @@ -77,7 +77,7 @@ | ... | @@ -77,7 +77,7 @@ |
77 | <comment>64-bit, unsigned value</comment> | 77 | <comment>64-bit, unsigned value</comment> |
78 | <lang name="c" type="uint64_t" include="stdint.h"/> | 78 | <lang name="c" type="uint64_t" include="stdint.h"/> |
79 | <lang name="cpp" type="uint64_t" include="cstdint"/> | 79 | <lang name="cpp" type="uint64_t" include="cstdint"/> |
80 | <lang name="java" type="XidLong" include="com.comtechtel.tensor.xid.XidLong"> | 80 | <lang name="java" type="XidLong" include="com.telecomsys.tensor.xid.XidLong"> |
81 | <tag name="native" value="long"/> | 81 | <tag name="native" value="long"/> |
82 | </lang> | 82 | </lang> |
83 | <lang name="node" type="XidULong"/> | 83 | <lang name="node" type="XidULong"/> |
... | @@ -87,7 +87,7 @@ | ... | @@ -87,7 +87,7 @@ |
87 | <comment>8-bit, signed value</comment> | 87 | <comment>8-bit, signed value</comment> |
88 | <lang name="c" type="int8_t" include="stdint.h"/> | 88 | <lang name="c" type="int8_t" include="stdint.h"/> |
89 | <lang name="cpp" type="int8_t" include="cstdint"/> | 89 | <lang name="cpp" type="int8_t" include="cstdint"/> |
90 | <lang name="java" type="XidByte" include="com.comtechtel.tensor.xid.XidByte"> | 90 | <lang name="java" type="XidByte" include="com.telecomsys.tensor.xid.XidByte"> |
91 | <tag name="native" value="byte"/> | 91 | <tag name="native" value="byte"/> |
92 | </lang> | 92 | </lang> |
93 | <lang name="node" type="XidInt8"/> | 93 | <lang name="node" type="XidInt8"/> |
... | @@ -96,7 +96,7 @@ | ... | @@ -96,7 +96,7 @@ |
96 | <comment>16-bit, signed value</comment> | 96 | <comment>16-bit, signed value</comment> |
97 | <lang name="c" type="int16_t" include="stdint.h"/> | 97 | <lang name="c" type="int16_t" include="stdint.h"/> |
98 | <lang name="cpp" type="int16_t" include="cstdint"/> | 98 | <lang name="cpp" type="int16_t" include="cstdint"/> |
99 | <lang name="java" type="XidShort" include="com.comtechtel.tensor.xid.XidShort"> | 99 | <lang name="java" type="XidShort" include="com.telecomsys.tensor.xid.XidShort"> |
100 | <tag name="native" value="short"/> | 100 | <tag name="native" value="short"/> |
101 | </lang> | 101 | </lang> |
102 | <lang name="node" type="XidShort"/> | 102 | <lang name="node" type="XidShort"/> |
... | @@ -105,14 +105,14 @@ | ... | @@ -105,14 +105,14 @@ |
105 | <comment>24-bit, unsigned value</comment> | 105 | <comment>24-bit, unsigned value</comment> |
106 | <lang name="c" type="int24_t" include="Tensor/CXMF/int24.h"/> | 106 | <lang name="c" type="int24_t" include="Tensor/CXMF/int24.h"/> |
107 | <lang name="cpp" type="int24_t" include="Tensor/Types/int24.h"/> | 107 | <lang name="cpp" type="int24_t" include="Tensor/Types/int24.h"/> |
108 | <lang name="java" type="XidInt24" include="com.comtechtel.tensor.xid.XidInt24"/> | 108 | <lang name="java" type="XidInt24" include="com.telecomsys.tensor.xid.XidInt24"/> |
109 | <lang name="node" type="XidInt24"/> | 109 | <lang name="node" type="XidInt24"/> |
110 | </type> | 110 | </type> |
111 | <type name="int32" size="4"> | 111 | <type name="int32" size="4"> |
112 | <comment>32-bit, signed value</comment> | 112 | <comment>32-bit, signed value</comment> |
113 | <lang name="c" type="int32_t" include="stdint.h"/> | 113 | <lang name="c" type="int32_t" include="stdint.h"/> |
114 | <lang name="cpp" type="int32_t" include="cstdint"/> | 114 | <lang name="cpp" type="int32_t" include="cstdint"/> |
115 | <lang name="java" type="XidInt" include="com.comtechtel.tensor.xid.XidInt"> | 115 | <lang name="java" type="XidInt" include="com.telecomsys.tensor.xid.XidInt"> |
116 | <tag name="native" value="int"/> | 116 | <tag name="native" value="int"/> |
117 | </lang> | 117 | </lang> |
118 | <lang name="node" type="XidInt"/> | 118 | <lang name="node" type="XidInt"/> |
... | @@ -121,7 +121,7 @@ | ... | @@ -121,7 +121,7 @@ |
121 | <comment>64-bit, signed value</comment> | 121 | <comment>64-bit, signed value</comment> |
122 | <lang name="c" type="int64_t" include="stdint.h"/> | 122 | <lang name="c" type="int64_t" include="stdint.h"/> |
123 | <lang name="cpp" type="int64_t" include="cstdint"/> | 123 | <lang name="cpp" type="int64_t" include="cstdint"/> |
124 | <lang name="java" type="XidLong" include="com.comtechtel.tensor.xid.XidLong"> | 124 | <lang name="java" type="XidLong" include="com.telecomsys.tensor.xid.XidLong"> |
125 | <tag name="native" value="long"/> | 125 | <tag name="native" value="long"/> |
126 | </lang> | 126 | </lang> |
127 | <lang name="node" type="XidLong"/> | 127 | <lang name="node" type="XidLong"/> |
... | @@ -140,7 +140,7 @@ | ... | @@ -140,7 +140,7 @@ |
140 | <artifact>https://wikipedia.org/wiki/Single-precision_floating-point_format</artifact> | 140 | <artifact>https://wikipedia.org/wiki/Single-precision_floating-point_format</artifact> |
141 | <lang name="c" type="float"/> | 141 | <lang name="c" type="float"/> |
142 | <lang name="cpp" type="float"/> | 142 | <lang name="cpp" type="float"/> |
143 | <lang name="java" type="XidFloat" include="com.comtechtel.tensor.xid.XidFloat"> | 143 | <lang name="java" type="XidFloat" include="com.telecomsys.tensor.xid.XidFloat"> |
144 | <tag name="native" value="float"/> | 144 | <tag name="native" value="float"/> |
145 | </lang> | 145 | </lang> |
146 | <lang name="node" type="XidFloat"/> | 146 | <lang name="node" type="XidFloat"/> |
... | @@ -150,7 +150,7 @@ | ... | @@ -150,7 +150,7 @@ |
150 | <artifact>https://wikipedia.org/wiki/Double-precision_floating-point_format</artifact> | 150 | <artifact>https://wikipedia.org/wiki/Double-precision_floating-point_format</artifact> |
151 | <lang name="c" type="double"/> | 151 | <lang name="c" type="double"/> |
152 | <lang name="cpp" type="double"/> | 152 | <lang name="cpp" type="double"/> |
153 | <lang name="java" type="XidDouble" include="com.comtechtel.tensor.xid.XidDouble"> | 153 | <lang name="java" type="XidDouble" include="com.telecomsys.tensor.xid.XidDouble"> |
154 | <tag name="native" value="double"/> | 154 | <tag name="native" value="double"/> |
155 | </lang> | 155 | </lang> |
156 | <lang name="node" type="XidDouble"/> | 156 | <lang name="node" type="XidDouble"/> |
... | @@ -167,7 +167,7 @@ | ... | @@ -167,7 +167,7 @@ |
167 | <comment>A single byte</comment> | 167 | <comment>A single byte</comment> |
168 | <lang name="c" type="uint8_t" include="stdint.h"/> | 168 | <lang name="c" type="uint8_t" include="stdint.h"/> |
169 | <lang name="cpp" type="uint8_t" include="cstdint"/> | 169 | <lang name="cpp" type="uint8_t" include="cstdint"/> |
170 | <lang name="java" type="XidByte" include="com.comtechtel.tensor.xid.XidByte"> | 170 | <lang name="java" type="XidByte" include="com.telecomsys.tensor.xid.XidByte"> |
171 | <tag name="native" value="byte"/> | 171 | <tag name="native" value="byte"/> |
172 | </lang> | 172 | </lang> |
173 | <lang name="node" type="XidUInt8"/> | 173 | <lang name="node" type="XidUInt8"/> |
... | @@ -177,7 +177,7 @@ | ... | @@ -177,7 +177,7 @@ |
177 | <!-- may change this type --> | 177 | <!-- may change this type --> |
178 | <lang name="c" type="CXMFString" include="Tensor/CXMF/CXMFString.h"/> | 178 | <lang name="c" type="CXMFString" include="Tensor/CXMF/CXMFString.h"/> |
179 | <lang name="cpp" type="::Tensor::XMF::Atom" include="Tensor/XMF/Atom.h"/> | 179 | <lang name="cpp" type="::Tensor::XMF::Atom" include="Tensor/XMF/Atom.h"/> |
180 | <lang name="java" type="XidRaw" include="com.comtechtel.tensor.xid.XidRaw"/> | 180 | <lang name="java" type="XidRaw" include="com.telecomsys.tensor.xid.XidRaw"/> |
181 | <lang name="node" type="Atom"/> | 181 | <lang name="node" type="Atom"/> |
182 | </type> | 182 | </type> |
183 | 183 | ||
... | @@ -185,7 +185,7 @@ | ... | @@ -185,7 +185,7 @@ |
185 | <comment>Variable sized collection of characters</comment> | 185 | <comment>Variable sized collection of characters</comment> |
186 | <lang name="c" type="CXMFString" include="Tensor/CXMF/CXMFString.h"/> | 186 | <lang name="c" type="CXMFString" include="Tensor/CXMF/CXMFString.h"/> |
187 | <lang name="cpp" type="std::string" include="string"/> | 187 | <lang name="cpp" type="std::string" include="string"/> |
188 | <lang name="java" type="XidString" include="com.comtechtel.tensor.xid.XidString"> | 188 | <lang name="java" type="XidString" include="com.telecomsys.tensor.xid.XidString"> |
189 | <tag name="native" value="String"/> | 189 | <tag name="native" value="String"/> |
190 | </lang> | 190 | </lang> |
191 | <lang name="node" type="XidString"/> | 191 | <lang name="node" type="XidString"/> |
... | @@ -201,7 +201,7 @@ | ... | @@ -201,7 +201,7 @@ |
201 | <artifact>https://xkcd.com/1179</artifact> | 201 | <artifact>https://xkcd.com/1179</artifact> |
202 | <lang name="c" type="uint64_t" include="stdint.h"/> | 202 | <lang name="c" type="uint64_t" include="stdint.h"/> |
203 | <lang name="cpp" type="::Tensor::Types::DateTime" include="Tensor/Types/DateTime.h"/> | 203 | <lang name="cpp" type="::Tensor::Types::DateTime" include="Tensor/Types/DateTime.h"/> |
204 | <lang name="java" type="XidDateTime" include="com.comtechtel.tensor.xid.XidDateTime"/> | 204 | <lang name="java" type="XidDateTime" include="com.telecomsys.tensor.xid.XidDateTime"/> |
205 | <lang name="node" type="XidDateTime"/> | 205 | <lang name="node" type="XidDateTime"/> |
206 | </type> | 206 | </type> |
207 | 207 | ||
... | @@ -210,7 +210,7 @@ | ... | @@ -210,7 +210,7 @@ |
210 | <artifact>https://wikipedia.org/wiki/Universally_unique_identifier</artifact> | 210 | <artifact>https://wikipedia.org/wiki/Universally_unique_identifier</artifact> |
211 | <lang name="c" type="UUID" include="Tensor/CXMF/uuid.h"/> | 211 | <lang name="c" type="UUID" include="Tensor/CXMF/uuid.h"/> |
212 | <lang name="cpp" type="::Tensor::Types::UUID" include="Tensor/Types/uuid.h"/> | 212 | <lang name="cpp" type="::Tensor::Types::UUID" include="Tensor/Types/uuid.h"/> |
213 | <lang name="java" type="XidUuid" include="com.comtechtel.tensor.xid.XidUuid"/> | 213 | <lang name="java" type="XidUuid" include="com.telecomsys.tensor.xid.XidUuid"/> |
214 | <lang name="node" type="XidUuid"/> | 214 | <lang name="node" type="XidUuid"/> |
215 | </type> | 215 | </type> |
216 | 216 | ||
... | @@ -219,7 +219,7 @@ | ... | @@ -219,7 +219,7 @@ |
219 | <tag name="TODO" value="Define uri as a custom type. Use string for now."/> | 219 | <tag name="TODO" value="Define uri as a custom type. Use string for now."/> |
220 | <lang name="c" type="CXMFString" include="Tensor/CXMF/CXMFString.h"/> | 220 | <lang name="c" type="CXMFString" include="Tensor/CXMF/CXMFString.h"/> |
221 | <lang name="cpp" type="std::string" include="string"/> | 221 | <lang name="cpp" type="std::string" include="string"/> |
222 | <lang name="java" type="XidString" include="com.comtechtel.tensor.xid.XidString"/> | 222 | <lang name="java" type="XidString" include="com.telecomsys.tensor.xid.XidString"/> |
223 | <lang name="node" type="XidString"/> | 223 | <lang name="node" type="XidString"/> |
224 | </type> | 224 | </type> |
225 | 225 | ||
... | @@ -227,7 +227,7 @@ | ... | @@ -227,7 +227,7 @@ |
227 | <comment>JSON formatted/encoded string</comment> | 227 | <comment>JSON formatted/encoded string</comment> |
228 | <lang name="c" type="CXMFString" include="Tensor/CXMF/CXMFString.h"/> | 228 | <lang name="c" type="CXMFString" include="Tensor/CXMF/CXMFString.h"/> |
229 | <lang name="cpp" type="::Tensor::JSON::JSONObj" include="Tensor/JSON/TensorJSON.h"/> | 229 | <lang name="cpp" type="::Tensor::JSON::JSONObj" include="Tensor/JSON/TensorJSON.h"/> |
230 | <lang name="java" type="XidJSON" include="com.comtechtel.tensor.xid.XidJSON"/> | 230 | <lang name="java" type="XidJSON" include="com.telecomsys.tensor.xid.XidJSON"/> |
231 | <lang name="node" type="XidString"/> | 231 | <lang name="node" type="XidString"/> |
232 | </type> | 232 | </type> |
233 | 233 | ||
... | @@ -235,7 +235,7 @@ | ... | @@ -235,7 +235,7 @@ |
235 | <comment>XMF formatted/encoded data, this is straight XMF in XMF formatted data, and base64 encoded binary XMF in JSON formatted data. </comment> | 235 | <comment>XMF formatted/encoded data, this is straight XMF in XMF formatted data, and base64 encoded binary XMF in JSON formatted data. </comment> |
236 | <lang name="c" type="CAtom" include="Tensor/CXMF/CXMF.h"/> | 236 | <lang name="c" type="CAtom" include="Tensor/CXMF/CXMF.h"/> |
237 | <lang name="cpp" type="::Tensor::XMF::Atom" include="Tensor/XMF/Atom.h"/> | 237 | <lang name="cpp" type="::Tensor::XMF::Atom" include="Tensor/XMF/Atom.h"/> |
238 | <lang name="java" type="Atom" include="com.comtechtel.tensor.xmf.Atom"/> | 238 | <lang name="java" type="Atom" include="com.telecomsys.tensor.xmf.Atom"/> |
239 | <lang name="node" type="Atom"/> | 239 | <lang name="node" type="Atom"/> |
240 | </type> | 240 | </type> |
241 | 241 | ||
... | @@ -244,72 +244,9 @@ | ... | @@ -244,72 +244,9 @@ |
244 | <comment>6 byte IEEE MAC-48</comment> | 244 | <comment>6 byte IEEE MAC-48</comment> |
245 | <lang name="c" type="MacAddress48" include="Tensor/CXMF/MacAddress48.h"/> | 245 | <lang name="c" type="MacAddress48" include="Tensor/CXMF/MacAddress48.h"/> |
246 | <lang name="cpp" type="::Tensor::Types::MacAddress48" include="Tensor/Types/MacAddress48.h"/> | 246 | <lang name="cpp" type="::Tensor::Types::MacAddress48" include="Tensor/Types/MacAddress48.h"/> |
247 | <lang name="java" type="XidMacAddress48" include="com.comtechtel.tensor.xid.XidMacAddress48"/> | 247 | <lang name="java" type="XidMacAddress48" include="com.telecomsys.tensor.xid.XidMacAddress48"/> |
248 | <lang name="node" type="XidMacAddress48"/> | 248 | <lang name="node" type="XidMacAddress48"/> |
249 | </type> | 249 | </type> |
250 | |||
251 | <!-- | ||
252 | ******************************************************* | ||
253 | Encoding Data Types | ||
254 | ******************************************************* | ||
255 | --> | ||
256 | |||
257 | <!-- Encoding format type spec.--> | ||
258 | <type name="EncodingFormat" size="2"> | ||
259 | <comment> | ||
260 | The encoding format determines how element data is run-time encoded within a particular element independent of the | ||
261 | transport encoding. | ||
262 | These values are specified in the "encoding" attribute for elements. Not all encoding formats | ||
263 | are supported by every wireline protocol implementation. Additionally, custom encodings may be | ||
264 | defined to support application defined encodings. Any non-standard encodings must be registered (to avoid collision) | ||
265 | and approved by the appropriate approving authority (e.g. Comtech). Values from 0 to 255 are reserved | ||
266 | for standard-encodings. Custom encodings start at 256(0x0100) and extend to 65535 (0xFFFF).\n | ||
267 | \n | ||
268 | This is not the same as defining in XID a raw datatype or json datatype which are NOT changeable are run-time. | ||
269 | \n | ||
270 | Example: \n | ||
271 | \t The message XMF but a field is defined to be encoded as JSON.\n | ||
272 | \t Likewise, the message is JSON, but a field is run-time encoded to be XMF.\n | ||
273 | \n | ||
274 | Data encoding format type. If 0, value is not encoded. See ResrvedEncodingFormats | ||
275 | for a list of standard format specifiers. | ||
276 | </comment> | ||
277 | <lang name="c" type="uint16_t" include="stdint.h" /> | ||
278 | <lang name="cpp" type="uint16_t" include="cstdint" /> | ||
279 | <lang name="java" type="XidShort" include="com.comtechtel.tensor.xid.XidShort" /> | ||
280 | <lang name="node" type="XidUShort" /> | ||
281 | </type> | ||
282 | |||
283 | <!-- ReservedEncodingFormats standard encoding formats.--> | ||
284 | <enum name="ReservedEncodingFormats" type="Tensor.uint16" default="natural"> | ||
285 | <comment> | ||
286 | Reserved encoding formats define standard additional encodings known to all implementations. | ||
287 | </comment> | ||
288 | <literal name="natural" value="0"> | ||
289 | <comment> | ||
290 | Data is not further encoded, it is in its natural wireline format.\n | ||
291 | This is the default value if not defined explicitly. | ||
292 | </comment> | ||
293 | </literal> | ||
294 | <literal name="raw" value="1"> | ||
295 | <comment> | ||
296 | Data is in an unspecified binary format. The interpretation of the data is | ||
297 | falls to the producer and consumer of the information. | ||
298 | For textual wireline encodings like JSON, the data will be valid within the representation. | ||
299 | </comment> | ||
300 | </literal> | ||
301 | <literal name="xmf" value="2"> | ||
302 | <comment> | ||
303 | Data is XMF binary format. The binary data is structured using atoms and atom lists. | ||
304 | For textual wireline encodings like JSON, this is XMF base64 encoded. | ||
305 | </comment> | ||
306 | </literal> | ||
307 | <literal name="json" value="3"> | ||
308 | <comment> | ||
309 | Data is formatted as JSON compliant ascii text. For binary encodings like XMF, the content will be JSON instead. | ||
310 | </comment> | ||
311 | </literal> | ||
312 | </enum> | ||
313 | </namespace> | 250 | </namespace> |
314 | 251 | ||
315 | <namespace name="XIDCG"> | 252 | <namespace name="XIDCG"> |
... | @@ -331,56 +268,56 @@ | ... | @@ -331,56 +268,56 @@ |
331 | <comment>Atom type XIDCG uses </comment> | 268 | <comment>Atom type XIDCG uses </comment> |
332 | <lang name="c" type="CAtom" include="Tensor/CXMF/CXMF.h"/> | 269 | <lang name="c" type="CAtom" include="Tensor/CXMF/CXMF.h"/> |
333 | <lang name="cpp" type="::Tensor::XMF::Atom" include="Tensor/XMF/Atom.h"/> | 270 | <lang name="cpp" type="::Tensor::XMF::Atom" include="Tensor/XMF/Atom.h"/> |
334 | <lang name="java" type="Atom" include="com.comtechtel.tensor.xmf.Atom"/> | 271 | <lang name="java" type="Atom" include="com.telecomsys.tensor.xmf.Atom"/> |
335 | <lang name="node" type="Atom"/> | 272 | <lang name="node" type="Atom"/> |
336 | </type> | 273 | </type> |
337 | <type name="AtomListIF"> | 274 | <type name="AtomListIF"> |
338 | <comment>AtomList type XIDCG uses </comment> | 275 | <comment>AtomList type XIDCG uses </comment> |
339 | <lang name="c" type="CAtomListBase" include="Tensor/CXMF/CXMF.h"/> | 276 | <lang name="c" type="CAtomListBase" include="Tensor/CXMF/CXMF.h"/> |
340 | <!-- <lang name="cpp" type="::Tensor::XMF::AtomList" include="Tensor/XMF/AtomList.h"/> --> | 277 | <!-- <lang name="cpp" type="::Tensor::XMF::AtomList" include="Tensor/XMF/AtomList.h"/> --> |
341 | <lang name="java" type="AtomListIF" include="com.comtechtel.tensor.xmf.AtomListIF"/> | 278 | <lang name="java" type="AtomListIF" include="com.telecomsys.tensor.xmf.AtomListIF"/> |
342 | <!-- <lang name="node" type="AtomList"/> --> | 279 | <!-- <lang name="node" type="AtomList"/> --> |
343 | </type> | 280 | </type> |
344 | <type name="AtomList"> | 281 | <type name="AtomList"> |
345 | <comment>AtomList type XIDCG uses </comment> | 282 | <comment>AtomList type XIDCG uses </comment> |
346 | <lang name="c" type="CAtomList" include="Tensor/CXMF/CXMF.h"/> | 283 | <lang name="c" type="CAtomList" include="Tensor/CXMF/CXMF.h"/> |
347 | <lang name="cpp" type="::Tensor::XMF::AtomList" include="Tensor/XMF/AtomList.h"/> | 284 | <lang name="cpp" type="::Tensor::XMF::AtomList" include="Tensor/XMF/AtomList.h"/> |
348 | <lang name="java" type="AtomList" include="com.comtechtel.tensor.xmf.AtomList"/> | 285 | <lang name="java" type="AtomList" include="com.telecomsys.tensor.xmf.AtomList"/> |
349 | <lang name="node" type="AtomList"/> | 286 | <lang name="node" type="AtomList"/> |
350 | </type> | 287 | </type> |
351 | <type name="PackedAtomList"> | 288 | <type name="PackedAtomList"> |
352 | <comment>PackedAtomList type XIDCG uses </comment> | 289 | <comment>PackedAtomList type XIDCG uses </comment> |
353 | <lang name="c" type="CPackedAtomList" include="Tensor/CXMF/CXMF.h"/> | 290 | <lang name="c" type="CPackedAtomList" include="Tensor/CXMF/CXMF.h"/> |
354 | <lang name="cpp" type="::Tensor::XMF::PackedAtomList" include="Tensor/XMF/PackedAtomList.h"/> | 291 | <lang name="cpp" type="::Tensor::XMF::PackedAtomList" include="Tensor/XMF/PackedAtomList.h"/> |
355 | <lang name="java" type="PackedAtomList" include="com.comtechtel.tensor.xmf.PackedAtomList"/> | 292 | <lang name="java" type="PackedAtomList" include="com.telecomsys.tensor.xmf.PackedAtomList"/> |
356 | <lang name="node" type="PackedAtomList"/> | 293 | <lang name="node" type="PackedAtomList"/> |
357 | </type> | 294 | </type> |
358 | <type name="AtomListIterator"> | 295 | <type name="AtomListIterator"> |
359 | <comment>AtomList type XIDCG uses </comment> | 296 | <comment>AtomList type XIDCG uses </comment> |
360 | <lang name="c" type="CAtomListIterator" include="Tensor/CXMF/CXMF.h"/> | 297 | <lang name="c" type="CAtomListIterator" include="Tensor/CXMF/CXMF.h"/> |
361 | <lang name="cpp" type="::Tensor::XMF::AtomListIterator" include="Tensor/XMF/AtomList.h"/> | 298 | <lang name="cpp" type="::Tensor::XMF::AtomListIterator" include="Tensor/XMF/AtomList.h"/> |
362 | <lang name="java" type="AtomListIterator" include="com.comtechtel.tensor.xmf.AtomListIterator"/> | 299 | <lang name="java" type="AtomListIterator" include="com.telecomsys.tensor.xmf.AtomListIterator"/> |
363 | <lang name="node" type="AtomListIterator"/> | 300 | <lang name="node" type="AtomListIterator"/> |
364 | </type> | 301 | </type> |
365 | <type name="JSONObject"> | 302 | <type name="JSONObject"> |
366 | <comment>JSONObject type XIDCG uses </comment> | 303 | <comment>JSONObject type XIDCG uses </comment> |
367 | <!-- <lang name="c" type="" include=""/> --> | 304 | <!-- <lang name="c" type="" include=""/> --> |
368 | <lang name="cpp" type="::Tensor::JSON::JSONObj" include="Tensor/JSON/TensorJSON.h"/> | 305 | <lang name="cpp" type="::Tensor::JSON::JSONObj" include="Tensor/JSON/TensorJSON.h"/> |
369 | <lang name="java" type="JSONObject" include="com.comtechtel.tensor.json.JSONObject"/> | 306 | <lang name="java" type="JSONObject" include="com.telecomsys.tensor.json.JSONObject"/> |
370 | <!-- <lang name="node" type=""/> --> | 307 | <!-- <lang name="node" type=""/> --> |
371 | </type> | 308 | </type> |
372 | <type name="JSONArray"> | 309 | <type name="JSONArray"> |
373 | <comment>JSONArray type XIDCG uses </comment> | 310 | <comment>JSONArray type XIDCG uses </comment> |
374 | <!-- <lang name="c" type="" include=""/> --> | 311 | <!-- <lang name="c" type="" include=""/> --> |
375 | <!-- <lang name="cpp" type="::Tensor::JSON::JSONObj" include="Tensor/JSON/TensorJSON.h"/> --> | 312 | <!-- <lang name="cpp" type="::Tensor::JSON::JSONObj" include="Tensor/JSON/TensorJSON.h"/> --> |
376 | <lang name="java" type="JSONArray" include="com.comtechtel.tensor.json.JSONArray"/> | 313 | <lang name="java" type="JSONArray" include="com.telecomsys.tensor.json.JSONArray"/> |
377 | <!-- <lang name="node" type=""/> --> | 314 | <!-- <lang name="node" type=""/> --> |
378 | </type> | 315 | </type> |
379 | <type name="JSONException"> | 316 | <type name="JSONException"> |
380 | <comment>JSONException type XIDCG uses </comment> | 317 | <comment>JSONException type XIDCG uses </comment> |
381 | <!-- <lang name="c" type="" include=""/> --> | 318 | <!-- <lang name="c" type="" include=""/> --> |
382 | <!-- <lang name="cpp" type="::Tensor::JSON::JSONObj" include="Tensor/JSON/TensorJSON.h"/> --> | 319 | <!-- <lang name="cpp" type="::Tensor::JSON::JSONObj" include="Tensor/JSON/TensorJSON.h"/> --> |
383 | <lang name="java" type="JSONException" include="com.comtechtel.tensor.json.JSONException"/> | 320 | <lang name="java" type="JSONException" include="com.telecomsys.tensor.json.JSONException"/> |
384 | <!-- <lang name="node" type=""/> --> | 321 | <!-- <lang name="node" type=""/> --> |
385 | </type> | 322 | </type> |
386 | </namespace> | 323 | </namespace> | ... | ... |
-
Please register or sign in to post a comment