OnixS C++ CME MDP Premium Market Data Handler 5.10.3
Users' manual and API documentation
Loading...
Searching...
No Matches
MessageSupplements.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
24#include <OnixS/CME/MDH/Order.h>
27
28#include <OnixS/CME/MDH/Auxiliary/DeprecatedHeaderWarnings.Disable.h>
30#include <OnixS/CME/MDH/Auxiliary/DeprecatedHeaderWarnings.Restore.h>
31
33
37template <class Order, class Price>
39{
40public:
42 IncrementalRefreshBookCombinedEntry(const Order& order, const Price& price)
43 : order_(order)
44 , price_(price)
45 {
46 }
47
50 : order_(other.order_)
51 , price_(other.price_)
52 {
53 }
54
57 {
58 return price_.securityId();
59 }
60
63 {
64 return price_.entryType();
65 }
66
69 {
70 return order_.orderUpdateAction();
71 }
72
74 bool orderId(OrderId& id) const
75 {
76 id = order_.orderId();
77
78 return true;
79 }
80
82 bool orderPriority(OrderPriority& priority) const
83 {
84 return order_.orderPriority(priority);
85 }
86
88 bool entryPx(Messaging::Decimal& price) const
89 {
90 return price_.entryPx(price);
91 }
92
94 bool displayQty(DisplayQuantity& quantity) const
95 {
96 return order_.displayQty(quantity);
97 }
98
101 {
102 order_ = other.order_;
103 price_ = other.price_;
104
105 return *this;
106 }
107
108private:
109 Order order_;
110 Price price_;
111};
112
116typedef IncrementalRefreshBookCombinedEntry<Messaging::IncrementalRefreshBook46::OrderIDEntry, Messaging::IncrementalRefreshBook46::Entry>
118
124
#define ONIXS_CMEMDH_NAMESPACE_BEGIN
Definition Bootstrap.h:54
#define ONIXS_CMEMDH_NAMESPACE_END
Definition Bootstrap.h:55
IncrementalRefreshBookCombinedEntry & operator=(const IncrementalRefreshBookCombinedEntry &other)
Re-initializes as copy of the other instance.
IncrementalRefreshBookCombinedEntry(const IncrementalRefreshBookCombinedEntry &other)
Initializes as copy of the other one.
bool entryPx(Messaging::Decimal &price) const
Price value.
Messaging::EntryTypeBook::Enum entryType() const
Type of market data entry.
Messaging::OrderUpdateAction::Enum updateAction() const
Indicates action of atomic book update.
IncrementalRefreshBookCombinedEntry(const Order &order, const Price &price)
Initializes instance from order and price components.
bool orderPriority(OrderPriority &priority) const
Order priority.
bool displayQty(DisplayQuantity &quantity) const
Display quantity.
SecurityId securityId() const
Security id whose MBO book is to be updated.
bool orderId(OrderId &id) const
Order identifier.
Order as the member of the Market By Order (MBO) book.
Definition Order.h:74
FloatingPointDecimal< DecimalMantissa, DecimalExponent > Decimal
Universal decimal type.
IncrementalRefreshBookCombinedEntry< Messaging::IncrementalRefreshBookLongQty64::OrderIDEntry, Messaging::IncrementalRefreshBookLongQty64::Entry > IncrementalRefreshBook64CombinedEntry
Messaging::Int32 SecurityId
Unique security identifier.
Definition Domain.h:31
IncrementalRefreshBookCombinedEntry< Messaging::IncrementalRefreshBook46::OrderIDEntry, Messaging::IncrementalRefreshBook46::Entry > IncrementalRefreshBook46CombinedEntry
Messaging::Int32 DisplayQuantity
Presents display quantity.
Definition Order.h:36
Messaging::UInt64 OrderPriority
Type for order priority.
Definition Order.h:33
Messaging::UInt64 OrderId
Type for order identification.
Definition Order.h:30