OnixS C++ CME MDP Premium Market Data Handler 5.11.1
Users' manual and API documentation
Loading...
Searching...
No Matches
FeedSettings.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
27
28#include <OnixS/CME/MDH/Auxiliary/DeprecatedHeaderWarnings.Disable.h>
30#include <OnixS/CME/MDH/Auxiliary/DeprecatedHeaderWarnings.Restore.h>
31
33
34// A bit of forward declarations.
35
37
40
43
48void fromStr(HostListSetting&, const std::string&);
49
52{
53public:
54 // Makes assignment more flexible.
55 template <class>
57
59 FeedConnectionSettings(const SettingGroup* group = nullptr)
60 : group_(group ? *group : SettingGroup::null())
61 , port_(0)
62 , hosts_(group)
63 , nifs_(group)
64 {
65 }
66
70 : group_(SettingGroup::null())
71 , port_(other.port_)
72 , ip_(other.ip_)
73 , hosts_(other.hosts_)
74 , nifs_(other.nifs_)
75 , id_(other.id_)
76 {
77 }
78
81
84 {
85 return port_;
86 }
87
92 {
93 group_.controlAssignment("Port", port_, port);
94
95 return *this;
96 }
97
103 const std::string& ip() const
104 {
105 return ip_;
106 }
107
115 FeedConnectionSettings& ip(const std::string& address)
116 {
117 group_.controlAssignment("IP Address", ip_, address);
118
119 return *this;
120 }
121
131 const HostListSetting& hosts() const
132 {
133 return hosts_;
134 }
135
146 {
147 return hosts_;
148 }
149
162 FeedConnectionSettings& hosts(const std::string& hosts)
163 {
164 fromStr(hosts_, hosts);
165
166 return *this;
167 }
168
175 {
176 return nifs_;
177 }
178
185 {
186 return nifs_;
187 }
188
197 FeedConnectionSettings& networkInterfaces(const std::string& interfaces)
198 {
199 fromStr(nifs_, interfaces);
200
201 return *this;
202 }
203
205 const std::string& id() const
206 {
207 return id_;
208 }
209
213 FeedConnectionSettings& id(const std::string& id)
214 {
215 group_.controlAssignment("Identifier", id_, id);
216
217 return *this;
218 }
219
224 {
225 group_.controlChange("Feed Connection Settings", &FeedConnectionSettings::assignNoControl, *this, other);
226
227 return *this;
228 }
229
230private:
231 const SettingGroup& group_;
232
233 Messaging::UInt32 port_;
234 std::string ip_;
235
236 HostListSetting hosts_;
237 NifListSetting nifs_;
238
239 std::string id_;
240
241 // Non-guarded assignment.
242 void assignNoControl(const FeedConnectionSettings& other)
243 {
244 port_ = other.port_;
245 ip_ = other.ip_;
246
247 hosts_.assignNoControl(other.hosts_);
248 nifs_.assignNoControl(other.nifs_);
249
250 id_ = other.id_;
251 }
252};
253
256void toStr(std::string&, const FeedConnectionSettings&);
257
259inline std::string toStr(const FeedConnectionSettings& settings)
260{
261 std::string str;
262
263 toStr(str, settings);
264
265 return str;
266}
267
269template <typename Layout>
271{
272public:
274 Layout layout() const
275 {
276 return layout_;
277 }
278
283 {
284 group_.controlAssignment("Layout", layout_, value);
285
286 return *this;
287 }
288
296 {
297 return heartbeatInterval_;
298 }
299
304 {
305 group_.controlAssignment("Heartbeat Interval", heartbeatInterval_, interval);
306
307 return *this;
308 }
309
312 {
313 return A_;
314 }
315
318 {
319 return A_;
320 }
321
324 {
325 return B_;
326 }
327
330 {
331 return B_;
332 }
333
334#if !defined(ONIXS_CMEMDH_NO_DEPRECATED)
335
345 FeedSettingsBase& feedANetworkInterfaces(const std::string& interfaces)
346 {
347 A_.networkInterfaces(interfaces);
348
349 return *this;
350 }
351
361 FeedSettingsBase& feedBNetworkInterfaces(const std::string& interfaces)
362 {
363 B_.networkInterfaces(interfaces);
364
365 return *this;
366 }
367#endif // !ONIXS_CMEMDH_NO_DEPRECATED
368
369protected:
370 // Makes assignment more flexible.
372
376 : group_(group ? *group : SettingGroup::null())
377 , layout_(layout)
378 , heartbeatInterval_(heartbeat)
379 , A_(group)
380 , B_(group)
381 {
382 }
383
391 : group_(SettingGroup::null())
392 , layout_(other.layout_)
393 , heartbeatInterval_(other.heartbeatInterval_)
394 , A_(other.A_)
395 , B_(other.B_)
396 {
397 }
398
399 // Finalizes the instance.
401
404 const SettingGroup& group() const
405 {
406 return group_;
407 }
408
413 {
414 layout_ = other.layout_;
415
416 heartbeatInterval_ = other.heartbeatInterval_;
417
418 A_.assignNoControl(other.A_);
419 B_.assignNoControl(other.B_);
420 }
421
422private:
423 const SettingGroup& group_;
424
425 Layout layout_;
426 Messaging::UInt32 heartbeatInterval_;
427
430
431 FeedSettingsBase& operator=(const FeedSettingsBase& other);
432};
433
468
471void toStr(std::string&, RecoveryFeedLayout::Enum);
472
474inline std::string toStr(RecoveryFeedLayout::Enum layout)
475{
476 std::string str;
477
478 toStr(str, layout);
479
480 return str;
481}
482
485{
486public:
493 : Base(group, RecoveryFeedLayout::FeedAWithFailoverToFeedB, 30)
494 {
495 }
496
499 : Base(static_cast<const Base&>(other))
500 {
501 }
502
505
510 {
511 group().controlChange(
512 "Multicast Recovery Feed Settings", &MulticastRecoveryFeedSettings::assignNoControl, *this, other
513 );
514
515 return *this;
516 }
517
518private:
520
522
523 void assignNoControl(const MulticastRecoveryFeedSettings& other)
524 {
526 }
527};
528
531void toStr(std::string&, const MulticastRecoveryFeedSettings&);
532
534inline std::string toStr(const MulticastRecoveryFeedSettings& settings)
535{
536 std::string str;
537
538 toStr(str, settings);
539
540 return str;
541}
542
544class ONIXS_CMEMDH_LTWT TcpRecoveryFeedSettings : public FeedSettingsBase<RecoveryFeedLayout::Enum>
545{
546public:
553 : Base(group, RecoveryFeedLayout::FeedAOnly, 2)
554 , connectionAttempts_(3)
555 , connectionTimeout_(500)
556 , sendTimeout_(5000)
557 {
558 }
559
563 : Base(static_cast<const Base&>(other))
564 , connectionAttempts_(other.connectionAttempts_)
565 , connectionTimeout_(other.connectionTimeout_)
566 , sendTimeout_(other.sendTimeout_)
567 {
568 }
569
572
579 {
580 return connectionAttempts_;
581 }
582
589 {
590 group().controlAssignment("Connection Attempts", connectionAttempts_, attemptQty);
591
592 return *this;
593 }
594
603 {
604 return connectionTimeout_;
605 }
606
615 {
616 group().controlAssignment("Connection Timeout", connectionTimeout_, connectionTimeout);
617
618 return *this;
619 }
620
627 {
628 return sendTimeout_;
629 }
630
637 {
638 group().controlAssignment("Send Timeout", sendTimeout_, sendTimeout);
639
640 return *this;
641 }
642
648 {
649 group().controlChange("TCP Recovery Feed Settings", &TcpRecoveryFeedSettings::assignNoControl, *this, other);
650
651 return *this;
652 }
653
654private:
655 // Makes assignment more flexible.
657
659
660 Messaging::UInt32 connectionAttempts_;
661 Messaging::UInt32 connectionTimeout_;
662 Messaging::UInt32 sendTimeout_;
663
664 void assignNoControl(const TcpRecoveryFeedSettings& other)
665 {
667
668 connectionAttempts_ = other.connectionAttempts_;
669
670 connectionTimeout_ = other.connectionTimeout_;
671
672 sendTimeout_ = other.sendTimeout_;
673 }
674};
675
678void toStr(std::string&, const TcpRecoveryFeedSettings&);
679
681inline std::string toStr(const TcpRecoveryFeedSettings& settings)
682{
683 std::string str;
684
685 toStr(str, settings);
686
687 return str;
688}
689
727
730void toStr(std::string&, RealtimeFeedLayout::Enum);
731
733inline std::string toStr(RealtimeFeedLayout::Enum layout)
734{
735 std::string str;
736
737 toStr(str, layout);
738
739 return str;
740}
741
743class ONIXS_CMEMDH_LTWT RealtimeFeedSettings : public FeedSettingsBase<RealtimeFeedLayout::Enum>
744{
745public:
751 : Base(group, RealtimeFeedLayout::BothFeedsWithArbitrage, 30)
752 , outOfOrderPacketMaxInterval_(3)
753 , lostPacketWaitTime_(100000)
754 {
755 }
756
760 : Base(static_cast<const Base&>(other))
761 , outOfOrderPacketMaxInterval_(other.outOfOrderPacketMaxInterval_)
762 , lostPacketWaitTime_(other.lostPacketWaitTime_)
763 {
764 }
765
768
798 {
799 return outOfOrderPacketMaxInterval_;
800 }
801
807 {
808 group().controlAssignment("Out Of Order Packet Max Interval", outOfOrderPacketMaxInterval_, intervalLength);
809
810 return *this;
811 }
812
835 {
836 return lostPacketWaitTime_;
837 }
838
844 {
845 group().controlAssignment("Lost Packet Wait Time", lostPacketWaitTime_, waitTime);
846
847 return *this;
848 }
849
855 {
856 group().controlChange("Realtime Feed Settings", &RealtimeFeedSettings::assignNoControl, *this, other);
857
858 return *this;
859 }
860
861private:
863
865
866 Messaging::UInt32 outOfOrderPacketMaxInterval_;
867 Messaging::UInt32 lostPacketWaitTime_;
868
869 void assignNoControl(const RealtimeFeedSettings& other)
870 {
872
873 outOfOrderPacketMaxInterval_ = other.outOfOrderPacketMaxInterval_;
874
875 lostPacketWaitTime_ = other.lostPacketWaitTime_;
876 }
877};
878
881void toStr(std::string&, const RealtimeFeedSettings&);
882
884inline std::string toStr(const RealtimeFeedSettings& settings)
885{
886 std::string str;
887
888 toStr(str, settings);
889
890 return str;
891}
892
918
921void toStr(std::string&, DataCenter::Enum);
922
924inline std::string toStr(DataCenter::Enum layout)
925{
926 std::string str;
927
928 toStr(str, layout);
929
930 return str;
931}
932
936{
937public:
940 : SettingGroup(controller)
941 , packetMaxSize_(1420)
942 , incrementalFeeds_(&group())
943 , instrumentFeeds_(&group())
944 , snapshotFeeds_(&group())
945 , mboSnapshotFeeds_(&group())
946 , historicalFeeds_(&group())
947 , engine_()
948 {
949 }
950
954 : SettingGroup()
955 , packetMaxSize_(other.packetMaxSize_)
956 , incrementalFeeds_(other.incrementalFeeds_)
957 , instrumentFeeds_(other.instrumentFeeds_)
958 , snapshotFeeds_(other.snapshotFeeds_)
959 , mboSnapshotFeeds_(other.mboSnapshotFeeds_)
960 , historicalFeeds_(other.historicalFeeds_)
961 , engine_(other.engine_)
962 {
963 }
964
977 FeedSettings& feedANetworkInterfaces(const std::string& interfaces)
978 {
979 group().controlChange(
980 "Feed A Network Interfaces for All Feeds", &FeedSettings::assignFeedAInterfaces, *this, interfaces
981 );
982
983 return *this;
984 }
985
998 FeedSettings& feedBNetworkInterfaces(const std::string& interfaces)
999 {
1000 group().controlChange(
1001 "Feed B Network Interfaces for All Feeds", &FeedSettings::assignFeedBInterfaces, *this, interfaces
1002 );
1003
1004 return *this;
1005 }
1006
1011 {
1012 return packetMaxSize_;
1013 }
1014
1019 {
1020 group().controlAssignment("Packet Max Size", packetMaxSize_, value);
1021
1022 return *this;
1023 }
1024
1027 {
1028 return incrementalFeeds_;
1029 }
1030
1033 {
1034 return incrementalFeeds_;
1035 }
1036
1039 {
1040 return instrumentFeeds_;
1041 }
1042
1045 {
1046 return instrumentFeeds_;
1047 }
1048
1051 {
1052 return snapshotFeeds_;
1053 }
1054
1057 {
1058 return snapshotFeeds_;
1059 }
1060
1063 {
1064 return mboSnapshotFeeds_;
1065 }
1066
1069 {
1070 return mboSnapshotFeeds_;
1071 }
1072
1075 {
1076 return historicalFeeds_;
1077 }
1078
1081 {
1082 return historicalFeeds_;
1083 }
1084
1092 {
1093 return engine_.get();
1094 }
1095
1108 {
1109 group().controlAssignment("Feed Engine", engine_, NetFeedEngineController(engine));
1110
1111 return *this;
1112 }
1113
1119 {
1120 group().controlChange("Feed Settings", &FeedSettings::assignNoControl, *this, other);
1121
1122 return *this;
1123 }
1124
1125private:
1127
1128 // To let assignment be controlled
1129 // by the master container.
1131
1134 class ONIXS_CMEMDH_EXPORTED NetFeedEngineController
1135 {
1136 public:
1138 NetFeedEngineController();
1139
1141 explicit NetFeedEngineController(NetFeedEngine*);
1142
1144 NetFeedEngineController(const NetFeedEngineController&);
1145
1147 ~NetFeedEngineController();
1148
1150 NetFeedEngineController& operator=(const NetFeedEngineController& other)
1151 {
1152 NetFeedEngineController tmp(other);
1153 tmp.swap(*this);
1154 return *this;
1155 }
1156
1158 NetFeedEngine* get() const
1159 {
1160 return engine_;
1161 }
1162
1164 void swap(NetFeedEngineController& other)
1165 {
1166 std::swap(engine_, other.engine_);
1167 std::swap(owned_, other.owned_);
1168 }
1169
1170 private:
1171 NetFeedEngine* engine_;
1172 bool owned_;
1173 };
1174
1175 PacketSize packetMaxSize_;
1176
1177 RealtimeFeedSettings incrementalFeeds_;
1178
1179 MulticastRecoveryFeedSettings instrumentFeeds_;
1180 MulticastRecoveryFeedSettings snapshotFeeds_;
1181 MulticastRecoveryFeedSettings mboSnapshotFeeds_;
1182
1183 TcpRecoveryFeedSettings historicalFeeds_;
1184
1185 NetFeedEngineController engine_;
1186
1187 // Casts the given instance to an
1188 // instance of SettingGroup class.
1189 const SettingGroup& group() const
1190 {
1191 return *this;
1192 }
1193
1194 // Re-initializes the given instance
1195 // as a copy of the other one without
1196 // involving assignment control service.
1197 void assignNoControl(const FeedSettings& other)
1198 {
1199 packetMaxSize_ = other.packetMaxSize_;
1200
1201 incrementalFeeds_.assignNoControl(other.incrementalFeeds_);
1202
1203 instrumentFeeds_.assignNoControl(other.instrumentFeeds_);
1204
1205 snapshotFeeds_.assignNoControl(other.snapshotFeeds_);
1206
1207 mboSnapshotFeeds_.assignNoControl(other.mboSnapshotFeeds_);
1208
1209 historicalFeeds_.assignNoControl(other.historicalFeeds_);
1210
1211 engine_ = other.engine_;
1212 }
1213
1214 // Updates interfaces for all primary feeds
1215 // without involving assignment control services.
1216 void assignFeedAInterfaces(const std::string& interfaces)
1217 {
1218 NifListSetting nifs;
1219
1220 fromStr(nifs, interfaces);
1221
1222 incrementalFeeds_.A().networkInterfaces().assignNoControl(nifs);
1223
1224 instrumentFeeds_.A().networkInterfaces().assignNoControl(nifs);
1225
1226 snapshotFeeds_.A().networkInterfaces().assignNoControl(nifs);
1227
1228 mboSnapshotFeeds_.A().networkInterfaces().assignNoControl(nifs);
1229
1230 historicalFeeds_.A().networkInterfaces().assignNoControl(nifs);
1231 }
1232
1233 // Updates interfaces for all primary feeds
1234 // without involving assignment control services.
1235 void assignFeedBInterfaces(const std::string& interfaces)
1236 {
1237 NifListSetting nifs;
1238
1239 fromStr(nifs, interfaces);
1240
1241 incrementalFeeds_.B().networkInterfaces().assignNoControl(nifs);
1242
1243 instrumentFeeds_.B().networkInterfaces().assignNoControl(nifs);
1244
1245 snapshotFeeds_.B().networkInterfaces().assignNoControl(nifs);
1246
1247 mboSnapshotFeeds_.B().networkInterfaces().assignNoControl(nifs);
1248
1249 historicalFeeds_.B().networkInterfaces().assignNoControl(nifs);
1250 }
1251};
1252
1255void toStr(std::string&, const FeedSettings&);
1256
1258inline std::string toStr(const FeedSettings& settings)
1259{
1260 std::string str;
1261
1262 toStr(str, settings);
1263
1264 return str;
1265}
1266
1277 FeedSettings& settings, const std::string& configuration, ChannelId channel, DataCenter::Enum dataCenter = DataCenter::Primary);
1278
1289 FeedSettings& settings, const std::string& configurationFile, ChannelId channel, DataCenter::Enum dataCenter = DataCenter::Primary);
1290
#define ONIXS_CMEMDH_NAMESPACE_BEGIN
Definition Bootstrap.h:69
#define ONIXS_CMEMDH_LTWT
Definition Bootstrap.h:61
#define ONIXS_CMEMDH_LTWT_CLASS_DECL(name)
Definition Bootstrap.h:63
#define ONIXS_CMEMDH_EXPORTED_CLASS_DECL(typeName)
Definition Bootstrap.h:50
#define ONIXS_CMEMDH_NAMESPACE_END
Definition Bootstrap.h:73
#define ONIXS_CMEMDH_EXPORTED
Definition Compiler.h:163
The collection of parameters defining feed connection.
FeedConnectionSettings & ip(const std::string &address)
const std::string & id() const
The unique connection/feed identifier.
FeedConnectionSettings & operator=(const FeedConnectionSettings &other)
FeedConnectionSettings(const FeedConnectionSettings &other)
~FeedConnectionSettings()
Finalizes the instance.
const std::string & ip() const
const HostListSetting & hosts() const
FeedConnectionSettings(const SettingGroup *group=nullptr)
Initializes as a blank instance.
FeedConnectionSettings & port(Messaging::UInt32 port)
FeedConnectionSettings & networkInterfaces(const std::string &interfaces)
Messaging::UInt32 port() const
Port component of the given connection settings.
const NifListSetting & networkInterfaces() const
FeedConnectionSettings & hosts(const std::string &hosts)
FeedConnectionSettings & id(const std::string &id)
Collection of parameters which are common for all types of feeds.
const FeedConnectionSettings & B() const
Connection attributes for the secondary (B) feed.
void assignNoControl(const FeedSettingsBase &other)
Layout layout() const
Defines feed layout for a feed group.
FeedSettingsBase(const SettingGroup *group, Layout layout, Messaging::UInt32 heartbeat)
Messaging::UInt32 heartbeatInterval() const
const FeedConnectionSettings & A() const
Connection attributes for the primary (A) feed.
FeedSettingsBase & heartbeatInterval(Messaging::UInt32 interval)
FeedConnectionSettings & B()
Connection attributes for the secondary (B) feed.
FeedSettingsBase & layout(Layout value)
FeedConnectionSettings & A()
Connection attributes for the primary (A) feed.
FeedSettingsBase(const FeedSettingsBase &other)
FeedSettings(SettingChangeController *controller=nullptr)
Initializes the instance with the default values.
RealtimeFeedSettings & incrementalFeeds()
The settings related to incremental feeds.
NetFeedEngine * engine() const
Returns the Feed Engine used by the handler.
FeedSettings(const FeedSettings &other)
FeedSettings & feedANetworkInterfaces(const std::string &interfaces)
const MulticastRecoveryFeedSettings & instrumentFeeds() const
The settings related to instrument feeds.
FeedSettings & packetMaxSize(PacketSize value)
FeedSettings & engine(NetFeedEngine *engine)
Replaces the default Feed Engine with an explicit instance.
TcpRecoveryFeedSettings & historicalFeeds()
The settings related to historical (TCP Recovery) feeds.
PacketSize packetMaxSize() const
FeedSettings & feedBNetworkInterfaces(const std::string &interfaces)
const MulticastRecoveryFeedSettings & snapshotFeeds() const
The settings related to snapshot feeds.
const RealtimeFeedSettings & incrementalFeeds() const
The settings related to incremental feeds.
MulticastRecoveryFeedSettings & instrumentFeeds()
The settings related to instrument feeds.
FeedSettings & operator=(const FeedSettings &other)
const MulticastRecoveryFeedSettings & mboSnapshotFeeds() const
The settings related to snapshot feeds.
MulticastRecoveryFeedSettings & snapshotFeeds()
The settings related to snapshot feeds.
MulticastRecoveryFeedSettings & mboSnapshotFeeds()
The settings related to snapshot feeds.
const TcpRecoveryFeedSettings & historicalFeeds() const
The settings related to historical (TCP recovery) feeds.
Stores a controller-aware list of setting values.
ListSetting & assignNoControl(const ListSetting &other)
Replaces the items without consulting the change controller.
Collection of parameters affecting recovery feeds behavior.
MulticastRecoveryFeedSettings(const SettingGroup *group=nullptr)
~MulticastRecoveryFeedSettings()
Finalizes the instance.
MulticastRecoveryFeedSettings & operator=(const MulticastRecoveryFeedSettings &other)
MulticastRecoveryFeedSettings(const MulticastRecoveryFeedSettings &other)
Initializes the instance as a copy of the other one.
Collection of parameters affecting real-time feeds behavior.
RealtimeFeedSettings(const RealtimeFeedSettings &other)
RealtimeFeedSettings & outOfOrderPacketMaxInterval(Messaging::UInt32 intervalLength)
~RealtimeFeedSettings()
Finalizes the instance.
RealtimeFeedSettings & lostPacketWaitTime(Messaging::UInt32 waitTime)
RealtimeFeedSettings & operator=(const RealtimeFeedSettings &other)
Messaging::UInt32 outOfOrderPacketMaxInterval() const
RealtimeFeedSettings(const SettingGroup *group=nullptr)
Messaging::UInt32 lostPacketWaitTime() const
Associates setting mutations with a change controller.
SettingGroup(SettingChangeController *controller=nullptr)
Creates a setting group that uses the specified controller.
void controlChange(const Messaging::Char *description, void(Changeable::*change)(), Changeable &changeable) const
Invokes a zero-argument member function as a guarded change.
void controlAssignment(const Messaging::Char *description, Assignee &assignee, Value value) const
Assigns a value while coordinating the change with the controller.
Collection of parameters affecting recovery feeds behavior.
TcpRecoveryFeedSettings & operator=(const TcpRecoveryFeedSettings &other)
TcpRecoveryFeedSettings & sendTimeout(Messaging::UInt32 sendTimeout)
~TcpRecoveryFeedSettings()
Finalizes the instance.
Messaging::UInt32 connectionTimeout() const
TcpRecoveryFeedSettings & connectionTimeout(Messaging::UInt32 connectionTimeout)
Messaging::UInt32 connectionAttempts() const
TcpRecoveryFeedSettings & connectionAttempts(Messaging::UInt32 attemptQty)
TcpRecoveryFeedSettings(const SettingGroup *group=nullptr)
TcpRecoveryFeedSettings(const TcpRecoveryFeedSettings &other)
Messaging::UInt32 sendTimeout() const
bool fromStr(Int8 &, const Char *, size_t)
std::uint32_t UInt32
uInt32.
Definition Integral.h:35
Messaging::UInt16 PacketSize
Represents a packet size in bytes.
ListSetting< std::string > HostListSetting
List of hosts as a setting.
void connectivityFromConfiguration(FeedSettings &settings, const std::string &configurationFile, ChannelId channel, DataCenter::Enum dataCenter=DataCenter::Primary)
Loads a channel's connection settings from a connectivity configuration file.
void connectivityFromConfigurationString(FeedSettings &settings, const std::string &configuration, ChannelId channel, DataCenter::Enum dataCenter=DataCenter::Primary)
Loads a channel's connection settings from connectivity configuration XML.
void fromStr(NifList &, const std::string &, const std::string &=std::string("; ,"))
Messaging::UInt32 ChannelId
Identifies a CME MDP 3.0 market data channel.
Definition Domain.h:28
HostListSetting NifListSetting
List of network interfaces as a setting.
void toStr(std::string &str, BookState::Enum bookState)
Appends a string representation of a book state.
@ DisasterRecovery
Indicates data center used in case of disaster.
Messaging::UInt32 Base
Integral type used as basement for constants.
@ FeedBOnly
Indicates only feed B is used as source for market data.
@ BothFeedsWithArbitrage
Handler arbitrates between both feeds A and B.
@ FeedAOnly
Indicates only feed A is used as source for market data.
Messaging::UInt32 Base
Integral type used as basement for constants.
@ FeedBOnly
Indicates only feed B is used as source for market data.
@ FeedAOnly
Indicates only feed A is used as source for market data.
Messaging::UInt32 Base
Integral type used as basement for constants.
Coordinates changes to settings that belong to a setting group.