OnixS C++ Eurex T7 Market and Reference Data (EMDI, MDI, RDI, EOBI) Handlers 19.0.3
Users' manual and API documentation
Loading...
Searching...
No Matches
RdiHandler.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#pragma once
20
25
26
27namespace OnixS
28{
29 namespace Eurex
30 {
31 namespace MarketData
32 {
34
35 struct ReplayOptions;
36
37 class ErrorListener;
38 class WarningListener;
40 class HanlerSettings;
41
43 class ONIXS_EUREX_EMDI_API RdiHandler : public IInterfaceDescriptorProvider
44 {
45 public:
50 explicit RdiHandler(const RdiHandlerSettings& settings,
51 const std::string& = ONIXS_EUREX_EMDI_COMPILER_INFO);
52
54 ~RdiHandler() override;
55
61
67
73
79
86
91 void start();
92
94 void start(const ReplayOptions& options, bool* stopRequest = nullptr);
95
97 void replayPcap(const ReplayOptions& options, bool* stopRequest = nullptr);
98
100 void stop();
101
104
107 EmdiDescriptors findEmdiDescriptors(const MarketSegments& productNames) const override;
108
112
115 MdiDescriptors findMdiDescriptors(const MarketSegments& productNames) const override;
116
120
123 EobiDescriptors findEobiDescriptors(const MarketSegments& productNames) const override;
124
128
130 RdiHandler& log(LogLevel::Enum logLevel, const char* logMessage, size_t length);
131
133 RdiHandler& log(LogLevel::Enum logLevel, const char* logMessage);
134
136 RdiHandler& log(LogLevel::Enum logLevel, const std::string& str);
137
139 std::string licenseExpirationDate() const;
140
142 static const char* version();
143
144 private:
145 RdiHandler(const RdiHandler&); //no implementation
146 RdiHandler& operator =(const RdiHandler&); //no implementation
147
148 private:
149 struct Impl;
150 Impl* impl_;
151 };
152
153 }
154 }
155}
#define ONIXS_EUREX_EMDI_API_DECL(typeKind, typeName)
Definition ABI.h:27
#define ONIXS_EUREX_EMDI_COMPILER_INFO
Definition Compiler.h:35
The Feed Engine machinery.
Definition FeedEngine.h:104
~RdiHandler() override
Finalizes the Handler.
RdiHandler & registerHandlerStateListener(HandlerStateListener *listener)
EobiDescriptors findEobiDescriptors(const MarketSegments &productNames) const override
RdiHandler & bindFeedEngine(FeedEngine &feedEngine)
EobiDescriptors findAllEobiDescriptors() const override
RdiHandler & registerErrorListener(ErrorListener *listener)
RdiHandler & 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.
RdiHandler & registerReferenceDataListener(ReferenceDataListener *listener)
void start(const ReplayOptions &options, bool *stopRequest=nullptr)
Starts replaying previously logged data.
RdiHandler & log(LogLevel::Enum logLevel, const char *logMessage)
Logs the given user-level message to the handler log.
RdiHandler & registerWarningListener(WarningListener *listener)
static const char * version()
Returns Handler's version.
RdiHandler(const RdiHandlerSettings &settings, const std::string &=ONIXS_EUREX_EMDI_COMPILER_INFO)
RdiHandler & log(LogLevel::Enum logLevel, const char *logMessage, size_t length)
Logs the given user-level message to the handler log.
HandlerState::Enum state() const
Returns handler state.
MdiDescriptors findAllMdiDescriptors() const override
void replayPcap(const ReplayOptions &options, bool *stopRequest=nullptr)
Replay pcap files.
MdiDescriptors findMdiDescriptors(const MarketSegments &productNames) const override
EmdiDescriptors findAllEmdiDescriptors() const override
EmdiDescriptors findEmdiDescriptors(const MarketSegments &productNames) const override
EobiDescriptor::Collection EobiDescriptors
EmdiDescriptor::Collection EmdiDescriptors
MdiDescriptor::Collection MdiDescriptors
Enum
Defines the state that the handler is in.
RDI handler configuration settings.
Defines params which affect replay.
Definition Replay.h:83