OnixS BME SENAF Handler C++ library 2.3.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
5 * copyright law and international copyright treaties.
6 *
7 * Access to and use of the software is governed by the terms of the applicable
8 * ONIXS Software Services Agreement (the Agreement) and Customer end user
9 * license agreements granting a non-assignable, non-transferable and
10 * non-exclusive license to use the software for it's own data processing
11 * purposes under the terms defined in the Agreement.
12 *
13 * Except as otherwise granted within the terms of the Agreement, copying or
14 * reproduction of any part of this source code or associated reference material
15 * to any other location for further reproduction or redistribution, and any
16 * amendments to this copyright notice, are expressly prohibited.
17 *
18 * Any reproduction or redistribution for sale or hiring of the Software not in
19 * accordance with the terms of the Agreement is a violation of copyright law.
20 */
21
22#pragma once
23
25#include <OnixS/Senaf/MarketData/Export.h>
37
38#include <string>
39
40namespace OnixS { namespace Senaf { namespace MarketData {
41
48class ONIXS_BME_SENAF_EXPORT Handler
49{
50public:
56 Handler(const HandlerSettings& handlerSettings);
57
59 virtual ~Handler();
60
74 std::string licenseExpirationDate() const;
75
83 static const std::string& version();
84
92 void logDebug(const std::string& message);
93
101 void logError(const std::string& message);
102
110 void logMessage(const std::string& message);
111
119 void logWarning(const std::string& message);
120
131
142
153
164
175
186
197
208
219
230
238 void subscribe(const MarketSubscription& subscription);
239
243 void start();
244
246 void stop();
247
254
255private:
256 Handler(const Handler&) /*= delete */; // no implementation
257 Handler& operator=(const Handler&) /*= delete */; // no implementation
258
259private:
260 class Implementation;
261 Implementation* impl_;
262};
263
264}}} // namespace OnixS::Senaf::MarketData
Defines the interface through which the Handler notifies subscribers about errors occurred while proc...
void registerSecurityDbListener(SecurityDbListener *listener)
void registerWarningListener(WarningListener *listener)
static const std::string & version()
Retrieves the version of the Handler.
void logMessage(const std::string &message)
void registerErrorListener(ErrorListener *listener)
void registerOrderBookUpdateListener(OrderBookUpdateListener *listener)
Handler(const HandlerSettings &handlerSettings)
HandlerStates::Enum state() const
void registerMarketControlListener(MarketControlListener *listener)
void registerReferenceListener(ReferenceListener *listener)
void logDebug(const std::string &message)
std::string licenseExpirationDate() const
void registerMarketPublicationListener(MarketPublicationListener *listener)
void stop()
Stops the Handler.
void registerLogReplayListener(LogReplayListener *listener)
void registerPrivateManagementListener(PrivateManagementListener *listener)
void subscribe(const MarketSubscription &subscription)
virtual ~Handler()
Finalizes the Handler.
void logWarning(const std::string &message)
void registerHandlerStateChangeListener(HandlerStateChangeListener *listener)
void logError(const std::string &message)
Defines the interface through which the Handler notifies subscribers about log replay events.
Defines the interface through which the Handler notifies subscribers about Market Control Messages.
Defines the interface through which the Handler notifies subscribers about Market Publication Message...
Defines the interface through which the Handler notifies subscribers about reference events.
Defines the interface through which the Handler notifies subscribers about security DB events.
Defines set of settings which affect behavior of the Handler.
Enum
Available Handler's states.