OnixS C++ CME MDP Streamlined Market Data Handler 1.2.0
API Documentation
Loading...
Searching...
No Matches
SessionSettings.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
26
28
46
49void
51 std::string&,
53
55inline
56std::string
59{
60 std::string str;
61
62 toStr(str, handling);
63
64 return str;
65}
66
70{
71 GapAndErrorHandlingOptions::Enum gapAndErrorHandling_;
72
73public:
76 : gapAndErrorHandling_(
78 ContinueProcessing)
79 {
80 }
81
84 {
85 }
86
93 {
94 return gapAndErrorHandling_;
95 }
96
99 void
102 {
103 gapAndErrorHandling_ = handling;
104 }
105};
106
109void
111 std::string&,
112 const SessionSettings&);
113
115inline
116std::string
118 const SessionSettings& settings)
119{
120 std::string str;
121
122 toStr(str, settings);
123
124 return str;
125}
126
127//
128
135: public SessionSettings
136{
137 using
139 gapAndErrorHandling;
140
141public:
146 {
149 ContinueProcessing);
150 }
151};
152
#define ONIXS_CMESTREAMLINEDMDH_NAMESPACE_BEGIN
Definition Bootstrap.h:169
#define ONIXS_CMESTREAMLINEDMDH_LTWT_STRUCT
Definition Bootstrap.h:115
#define ONIXS_CMESTREAMLINEDMDH_NAMESPACE_END
Definition Bootstrap.h:173
#define ONIXS_CMESTREAMLINEDMDH_LTWT_CLASS
Definition Bootstrap.h:111
#define ONIXS_CMESTREAMLINEDMDH_EXPORTED
Definition Compiler.h:160
NaturalRefreshSession()
Configures session settings according to specialization.
Set of parameters affecting Handler's behavior when market data processing session is spawned.
SessionSettings()
Initializes parameters with default values.
GapAndErrorHandlingOptions::Enum gapAndErrorHandling() const
Defines what Handler should do in case of gap in real-time (incremental) data.
void gapAndErrorHandling(GapAndErrorHandlingOptions::Enum handling)
Defines what Handler should do in case of gap in real-time (incremental) data.
void toStr(std::string &str, const Decimal &number)
Definition Decimal.h:502
Defines the way Handler has to handle gap in real-time (incremental) data.
Enum
Defines the way Handler has to handle gap in real-time (incremental) data.
@ ContinueProcessing
Handler continues processing of real-time market data.
UInt32 Base
Integral type serving as basement for given enumeration.