OnixS C++ CME MDP Streamlined Market Data Handler 1.2.0
API Documentation
Loading...
Searching...
No Matches
Fields.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
26
28ONIXS_CMESTREAMLINEDMDH_DATA_PACKING_BEGIN(1)
29
30
31typedef Char CHAR;
32
33
37typedef Char Currency[3];
38
39
43typedef Char ErisUDI;
44
45
47typedef Int32 Int32;
48
49
51typedef Int8 Int8;
52
53
55typedef
58
59
64
65
67typedef
70
71
73typedef
76
77
82
83
87typedef Char String100[100];
88
89
93typedef Char String12[12];
94
95
99typedef Char String30[30];
100
101
105typedef Char String4[4];
106
107
111typedef Char String5[5];
112
113
117typedef Char String8[8];
118
119
123typedef Char StringLen3[3];
124
125
130
131
136
137
142
143
148
149
152
153
158
159
164
165
169typedef Char Text[180];
170
171
176
177
180
181
184
185
188
189
191typedef UInt8 UInt8;
192
193
196{
197 typedef UInt8 Base;
198
199 enum Enum
200 {
203
205 Buy = 1,
206
209 };
210};
211
229
253
256{
257 typedef CHAR Base;
258
259 enum Enum
260 {
262 Bid = '0',
263
265 Offer = '1',
266
268 Trade = '2',
269
272
275
278
281
284
287
290 };
291};
292
295{
296 typedef UInt8 Base;
297
298 enum Enum
299 {
301 New = 0,
302
305
308
311
314
317 };
318};
319
322{
323 typedef CHAR Base;
324
325 enum Enum
326 {
328 Add = 'A',
329
331 Delete = 'D',
332
334 Modify = 'M'
335 };
336};
337
340{
341public:
344 typedef UInt8 Bits;
345
347 bool lastTradeMsg() const
348 {
349 return 0 != (bits_ & 0x1);
350 }
351
353 bool lastVolumeMsg() const
354 {
355 return 0 != (bits_ & 0x2);
356 }
357
359 bool lastQuoteMsg() const
360 {
361 return 0 != (bits_ & 0x4);
362 }
363
365 bool lastStatsMsg() const
366 {
367 return 0 != (bits_ & 0x8);
368 }
369
371 bool lastImpliedMsg() const
372 {
373 return 0 != (bits_ & 0x10);
374 }
375
377 bool recoveryMsg() const
378 {
379 return 0 != (bits_ & 0x20);
380 }
381
383 bool reserved() const
384 {
385 return 0 != (bits_ & 0x40);
386 }
387
389 bool endOfEvent() const
390 {
391 return 0 != (bits_ & 0x80);
392 }
393
395 inline Bits bits() const
396 {
397 return bits_;
398 }
399
401 : bits_(bits)
402 {
403 }
404
405private:
406 Bits bits_;
407};
408
411{
412public:
415 typedef UInt8 Bits;
416
418 bool finalDaily() const
419 {
420 return 0 != (bits_ & 0x1);
421 }
422
424 bool actual() const
425 {
426 return 0 != (bits_ & 0x2);
427 }
428
430 bool rounded() const
431 {
432 return 0 != (bits_ & 0x4);
433 }
434
436 bool reservedBits() const
437 {
438 return 0 != (bits_ & 0x8);
439 }
440
442 bool nullValue() const
443 {
444 return 0 != (bits_ & 0x80);
445 }
446
448 inline Bits bits() const
449 {
450 return bits_;
451 }
452
454 : bits_(bits)
455 {
456 }
457
458private:
459 Bits bits_;
460};
461
462
464typedef
465IntegralConstant<Char, '\x0'>
467
468
470typedef
473
474
476typedef
479
480
482typedef
485
486
488typedef
491
492
494typedef
497
498
500typedef
503
504
506typedef
509
510
512typedef
515
516
517
519inline
522{
523 return Timestamp(TimeSpan(days, 0, 0, 0, 0).ticks());
524}
525
526ONIXS_CMESTREAMLINEDMDH_DATA_PACKING_END
#define ONIXS_CMESTREAMLINEDMDH_NAMESPACE_BEGIN
Definition Bootstrap.h:169
#define ONIXS_CMESTREAMLINEDMDH_LTWT_STRUCT
Definition Bootstrap.h:115
#define ONIXS_CMESTREAMLINEDMDH_NAMESPACE_END
Definition Bootstrap.h:173
#define ONIXS_CMESTREAMLINEDMDH_LTWT_CLASS
Definition Bootstrap.h:111
bool reserved() const
Indicates whether Reserved bit is set.
Definition Fields.h:383
bool endOfEvent() const
Indicates whether EndOfEvent bit is set.
Definition Fields.h:389
bool lastTradeMsg() const
Indicates whether LastTradeMsg bit is set.
Definition Fields.h:347
bool recoveryMsg() const
Indicates whether RecoveryMsg bit is set.
Definition Fields.h:377
bool lastStatsMsg() const
Indicates whether LastStatsMsg bit is set.
Definition Fields.h:365
bool lastQuoteMsg() const
Indicates whether LastQuoteMsg bit is set.
Definition Fields.h:359
bool lastVolumeMsg() const
Indicates whether LastVolumeMsg bit is set.
Definition Fields.h:353
UInt8 Bits
Aliases integral type whose bits are used to indicate flag presence.
Definition Fields.h:344
Bits bits() const
Returns elements as they packed in the set.
Definition Fields.h:395
bool lastImpliedMsg() const
Indicates whether LastImpliedMsg bit is set.
Definition Fields.h:371
bool reservedBits() const
Indicates whether ReservedBits bit is set.
Definition Fields.h:436
bool nullValue() const
Indicates whether NullValue bit is set.
Definition Fields.h:442
bool actual() const
Indicates whether Actual bit is set.
Definition Fields.h:424
UInt8 Bits
Aliases integral type whose bits are used to indicate flag presence.
Definition Fields.h:415
bool rounded() const
Indicates whether Rounded bit is set.
Definition Fields.h:430
bool finalDaily() const
Indicates whether FinalDaily bit is set.
Definition Fields.h:418
Bits bits() const
Returns elements as they packed in the set.
Definition Fields.h:448
Represents time interval.
Definition Time.h:105
Represents time point without time-zone information.
Definition Time.h:448
Char StringLength9[9]
String With Length 9 Characters.
Definition Fields.h:163
UInt16 LocalMktDate
LocalMktDate type.
Definition Fields.h:63
Char Currency[3]
Currency.
Definition Fields.h:37
Char SecurityExchange[4]
SecurityExchange type.
Definition Fields.h:81
IntegralConstant< Char, '0'> NullCharNULL
Null value for optional CharNULL field.
Definition Fields.h:490
Char StringLength50[50]
String With Length 50 Characters .
Definition Fields.h:147
Char StringLength26[26]
Optional string with length of 26.
Definition Fields.h:141
IntegralConstant< Int8, 0 > UpdateActionNew
MDUpdateActionNew.
Definition Fields.h:75
Char StringLength6[6]
StringLength6.
Definition Fields.h:157
Char StringLen3[3]
Optional string with length of 3.
Definition Fields.h:123
IntegralConstant< Int32, 2147483647 > NullInt32
Null value for optional Int32 field.
Definition Fields.h:472
Char StringLength2[2]
StringLength of 2 characters.
Definition Fields.h:135
IntegralConstant< UInt64, 18446744073709551615ULL > NullUInt64
Null value for optional UInt64 field.
Definition Fields.h:508
IntegralConstant< UInt16, 65535 > NullLocalMktDate
Null value for optional LocalMktDate field.
Definition Fields.h:484
IntegralConstant< UInt8, 255 > NullUInt8
Null value for optional UInt8 field.
Definition Fields.h:514
char Char
Character type alias.
Definition String.h:36
Char CharNULL
Char with a null value.
Definition Fields.h:175
IntegralConstant< Int8, 127 > NullInt8
Null value for optional Int8 field.
Definition Fields.h:478
Char ErisUDI
Eris User Defined Instrument.
Definition Fields.h:43
Char String100[100]
String length 100.
Definition Fields.h:87
IntegralConstant< Char, '\x0'> NullErisUDI
Null value for optional ErisUDI field.
Definition Fields.h:466
Char StringLength17[17]
Optional string with length of 17.
Definition Fields.h:129
Char String5[5]
Optional string with length of 5.
Definition Fields.h:111
Char String8[8]
String length 8.
Definition Fields.h:117
Timestamp localMktDateToTimestamp(LocalMktDate days)
Converts days since epoch to Timestamp value.
Definition Fields.h:521
Char StringLength500[500]
String with Length 500.
Definition Fields.h:151
IntegralConstant< UInt32, 4294967295 > NullUInt32
Null value for optional UInt32 field.
Definition Fields.h:502
Char String4[4]
StringLength4.
Definition Fields.h:105
Char String30[30]
String Length 30.
Definition Fields.h:99
IntegralConstant< Char, 'H'> LegSecurityIDSource
Constant value sent from clearing for legs.
Definition Fields.h:57
IntegralConstant< Char, '2'> EntryTypeTrade
MDEntryTypeTrade.
Definition Fields.h:69
Char String12[12]
StringLength12.
Definition Fields.h:93
IntegralConstant< UInt16, 65535 > NullUInt16
Null value for optional UInt16 field.
Definition Fields.h:496
@ PreliminaryClose
PreliminaryClose.
Definition Fields.h:244