OnixS C++ Eurex T7 Market and Reference Data (EMDI, MDI, RDI, EOBI) Handlers  16.1.0
API documentation
ScaledSimpleInstrumentUpdate.h
Go to the documentation of this file.
1 /*
2 * Copyright Onix Solutions Limited [OnixS]. All rights reserved.
3 *
4 * This software owned by Onix Solutions Limited [OnixS] and is protected by copyright law
5 * and international copyright treaties.
6 *
7 * Access to and use of the software is governed by the terms of the applicable OnixS Software
8 * Services Agreement (the Agreement) and Customer end user license agreements granting
9 * a non-assignable, non-transferable and non-exclusive license to use the software
10 * for it's own data processing purposes under the terms defined in the Agreement.
11 *
12 * Except as otherwise granted within the terms of the Agreement, copying or reproduction of any part
13 * of this source code or associated reference material to any other location for further reproduction
14 * or redistribution, and any amendments to this copyright notice, are expressly prohibited.
15 *
16 * Any reproduction or redistribution for sale or hiring of the Software not in accordance with
17 * the terms of the Agreement is a violation of copyright law.
18 */
19 
20 #pragma once
21 
27 
28 namespace OnixS
29 {
30  namespace Eurex
31  {
32  namespace MarketData
33  {
34  ///
35  class ONIXS_EUREX_EMDI_API ScaledSimpleInstrumentUpdate : public Message
36  {
37  public:
38  /// MsgSeqNum
39  UInt32 msgSeqNum() const
40  {
41  return getUInt32 (Tags::MsgSeqNum);
42  }
43 
44  /// Unique ID of a sender
46  {
47  return getUInt32 (Tags::SenderCompID);
48  }
49 
50  ///
52  {
53  return StringRef("A");
54  }
55 
56  /// Instrument identifier.
58  {
59  return getInt64 (Tags::SecurityID);
60  }
61 
62  ///
64  {
65  return StringRef("M");
66  }
67 
68  ///
70  {
71  return getStringRef (Tags::SecurityDesc);
72  }
73 
74  ///
76  {
77  return getUInt32 (Tags::SecurityType);
78  }
79 
80  ///
82  {
83  return getUInt32 (Tags::ProductComplex);
84  }
85 
86  ///
88  {
89  return getUInt32 (Tags::QuantityScalingFactor);
90  }
91 
92  ///
93  UInt64 relatedSecurityId() const
94  {
95  return getUInt32 (Tags::RelatedSecurityID);
96  }
97 
98  ///
100  {
101  return StringRef("M");
102  }
103 
104  /// Product identifier.
106  {
107  return getGroup (Tags::NoMarketSegments).at (0).getUInt32 (Tags::MarketSegmentID);
108  }
109 
110  ///
111  UInt64 transactTime() const
112  {
113  return getUInt64(Tags::TransactTime);
114  }
115 
116  private:
117  friend class ScaledSimpleInstrumentUpdateWrapper;
118 
119  explicit ScaledSimpleInstrumentUpdate (const void* impl)
120  : Message (impl)
121  {
122  }
123  };
124 
125  }
126  }
127 }
const Tag QuantityScalingFactor
Definition: Tags.h:343
MarketSegmentId marketSegmentId() const
Product identifier.
unsigned int UInt32
Definition: Numeric.h:41
Definition: Defines.h:30
Int64 SecurityId
Alias for Security Id type.
Definition: Defines.h:51
UInt32 MarketSegmentId
Alias for Market Segment ID type.
Definition: Defines.h:40