OnixS ICE iMpact Multicast Price Feed Handler C++ library
8.17.0
API documentation
Home
Contents
Namespaces
Classes
Files
File List
File Members
OnixS
ICE
iMpact
MarketData
OrderBookUpdateListener.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) Onix Solutions Limited. All rights reserved.
3
*
4
* This software owned by Onix Solutions Limited 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
22
#include "
Export.h
"
23
#include "
Types.h
"
24
25
namespace
OnixS
{
namespace
ICE {
namespace
iMpact {
namespace
MarketData {
26
27
// Forward declarations
28
class
OrderBook;
29
struct
MessageInfo;
30
31
/// Defines the interface through which the Handler
32
/// notifies subscribers that all the changes from
33
/// current multicast message block are applied to
34
/// the order book.
35
class
ONIXS_ICEMDH_EXPORT
OrderBookUpdateListener
36
{
37
public
:
38
/// Is called when the order book is updated.
39
///
40
/// In compare to the change reported through
41
/// OnixS::ICE::iMpact::MarketData::OrderBookChangeListener
42
/// interface, update represents a complex operation and
43
/// usually consists of multiple changes. Also, books reported
44
/// via OnixS::ICE::iMpact::MarketData::OrderBookUpdateListener
45
/// interface are always in a valid state, whereas atomic change
46
/// may invalidate book until subsequent change.
47
///
48
/// \param book is a 'up-to-date' book associated with given market.
49
/// \param msgInfo information about multicast message block.
50
virtual
void
onOrderBookUpdated(
const
OrderBook
& book,
const
MessageInfo
& msgInfo) = 0;
51
52
protected
:
53
virtual
~OrderBookUpdateListener
() {}
54
};
55
56
}}}}
// namespace MarketData, iMpact, ICE, OnixS
OnixS::ICE::iMpact::MarketData::OrderBookUpdateListener
Definition:
OrderBookUpdateListener.h:35
Types.h
OnixS::ICE::iMpact::MarketData::OrderBookUpdateListener::~OrderBookUpdateListener
virtual ~OrderBookUpdateListener()
Definition:
OrderBookUpdateListener.h:53
OnixS::ICE::iMpact::MarketData::MessageInfo
Message info.
Definition:
MessageInfo.h:31
OnixS
Definition:
Containers.h:24
Export.h
OnixS::ICE::iMpact::MarketData::OrderBook
Book instance composing price level book and full order depth book.
Definition:
OrderBook.h:126