OnixS C++ Eurex T7 Market and Reference Data (EMDI, MDI, RDI, EOBI) Handlers 18.2.0
API documentation
Loading...
Searching...
No Matches
EmdsHandler.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
32
33namespace OnixS
34{
35 namespace Eurex
36 {
37 namespace MarketData
38 {
40 class ONIXS_EUREX_EMDI_API EmdsHandler
41 {
42 public:
47 explicit EmdsHandler (const EmdsHandlerSettings& settings,
48 const std::string& = ONIXS_EUREX_EMDI_COMPILER_INFO);
49
51 virtual ~EmdsHandler();
52
58
64
70
76
82
88
93
96
101
104
111
116 void start ();
117
119 void start (const ReplayOptions& options, bool* stopRequest = ONIXS_EUREX_EMDI_NULLPTR);
120
122 void stop ();
123
126
128 EmdsHandler& log (LogLevel::Enum logLevel, const char* logMessage, size_t length);
129
131 EmdsHandler& log (LogLevel::Enum logLevel, const char* logMessage);
132
134 EmdsHandler& log (LogLevel::Enum logLevel, const std::string& str);
135
137 std::string licenseExpirationDate () const;
138
140 static const char* version ();
141
142 private:
143 EmdsHandler (const EmdsHandler&); //no implementation
144 EmdsHandler& operator = (const EmdsHandler&); //no implementation
145
146 private:
147 struct Impl;
148 Impl* impl_;
149 };
150
151 }
152 }
153}
#define ONIXS_EUREX_EMDI_COMPILER_INFO
Definition Compiler.h:35
#define ONIXS_EUREX_EMDI_NULLPTR
Definition Compiler.h:143
EmdsHandler & removeAllSecurityIdFilters()
Remove all filters.
EmdsHandler & registerSettlementListener(SettlementListener *listener)
void start(const ReplayOptions &options, bool *stopRequest=ONIXS_EUREX_EMDI_NULLPTR)
Starts replaying previously logged data.
EmdsHandler & registerWarningListener(WarningListener *listener)
EmdsHandler & log(LogLevel::Enum logLevel, const char *logMessage, size_t length)
Logs the given user-level message to the handler log.
EmdsHandler & registerHandlerStateListener(HandlerStateListener *listener)
EmdsHandler(const EmdsHandlerSettings &settings, const std::string &=ONIXS_EUREX_EMDI_COMPILER_INFO)
virtual ~EmdsHandler()
Finalizes the Handler.
std::string licenseExpirationDate() const
Returns the license expiration date.
EmdsHandler & registerErrorListener(ErrorListener *listener)
EmdsHandler & log(LogLevel::Enum logLevel, const std::string &str)
Logs the given user-level message to the handler log.
static const char * version()
Returns Handler's version.
EmdsHandler & setSecurityIdFilters(const SecurityIdFilters &filters)
HandlerState::Enum state() const
Returns handler state.
EmdsHandler & bindFeedEngine(FeedEngine &feedEngine)
EmdsHandler & registerExchangeTradeListener(ExchangeTradeListener *listener)
EmdsHandler & removeAllMarketSegmentIdFilters()
Remove all filters.
EmdsHandler & log(LogLevel::Enum logLevel, const char *logMessage)
Logs the given user-level message to the handler log.
EmdsHandler & setMarketSegmentIdFilters(const MarketSegmentIdFilters &filters)
EmdsHandler & registerOpenInterestListener(OpenInterestListener *listener)
The Feed Engine machinery.
Definition FeedEngine.h:104
FilteringTraits::SecurityIdFilters SecurityIdFilters
FilteringTraits::MarketSegmentIdFilters MarketSegmentIdFilters
EMDI handler configuration settings.
Enum
Defines the state that the handler is in.
Defines params which affect replay.
Definition Replay.h:83