OnixS C++ CME MDP Conflated UDP Handler 1.1.2
API documentation
Loading...
Searching...
No Matches
Handler.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 <string>
24#include <memory>
25
27
29
31ONIXS_CONFLATEDUDP_LTWT_CLASS_DECL(MemoryPoolSettings);
32ONIXS_CONFLATEDUDP_LTWT_CLASS_DECL(InstrumentSelection);
33
34#if !defined (ONIXS_CONFLATEDUDP_NO_DEPRECATED)
35
38
41
45
48
49#endif // ONIXS_CONFLATEDUDP_NO_DEPRECATED
50
52
56{
57 // Data processing workhorse.
58 ChannelModel* model_;
59
60 // Coping is not allowed for the instances.
61
62 Handler(const Handler&);
63 Handler& operator =(const Handler&);
64
65public:
68
72 const
74
75#if !defined (ONIXS_CONFLATEDUDP_NO_DEPRECATED)
76
85 const HandlerSettings&);
86
87#endif // ONIXS_CONFLATEDUDP_NO_DEPRECATED
88
91
94
96 const HandlerSettings& settings() const;
97
98#if !defined (ONIXS_CONFLATEDUDP_NO_DEPRECATED)
99
107
108#endif // ONIXS_CONFLATEDUDP_NO_DEPRECATED
109
118 void
120 const InstrumentSelection&);
121
125
126#if !defined (ONIXS_CONFLATEDUDP_NO_DEPRECATED)
127
146 void
148 HandlerListener& listener);
149
168 void
170 ChannelFeedListener& listener);
171
190 void
192 MarketDataListener& listener);
193
212 void
214 SecurityListener& listener);
215
227 void
229 NetFeedEngine& feedEngine);
230
242 void
244 TcpRecoveryService& tcpRecovery);
245
257 void
259 Logger& logger);
260
261#endif // ONIXS_CONFLATEDUDP_NO_DEPRECATED
262
264 void start();
265
266#if !defined (ONIXS_CONFLATEDUDP_NO_DEPRECATED)
267
276 void
278 const SessionSettings&);
279
280#endif // ONIXS_CONFLATEDUDP_NO_DEPRECATED
281
283 void stop();
284};
285
#define ONIXS_CONFLATEDUDP_EXPORTED_CLASS
Definition Bootstrap.h:55
#define ONIXS_CONFLATEDUDP_EXPORTED_CLASS_DECL(typeName)
Definition Bootstrap.h:47
#define ONIXS_CONFLATEDUDP_NAMESPACE_END
Definition Bootstrap.h:157
#define ONIXS_CONFLATEDUDP_EXPORTED_STRUCT_DECL(typeName)
Definition Bootstrap.h:51
#define ONIXS_CONFLATEDUDP_INTERNAL_CLASS_DECL(typeName)
Definition Bootstrap.h:63
#define ONIXS_CONFLATEDUDP_LTWT_CLASS_DECL(name)
Definition Bootstrap.h:107
#define ONIXS_CONFLATEDUDP_NAMESPACE_BEGIN
Definition Bootstrap.h:153
Handler's configuration settings.
void bindFeedEngine(NetFeedEngine &feedEngine)
Handler(const HandlerSettings &)
void bindTcpRecovery(TcpRecoveryService &tcpRecovery)
Handler()
Initializes the instance with the default settings.
void start()
Starts market data processing.
void registerSecurityListener(SecurityListener &listener)
void start(const SessionSettings &)
const HandlerSettings & settings() const
Immutable configuration of the given instance.
void stop()
Stops market data processing.
~Handler()
Finalizes the instance.
void registerFeedListener(ChannelFeedListener &listener)
void registerMarketDataListener(MarketDataListener &listener)
Handler(const MemoryPoolSettings &)
void registerListener(HandlerListener &listener)
void selectInstruments(const InstrumentSelection &)
HandlerSettings & settings()
The configuration parameters of the given instance.
void bindLogger(Logger &logger)
Abstraction of logger.
Definition Logger.h:180
Events raised by Handler while processing market data.
Callbacks invoked by Handler to expose market data entities.