OnixS C++ CME MDP Conflated TCP Handler 1.3.6
API Documentation
Loading...
Searching...
No Matches
Typification.h
Go to the documentation of this file.
1// Copyright Onix Solutions Limited [OnixS]. All rights reserved.
2//
3// This software owned by Onix Solutions Limited [OnixS] and is
4// protected by copyright law and international copyright treaties.
5//
6// Access to and use of the software is governed by the terms of the applicable
7// OnixS Software Services Agreement (the Agreement) and Customer end user license
8// agreements granting a non-assignable, non-transferable and non-exclusive license
9// to use the software for it's own data processing purposes under the terms defined
10// in the Agreement.
11//
12// Except as otherwise granted within the terms of the Agreement, copying or
13// reproduction of any part of this source code or associated reference material
14// to any other location for further reproduction or redistribution, and any
15// amendments to this copyright notice, are expressly prohibited.
16//
17// Any reproduction or redistribution for sale or hiring of the Software not in
18// accordance with the terms of the Agreement is a violation of copyright law.
19//
20
21#pragma once
22
25
27
34template
35<
36 class Processor
37>
38bool
40 const SbeMessage& binary,
41 Processor& processor)
42{
43 switch (binary.templateId())
44 {
46 {
47 processor(
48 typify
50 (binary));
51
52 return true;
53 }
54
56 {
57 processor(
58 typify
60 (binary));
61
62 return true;
63 }
64
66 {
67 processor(
68 typify
70 (binary));
71
72 return true;
73 }
74
76 {
77 processor(
78 typify
80 (binary));
81
82 return true;
83 }
84
86 {
87 processor(
88 typify
90 (binary));
91
92 return true;
93 }
94
96 {
97 processor(
98 typify
100 (binary));
101
102 return true;
103 }
104
106 {
107 processor(
108 typify
110 (binary));
111
112 return true;
113 }
114
116 {
117 processor(
118 typify
120 (binary));
121
122 return true;
123 }
124
126 {
127 processor(
128 typify
130 (binary));
131
132 return true;
133 }
134
136 {
137 processor(
138 typify
140 (binary));
141
142 return true;
143 }
144
146 {
147 processor(
148 typify
150 (binary));
151
152 return true;
153 }
154
156 {
157 processor(
158 typify
160 (binary));
161
162 return true;
163 }
164
166 {
167 processor(
168 typify
170 (binary));
171
172 return true;
173 }
174
176 {
177 processor(
178 typify
180 (binary));
181
182 return true;
183 }
184
186 {
187 processor(
188 typify
190 (binary));
191
192 return true;
193 }
194
196 {
197 processor(
198 typify
200 (binary));
201
202 return true;
203 }
204
206 {
207 processor(
208 typify
210 (binary));
211
212 return true;
213 }
214
216 {
217 processor(
218 typify
220 (binary));
221
222 return true;
223 }
224
226 {
227 processor(
228 typify
230 (binary));
231
232 return true;
233 }
234
236 {
237 processor(
238 typify
240 (binary));
241
242 return true;
243 }
244
246 {
247 processor(
248 typify
250 (binary));
251
252 return true;
253 }
254
256 {
257 processor(
258 typify
260 (binary));
261
262 return true;
263 }
264
266 {
267 processor(
268 typify
270 (binary));
271
272 return true;
273 }
274
276 {
277 processor(
278 typify
280 (binary));
281
282 return true;
283 }
284
286 {
287 processor(
288 typify
290 (binary));
291
292 return true;
293 }
294
296 {
297 processor(
298 typify
300 (binary));
301
302 return true;
303 }
304
306 {
307 processor(
308 typify
310 (binary));
311
312 return true;
313 }
314
316 {
317 processor(
318 typify
320 (binary));
321
322 return true;
323 }
324
326 {
327 processor(
328 typify
330 (binary));
331
332 return true;
333 }
334
336 {
337 processor(
338 typify
340 (binary));
341
342 return true;
343 }
344
346 {
347 processor(
348 typify
350 (binary));
351
352 return true;
353 }
354
356 {
357 processor(
358 typify
360 (binary));
361
362 return true;
363 }
364
366 {
367 processor(
368 typify
370 (binary));
371
372 return true;
373 }
374
376 {
377 processor(
378 typify
380 (binary));
381
382 return true;
383 }
384
386 {
387 processor(
388 typify
390 (binary));
391
392 return true;
393 }
394
396 {
397 processor(
398 typify
400 (binary));
401
402 return true;
403 }
404
406 {
407 processor(
408 typify
410 (binary));
411
412 return true;
413 }
414
415 default:
416 return false;
417 }
418}
419
#define ONIXS_CONFLATEDTCP_MESSAGING_MDP_NAMESPACE_BEGIN
Definition ABI.h:147
#define ONIXS_CONFLATEDTCP_MESSAGING_MDP_NAMESPACE_END
Definition ABI.h:151
MessageTemplateId templateId() const noexcept
bool processTypified(const SbeMessage &binary, Processor &processor)
Casts given binary message according to template/type information and processes casted messages by gi...
Message typify(const SbeMessage &message)
Casts SBE-encoded message to a given type.