OnixS C++ CME Market Data Handler  5.4.0
API documentation
ChannelFeedListener.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 
23 #include <OnixS/CME/MDH/Packet.h>
24 
26 
28 (
29  Handler
30 );
31 
33 (
34  NetFeed
35 );
36 
37 /// A listener for the feed-related events
38 /// in bounds of a single Handler instance.
39 ///
40 /// Members of the given listener are invoked
41 /// by the Handler when it manipulates feeds to
42 /// reflects various aspects of feed behavior.
45 {
46  /// Invoked when Handler establishes connection
47  /// to a feed identified by provided properties.
48  virtual
49  void
51  Handler&,
52  const NetFeed&)
53  {
54  }
55 
56  /// Invoked when Handler drops connection to
57  /// a feed identified by provided properties.
58  virtual
59  void
61  Handler&,
62  const NetFeed&)
63  {
64  }
65 
66  /// Invoked when packet is received on given feed.
67  ///
68  /// Given member is invoked for all data received over
69  /// the feed including duplicated and out of order one.
70  /// Actual processing of received data may be done far
71  /// later or not happen at all if data is outdated or
72  /// duplicates already processed one. Therefore, packet
73  /// passed through given member may not appear through
74  /// other listeners like MarketDataListener.
75  virtual
76  void
78  Handler&,
79  const PacketArgs&)
80  {
81  }
82 };
83 
virtual void onFeedConnected(Handler &, const NetFeed &)
#define ONIXS_CMEMDH_EXPORTED_CLASS_DECL(typeName)
Definition: Bootstrap.h:46
virtual void onFeedPacket(Handler &, const PacketArgs &)
Base attributes of market data feed.
Definition: Feed.h:60
#define ONIXS_CMEMDH_NAMESPACE_BEGIN
Definition: Bootstrap.h:152
#define ONIXS_CMEMDH_LTWT_CLASS_DECL(name)
Definition: Bootstrap.h:106
virtual void onFeedDisconnected(Handler &, const NetFeed &)
#define ONIXS_CMEMDH_EXPORTED_STRUCT
Definition: Bootstrap.h:58
#define ONIXS_CMEMDH_NAMESPACE_END
Definition: Bootstrap.h:156