OnixS C++ HKEX OMD-C Handler 1.0.0
API documentation
Loading...
Searching...
No Matches
Handler.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
25
26namespace OnixS
27{
28 namespace HKEX
29 {
30 namespace MarketData
31 {
32 namespace Omdc
33 {
34 class ErrorListener;
35 class WarningListener;
36 class MessageListener;
38 class ProtocolListener;
39
40 class FeedEngine;
42
43 struct HandlerSettings;
44 struct ReplayOptions;
45
47 class ONIXS_HKEX_OMDC_API Handler
48 {
49 public:
54 explicit
55 Handler (const HandlerSettings& settings);
56
58 virtual ~Handler();
59
65
71
77
83
89
95
101 void bindFeedEngine(FeedEngine& feedEngine);
102
109
114 void start ();
115
117 void start (const ReplayOptions& options);
118
120 void stop (bool wait);
121
124
126 void log (LogLevel::Enum logLevel, const char* logMessage, size_t length);
127
129 void log (LogLevel::Enum logLevel, const char* logMessage);
130
132 void log (LogLevel::Enum logLevel, const std::string& str);
133
135 std::string licenseExpirationDate () const;
136
138 static const char* version ();
139
140 private:
141 Handler (const Handler&); //no implementation
142 Handler& operator = (const Handler&); //no implementation
143
144 private:
145 struct Impl;
146 Impl* impl_;
147 };
148 }
149 }
150 }
151}
152
153
154
155
Defines an interface through which the Handler notifies subscribers about errors occurred while proce...
Manages processing machinery for market data received from feeds.
Definition FeedEngine.h:209
void registerWarningListener(WarningListener *listener)
Assigns listener for warnings occurred while executing handler.
void bindRetransmissionHandler(RetransmissionHandler &retransmissionHandler)
Binds Retransmission handler to the Handler.
void registerHandlerStateListener(HandlerStateListener *listener)
Assigns listener for state change events occurred while executing handler.
void stop(bool wait)
Stop handler.
void registerErrorListener(ErrorListener *listener)
Assigns listener for errors occurred while executing handler.
void log(LogLevel::Enum logLevel, const std::string &str)
Logs the given user-level message to the handler log.
std::string licenseExpirationDate() const
Returns the license expiration date.
void log(LogLevel::Enum logLevel, const char *logMessage, size_t length)
Logs the given user-level message to the handler log.
void registerProtocolListener(ProtocolListener *listener)
Assigns listener to receive notifications about message processing while executing handler.
Handler(const HandlerSettings &settings)
Performs instance initialization.
void bindFeedEngine(FeedEngine &feedEngine)
Binds Feed Engine to the Handler.
static const char * version()
Returns Handler's version.
void start(const ReplayOptions &options)
Starts replaying previously logged data.
void registerOrderBookListener(OrderBookListener *listener)
Assigns listener to receive notification about order book states while executing handler.
HandlerState::Enum state() const
Returns handler state.
virtual ~Handler()
Finalizes the Handler.
void registerMessageListener(MessageListener *listener)
Assigns listener to receive notification when OMD-C messages is received while executing handler.
void log(LogLevel::Enum logLevel, const char *logMessage)
Logs the given user-level message to the handler log.
Manages processing machinery for market data received from feeds.
Enum
Defines the state that the handler is in.
Defines ONIXS_HKEX_OMDC_API which affect logs replay.
Definition Replay.h:60