OnixS C++ CME MDP Conflated UDP Handler 1.1.2
API documentation
Loading...
Searching...
No Matches
SolarflareFeedEngine.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
26
28
34{
35 UInt32 receiveRingSize_;
36 UInt32 cacheSize_;
37
38 WatchService* watch_;
39
40public:
44 : receiveRingSize_(
45 static_cast<UInt32>(-1))
46 , cacheSize_(1024)
47 , watch_(
48 &UtcWatch::service())
49 {
50 }
51
56
65 UInt32
67 {
68 return receiveRingSize_;
69 }
70
79 void
81 UInt32 ringSize)
82 {
83 receiveRingSize_ = ringSize;
84 }
85
95 UInt32
96 cacheSize() const
97 {
98 return cacheSize_;
99 }
100
103 void
106 {
107 cacheSize_ = cacheSize;
108 }
109
117 {
118 return *watch_;
119 }
120
124 void
127 {
128 watch_ = &watch;
129 }
130};
131
133ONIXS_CONFLATEDUDP_EXPORTED
134void
136 std::string&,
137 const
139
141inline
142std::string
144 const
146{
147 std::string str;
148
149 toStr(str, settings);
150
151 return str;
152}
153
159 : public NetFeedEngine
160{
161 // The workhorse for the feed engine.
162 class Workhorse;
163
164 Workhorse* workhorse_;
165
166public:
170
173
176 void
178 std::string&);
179
183 const NetFeed&);
184
189
192 virtual
195};
196
#define ONIXS_CONFLATEDUDP_EXPORTED_CLASS
Definition Bootstrap.h:55
#define ONIXS_CONFLATEDUDP_LTWT_CLASS
Definition Bootstrap.h:95
#define ONIXS_CONFLATEDUDP_NAMESPACE_END
Definition Bootstrap.h:157
#define ONIXS_CONFLATEDUDP_NAMESPACE_BEGIN
Definition Bootstrap.h:153
Base attributes of market data feed.
Definition Feed.h:61
virtual NetFeedEngineProcessResult process()
NetFeedLink & allocate(const NetFeed &)
Allocates a link for the given feed.
~SolarflareFeedEngine()
Destructs the given instance.
SolarflareFeedEngine(const SolarflareFeedEngineSettings &)
Initializes the engine according to the given configuration.
ONIXS_CONFLATEDUDP_EXPORTED void toStr(std::string &, BookState::Enum)
Serializes book state value into a string.
UInt32 UInt32
uInt32.
Definition Fields.h:261
Abstract watch service.
Definition Watch.h:30